]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: initialize SMPS field in HT capabilities
authorFelix Fietkau <nbd@nbd.name>
Fri, 13 Jan 2017 10:28:25 +0000 (11:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 13 Jan 2017 10:31:26 +0000 (11:31 +0100)
commitb7f38d1dacba7c6f9752a96d15a48cc461367766
treec5e77fe5ca06dd4c5b9cb849674ea4abd3515b12
parentc0d8ff42aaab09a755165df962a821d28ba55e02
mac80211: initialize SMPS field in HT capabilities

ibss and mesh modes copy the ht capabilites from the band without
overriding the SMPS state. Unfortunately the default value 0 for the
SMPS field means static SMPS instead of disabled.

This results in HT ibss and mesh setups using only single-stream rates,
even though SMPS is not supposed to be active.

Initialize SMPS to disabled for all bands on ieee80211_hw_register to
ensure that the value is sane where it is not overriden with the real
SMPS state.

Reported-by: Elektra Wagenrad <onelektra@gmx.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
[move VHT TODO comment to a better place]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c