cfg80211: remove enum ieee80211_band
[cascardo/linux.git] / drivers / net / wireless / marvell / mwifiex / cfp.c
index 09fae27..1ff2205 100644 (file)
@@ -322,9 +322,9 @@ mwifiex_get_cfp(struct mwifiex_private *priv, u8 band, u16 channel, u32 freq)
                return cfp;
 
        if (mwifiex_band_to_radio_type(band) == HostCmd_SCAN_RADIO_TYPE_BG)
-               sband = priv->wdev.wiphy->bands[IEEE80211_BAND_2GHZ];
+               sband = priv->wdev.wiphy->bands[NL80211_BAND_2GHZ];
        else
-               sband = priv->wdev.wiphy->bands[IEEE80211_BAND_5GHZ];
+               sband = priv->wdev.wiphy->bands[NL80211_BAND_5GHZ];
 
        if (!sband) {
                mwifiex_dbg(priv->adapter, ERROR,
@@ -399,15 +399,15 @@ u32 mwifiex_get_rates_from_cfg80211(struct mwifiex_private *priv,
        int i;
 
        if (radio_type) {
-               sband = wiphy->bands[IEEE80211_BAND_5GHZ];
+               sband = wiphy->bands[NL80211_BAND_5GHZ];
                if (WARN_ON_ONCE(!sband))
                        return 0;
-               rate_mask = request->rates[IEEE80211_BAND_5GHZ];
+               rate_mask = request->rates[NL80211_BAND_5GHZ];
        } else {
-               sband = wiphy->bands[IEEE80211_BAND_2GHZ];
+               sband = wiphy->bands[NL80211_BAND_2GHZ];
                if (WARN_ON_ONCE(!sband))
                        return 0;
-               rate_mask = request->rates[IEEE80211_BAND_2GHZ];
+               rate_mask = request->rates[NL80211_BAND_2GHZ];
        }
 
        num_rates = 0;