]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix BW upgrade for TDLS peers
authorIlan Peer <ilan.peer@intel.com>
Tue, 8 Mar 2016 11:35:31 +0000 (13:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2016 09:26:33 +0000 (11:26 +0200)
commited8cfd704ccf5ae9dbdb52e33656cfefb074701f
treee298062ed49034741465787a9fda31ba2de3edd3
parenta2c582f79b6ce44b17f969c2a48c82549b4df5f1
mac80211: Fix BW upgrade for TDLS peers

It is possible that the station is connected to an AP
with bandwidth of 80+80MHz or 160MHz. In such cases
there is no need to perform an upgrade as the maximal
supported bandwidth is 80MHz.

In addition, when upgrading and setting center_freq1
and bandwidth to 80MHz also set center_freq2 to 0.

Fixes: 25bdbef12e45 ("mac80211: upgrade BW of TDLS peers when possible"
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tdls.c