mac80211: replace SMPS hw flags with wiphy feature bits
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / mlme.c
index efa41fc66c1ffda31e0c7667067c737ed6c17525..9d4ccb2cf3c9cfd1120b682acf9eaf29718f2ef8 100644 (file)
@@ -3805,7 +3805,7 @@ void ieee80211_sta_setup_sdata(struct ieee80211_sub_if_data *sdata)
        ifmgd->uapsd_max_sp_len = sdata->local->hw.uapsd_max_sp_len;
        ifmgd->p2p_noa_index = -1;
 
-       if (sdata->local->hw.flags & IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS)
+       if (sdata->local->hw.wiphy->features & NL80211_FEATURE_DYNAMIC_SMPS)
                ifmgd->req_smps = IEEE80211_SMPS_AUTOMATIC;
        else
                ifmgd->req_smps = IEEE80211_SMPS_OFF;