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>
This commit is contained in:
parent
0b57802174
commit
21b27beca7
1 changed files with 3 additions and 3 deletions
|
@ -3398,9 +3398,9 @@ static int rndis_wlan_bind(struct usbnet *usbdev, struct usb_interface *intf)
|
||||||
rndis_set_wiphy_params(wiphy,
|
rndis_set_wiphy_params(wiphy,
|
||||||
WIPHY_PARAM_FRAG_THRESHOLD | WIPHY_PARAM_RTS_THRESHOLD);
|
WIPHY_PARAM_FRAG_THRESHOLD | WIPHY_PARAM_RTS_THRESHOLD);
|
||||||
|
|
||||||
/* turn radio on */
|
/* turn radio off on init */
|
||||||
priv->radio_on = true;
|
priv->radio_on = false;
|
||||||
disassociate(usbdev, true);
|
disassociate(usbdev, false);
|
||||||
netif_carrier_off(usbdev->net);
|
netif_carrier_off(usbdev->net);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue