rndis_wlan: turn radio off before interface is bring up
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 21 Dec 2010 20:44:20 +0000 (22:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:30 +0000 (15:43 -0500)
Radio should be off when interface is down.

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 9e6105cd54a5fb634926e639161beb857b1532d1..42e19e85fa68b3b07c50f0dea386d7cb15a02839 100644 (file)
@@ -3398,9 +3398,9 @@ static int rndis_wlan_bind(struct usbnet *usbdev, struct usb_interface *intf)
        rndis_set_wiphy_params(wiphy,
                        WIPHY_PARAM_FRAG_THRESHOLD | WIPHY_PARAM_RTS_THRESHOLD);
 
-       /* turn radio on */
-       priv->radio_on = true;
-       disassociate(usbdev, true);
+       /* turn radio off on init */
+       priv->radio_on = false;
+       disassociate(usbdev, false);
        netif_carrier_off(usbdev->net);
 
        return 0;