cfg80211: pass a channel definition struct
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rndis_wlan.c
index 5390af36c064b7269698709be15001b3a22db0ff..abe1d039be814150d1815949e90f78b38573fa2d 100644 (file)
@@ -2293,7 +2293,7 @@ static int rndis_join_ibss(struct wiphy *wiphy, struct net_device *dev,
 {
        struct rndis_wlan_private *priv = wiphy_priv(wiphy);
        struct usbnet *usbdev = priv->usbdev;
-       struct ieee80211_channel *channel = params->channel;
+       struct ieee80211_channel *channel = params->chandef.chan;
        struct ndis_80211_ssid ssid;
        enum nl80211_auth_type auth_type;
        int ret, alg, length, chan = -1;