]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: detect driver tx bugs
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 3 Jul 2008 01:36:31 +0000 (20:36 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jul 2008 16:14:02 +0000 (09:14 -0700)
commitda1be4d48515fde4eab98c776726747f7694f59f
treea803ad7b653ae905f1aaf8e143720a95adbb28f6
parent204b304df21a73cce2210eae236de6caaf3bc09b
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.

This patch was added to mainline as
commit ef3a62d272f033989e83eb1f26505f93f93e3e69.

Thanks to Larry Finger <Larry.Finger@lwfinger.net> for doing the -stable
port.

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