]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/mac80211/tdls.c
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)
commit4b559ec0bfc3a9f41a127cea6964f38b2b4bb323
treee298062ed49034741465787a9fda31ba2de3edd3
parentfacde7f332f91353c7a6d34c9cff6b329cc0c3ab
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: 0fabfaafec3a ("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