]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: upgrade BW of TDLS peers when possible
authorArik Nemtsov <arik@wizery.com>
Wed, 10 Jun 2015 17:41:23 +0000 (20:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:38:12 +0000 (15:38 +0200)
commit25bdbef12e45eae53fc59ff5956d8863167a1f08
treeef9d80d956372af6119f779070dc6369f047bd9d
parente280dbe2d6b5b3a430de5cb085128f4852c4d120
mac80211: upgrade BW of TDLS peers when possible

Define a station chandef, to be used for wider-bw TDLS peers. When both
peers support the feature, upgrade the channel bandwidth to the maximum
allowed by both peers and regulatory. Currently widths up to 80MHz are
supported in the 5GHz band.

When a TDLS peer connects/disconnects recalculate the channel type of the
current chanctx.
Make the chanctx width calculation consider wider-bw TDLS peers and
similarly fix the max_required_bw calculation for the chanctx min_def.
Since the sta->bandwidth is calculated only later on, take
bss_conf.chandef.width as the minimal width for station interface.

Set the upgraded channel width in the VHT-operation set during TDLS setup.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/sta_info.h
net/mac80211/tdls.c