]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix purging multicast PS buffer queue
authorFelix Fietkau <nbd@nbd.name>
Tue, 2 Aug 2016 09:13:41 +0000 (11:13 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 21 Sep 2016 11:40:09 +0000 (13:40 +0200)
commit597df07653db851fa2332b433b794c21ff652b5b
treea66037598e32a864b8df9bd502ffe9f665b2da4f
parentfc62dbc6971b6b57d3574886edaa4fa9f96e5fbd
mac80211: fix purging multicast PS buffer queue

commit 6b07d9ca9b5363dda959b9582a3fc9c0b89ef3b5 upstream.

The code currently assumes that buffered multicast PS frames don't have
a pending ACK frame for tx status reporting.
However, hostapd sends a broadcast deauth frame on teardown for which tx
status is requested. This can lead to the "Have pending ack frames"
warning on module reload.
Fix this by using ieee80211_free_txskb/ieee80211_purge_tx_queue.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/mac80211/cfg.c
net/mac80211/tx.c