mac80211: stop toggling IEEE80211_HT_CAP_SUP_WIDTH_20_40
[deliverable/linux.git] / drivers / net / wireless / rtlwifi / rtl8192se / hw.c
index 28526a7361f51f76d6eb285106296721413f8d0d..084e7773bce2a1f6585d2b115e7a525315dc7a39 100644 (file)
@@ -2085,8 +2085,7 @@ static void rtl92se_update_hal_rate_mask(struct ieee80211_hw *hw,
        struct rtl_sta_info *sta_entry = NULL;
        u32 ratr_bitmap;
        u8 ratr_index = 0;
-       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.025074 seconds and 5 git commands to generate.