mac80211: protect non-HT BSS when HT TDLS traffic exists
authorAvri Altman <avri.altman@intel.com>
Tue, 18 Aug 2015 13:52:07 +0000 (16:52 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Sep 2015 12:25:46 +0000 (14:25 +0200)
commit22f66895e60cfc55b92f6fa93f05bb3fbdbd0bed
treea76a60a63d227291e39e7b9d46579f435292d2f3
parent98a1f8282b8c37378c1b947d661a58942331ca90
mac80211: protect non-HT BSS when HT TDLS traffic exists

HT TDLS traffic should be protected in a non-HT BSS to avoid
collisions. Therefore, when TDLS peers join/leave, check if
protection is (now) needed and set the ht_operation_mode of
the virtual interface according to the HT capabilities of the
TDLS peer(s).

This works because a non-HT BSS connection never sets (or
otherwise uses) the ht_operation_mode; it just means that
drivers must be aware that this field applies to all HT
traffic for this virtual interface, not just the traffic
within the BSS. Document that.

Signed-off-by: Avri Altman <avri.altman@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/tdls.c