]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: detect driver tx bugs
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 18 Jun 2008 22:39:48 +0000 (15:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jun 2008 22:39:48 +0000 (15:39 -0700)
commit5edf7a16477815625c237f3b6f41c5eef1543dc4
tree9ce3eea86642e33dbec68dd2b3f81298f5ece235
parent87f1f89d1fe121810a0fe417f7b31caecb80b8ce
mac80211: detect driver tx bugs

When a driver rejects a frame in it's ->tx() callback, it must also
stop queues, otherwise mac80211 can go into a loop here. Detect this
situation and abort the loop after five retries, warning about the
driver bug.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac80211/tx.c