cfg80211: invert HE BSS color 'disabled' to 'enabled'

This is in fact 'disabled' in the spec, but there it's in a
place where that actually makes sense. In our internal data
structures, it doesn't really make sense, and in fact the
previous commit just fixed a bug in that area.

Make this safer by inverting the polarity from 'disabled' to
'enabled'.

Link: https://lore.kernel.org/r/20200730130051.5d8399545bd9.Ie62fdcd1a6cd9c969315bc124084a494ca6c8df3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Este commit está contenido en:
Johannes Berg
2020-07-30 13:00:52 +02:00
padre c5d1686b31
commit 75e6b594bb
Se han modificado 5 ficheros con 10 adiciones y 13 borrados

Ver fichero

@@ -1019,7 +1019,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
IEEE80211_HE_OPERATION_RTS_THRESHOLD_MASK);
changed |= BSS_CHANGED_HE_OBSS_PD;
if (!params->he_bss_color.disabled)
if (params->he_bss_color.enabled)
changed |= BSS_CHANGED_HE_BSS_COLOR;
}