mac80211: avoid bss color setting in non-he mode
PATCH 1/1 mac80211: avoid bss color setting in non-he mode
Adding bss-color configuration for HE mode alone. Earlier we have enabled it by default, irrespective of capabilities. But bss-color feature is only for HE mode. Hence avoiding this by adding bss-color flag only for HE mode.
--- net/mac80211/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/mac80211/cfg.c +2 -2
@@ -992,8 +992,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,BSS_CHANGED_P2P_PS |BSS_CHANGED_TXPOWER |BSS_CHANGED_TWT | -BSS_CHANGED_HE_OBSS_PD | -BSS_CHANGED_HE_BSS_COLOR ; +BSS_CHANGED_HE_OBSS_PD ;int i, err;int prev_beacon_int;
@@ -1019,6 +1018,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, sdata->vif.bss_conf.frame_time_rts_th =le32_get_bits (params->he_oper->he_oper_params,IEEE80211_HE_OPERATION_RTS_THRESHOLD_MASK ); + changed |=BSS_CHANGED_HE_BSS_COLOR ; }mutex_lock (&local->mtx);
Signature · 1 line
2.7.4
Quoted 16 lines · P Praneesh
Adding bss-color configuration for HE mode alone. Earlier we have enabled it by default, irrespective of capabilities. But bss-color feature is only for HE mode. Hence avoiding this by adding bss-color flag only for HE mode.
Signed-off-by P Praneesh <[email protected]>--- net/mac80211/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)net/mac80211/cfg.c +0
-0
net/mac80211/cfg.c static int ieee80211_start_ap(struct wiphy *wiphy, · line 997
Quoted 8 lines
net/mac80211/cfg.c +1
-2@@ -992,8 +992,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy,struct net_device *dev, BSS_CHANGED_P2P_PS | BSS_CHANGED_TXPOWER | BSS_CHANGED_TWT | - BSS_CHANGED_HE_OBSS_PD | -BSS_CHANGED_HE_BSS_COLOR ; +BSS_CHANGED_HE_OBSS_PD ;
Why not other HE flags?
net/mac80211/cfg.c static int ieee80211_start_ap(struct wiphy · line 1023
Quoted 10 lines
net/mac80211/cfg.c +0
-0int i, err;net/mac80211/cfg.c +1
-0int prev_beacon_int;@@ -1019,6 +1018,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, sdata->vif.bss_conf.frame_time_rts_th =le32_get_bits (params->he_oper->he_oper_params,IEEE80211_HE_OPERATION_RTS_THRESHOLD_MASK ); + changed |=BSS_CHANGED_HE_BSS_COLOR ;
Praneesh,
I see that BSS color is not disabled when NL80211_ATTR_HE_BSS_COLOR is not set. I think this must be fixed in cfg80211.
-Rajkumar