diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2010-12-21 15:44:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-22 15:43:30 -0500 |
commit | 21b27beca73ad7d2829fe9cc3e48054f69e3d9d3 (patch) | |
tree | cf23c6fd6d04b6bcc719156ff65d20c73fd90bea /drivers/net/wireless | |
parent | 0b578021745b61b2ff89f6bacbac5db08a9a8089 (diff) |
rndis_wlan: turn radio off before interface is bring up
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
3398 | rndis_set_wiphy_params(wiphy, | 3398 | rndis_set_wiphy_params(wiphy, |
3399 | WIPHY_PARAM_FRAG_THRESHOLD | WIPHY_PARAM_RTS_THRESHOLD); | 3399 | WIPHY_PARAM_FRAG_THRESHOLD | WIPHY_PARAM_RTS_THRESHOLD); |
3400 | 3400 | ||
3401 | /* turn radio on */ | 3401 | /* turn radio off on init */ |
3402 | priv->radio_on = true; | 3402 | priv->radio_on = false; |
3403 | disassociate(usbdev, true); | 3403 | disassociate(usbdev, false); |
3404 | netif_carrier_off(usbdev->net); | 3404 | netif_carrier_off(usbdev->net); |
3405 | 3405 | ||
3406 | return 0; | 3406 | return 0; |