cfg80211: remove enum ieee80211_band
[cascardo/linux.git] / drivers / net / wireless / ti / wlcore / ps.c
index 4cd316e..b36133b 100644 (file)
@@ -38,7 +38,7 @@ void wl1271_elp_work(struct work_struct *work)
        struct wl12xx_vif *wlvif;
        int ret;
 
-       dwork = container_of(work, struct delayed_work, work);
+       dwork = to_delayed_work(work);
        wl = container_of(dwork, struct wl1271, elp_work);
 
        wl1271_debug(DEBUG_PSM, "elp work");
@@ -202,7 +202,7 @@ int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
                 * enable beacon early termination.
                 * Not relevant for 5GHz and for high rates.
                 */
-               if ((wlvif->band == IEEE80211_BAND_2GHZ) &&
+               if ((wlvif->band == NL80211_BAND_2GHZ) &&
                    (wlvif->basic_rate < CONF_HW_BIT_RATE_9MBPS)) {
                        ret = wl1271_acx_bet_enable(wl, wlvif, true);
                        if (ret < 0)
@@ -213,7 +213,7 @@ int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
                wl1271_debug(DEBUG_PSM, "leaving psm");
 
                /* disable beacon early termination */
-               if ((wlvif->band == IEEE80211_BAND_2GHZ) &&
+               if ((wlvif->band == NL80211_BAND_2GHZ) &&
                    (wlvif->basic_rate < CONF_HW_BIT_RATE_9MBPS)) {
                        ret = wl1271_acx_bet_enable(wl, wlvif, false);
                        if (ret < 0)