mwifiex: do not advertise usb autosuspend support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / at76c50x-usb.c
index 5ac5f7ae2721a2e8db91536a10ed94b6116960af..34c8a33cac06f67dfb5e4dc718767d6457449d86 100644 (file)
@@ -1943,12 +1943,12 @@ static int at76_config(struct ieee80211_hw *hw, u32 changed)
        struct at76_priv *priv = hw->priv;
 
        at76_dbg(DBG_MAC80211, "%s(): channel %d",
-                __func__, hw->conf.channel->hw_value);
+                __func__, hw->conf.chandef.chan->hw_value);
        at76_dbg_dump(DBG_MAC80211, priv->bssid, ETH_ALEN, "bssid:");
 
        mutex_lock(&priv->mtx);
 
-       priv->channel = hw->conf.channel->hw_value;
+       priv->channel = hw->conf.chandef.chan->hw_value;
 
        if (is_valid_ether_addr(priv->bssid))
                at76_join(priv);