mac80211: implement proper Tx path flushing for TDLS
authorArik Nemtsov <arik@wizery.com>
Wed, 11 Jun 2014 14:18:24 +0000 (17:18 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 12:27:58 +0000 (14:27 +0200)
commitdb67d661e82da22f751585a7f284a9251e8a2a51
tree48b626800ca5aa8d866380f4f105f90baea71cb9
parent191dd46905ce9a25174dd9eea4ff3029802ac37c
mac80211: implement proper Tx path flushing for TDLS

As the spec mandates, flush data in the AP path before transmitting the
first setup frame. Data packets transmitted during setup are already
dropped in the Tx path.

For the teardown flow, flush all packets in the direct path before
transmitting the teardown frame. Un-authorize the peer sta after teardown
is sent, forcing all subsequent Tx to the peer through the AP.

Make sure to flush the queues when disabling the link to get the
teardown packet out.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
[adjust to Luca's new quuee API and stop only vif queues]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/tdls.c