mac80211: notify NSS changed when IBSS and HT
[deliverable/linux.git] / net / mac80211 / ibss.c
index 509bc157ce5551700db59e380d180c486b44f097..b606b53a49a7d92e178eb502f18469bd9da7a5cd 100644 (file)
@@ -1069,9 +1069,16 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata,
                }
 
                if (sta && rates_updated) {
-                       drv_sta_rc_update(local, sdata, &sta->sta,
-                                         IEEE80211_RC_SUPP_RATES_CHANGED);
+                       u32 changed = IEEE80211_RC_SUPP_RATES_CHANGED;
+                       u8 rx_nss = sta->sta.rx_nss;
+
+                       /* Force rx_nss recalculation */
+                       sta->sta.rx_nss = 0;
                        rate_control_rate_init(sta);
+                       if (sta->sta.rx_nss != rx_nss)
+                               changed |= IEEE80211_RC_NSS_CHANGED;
+
+                       drv_sta_rc_update(local, sdata, &sta->sta, changed);
                }
 
                rcu_read_unlock();
This page took 0.024716 seconds and 5 git commands to generate.