From: Jussi Kivilinna Date: Tue, 21 Dec 2010 20:44:20 +0000 (+0200) Subject: rndis_wlan: turn radio off before interface is bring up X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=21b27beca73ad7d2829fe9cc3e48054f69e3d9d3;p=openwrt%2Fstaging%2Fblogic.git rndis_wlan: turn radio off before interface is bring up Radio should be off when interface is down. Signed-off-by: Jussi Kivilinna Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 9e6105cd54a5..42e19e85fa68 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c @@ -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;