mac80211: stop toggling IEEE80211_HT_CAP_SUP_WIDTH_20_40
[deliverable/linux.git] / drivers / net / wireless / rtlwifi / rtl8723ae / hw.c
index 149804816ac4b614088a9717c9c6be6ee45f568b..9a0c71c2e15ecdf4fa60a345391ecabba8d2fad1 100644 (file)
@@ -1866,8 +1866,7 @@ static void rtl8723ae_update_hal_rate_mask(struct ieee80211_hw *hw,
        struct rtl_sta_info *sta_entry = NULL;
        u32 ratr_bitmap;
        u8 ratr_index;
-       u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)
-                               ? 1 : 0;
+       u8 curtxbw_40mhz = (sta->bandwidth >= IEEE80211_STA_RX_BW_40) ? 1 : 0;
        u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ?
                                1 : 0;
        u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ?
This page took 0.035803 seconds and 5 git commands to generate.