]> asedeno.scripts.mit.edu Git - linux.git/commit
mac80211: fix bandwidth computation for TDLS peers
authorManikanta Pubbisetty <mpubbise@qti.qualcomm.com>
Mon, 25 Sep 2017 19:09:15 +0000 (00:39 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Oct 2017 12:06:19 +0000 (14:06 +0200)
commit504871e602d9a9ea2321d47ca506887417f54e75
treee10d95dabaf48ed6b999679c357f952255127418
parent1bd773c077deeeb2d9ced1fdb6d846169b8e7e4a
mac80211: fix bandwidth computation for TDLS peers

Section 11.23.1 of 80211-2016 specification allows TDLS peers
to operate on wider bandwidths though they are connected to a BSS
which do not support wider bandwidth operations, provided both the
peers advertise wider bandwidth capabilities.

The existing logic considers the minimum of station's and AP's
capability for bandwidth computation. The same logic applies for
TDLS peers as well, this restricts operating on wider bandwidths
over a TDLS link when the peers are connected to legacy APs.

As an example, if 80Mhz VHT capable peers are connected to a 20Mhz
5 GHz AP, then as per the existing logic TDLS operation will be
restricted to 20Mhz.

Address this problem by not considering BSS capability in bandwidth
computation if the participating TDLS peers have wider bandwidth
capability.

Signed-off-by: Manikanta Pubbisetty <mpubbise@qti.qualcomm.com>
[lots of wording/typo fixes]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/vht.c