]> git.ipfire.org Git - people/arne_f/kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Sep 2016 06:30:00 +0000 (08:30 +0200)
commit950af829a5fc32c34ae71e2e83f19d4dd58709b8
tree65af940e61de31ca0972e35b5aa8aaa49737ad23
parentf5a67faecf9b9be41559e7da424ba7529cdaa651
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/cfg.c
net/mac80211/tx.c