rndis_wlan: pass channel info to cfg80211_roamed()
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Sat, 19 Nov 2011 11:04:11 +0000 (13:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Nov 2011 21:22:07 +0000 (16:22 -0500)
cfg80211_roamed() now has channel parameter so add passing current channel
info.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c

index 37c4c4087572ef718dadd9b644342be534de1cc7..d5bfc8d2bcad60172f8948f75e5bb9d67977b529 100644 (file)
@@ -2854,8 +2854,9 @@ static void rndis_wlan_do_link_up_work(struct usbnet *usbdev)
                                                req_ie_len, resp_ie,
                                                resp_ie_len, 0, GFP_KERNEL);
                else
-                       cfg80211_roamed(usbdev->net, NULL, bssid,
-                                       req_ie, req_ie_len,
+                       cfg80211_roamed(usbdev->net,
+                                       get_current_channel(usbdev, NULL),
+                                       bssid, req_ie, req_ie_len,
                                        resp_ie, resp_ie_len, GFP_KERNEL);
        } else if (priv->infra_mode == NDIS_80211_INFRA_ADHOC)
                cfg80211_ibss_joined(usbdev->net, bssid, GFP_KERNEL);