mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
mwifiex: set netif carrier off in ndo_open
This patch adds fix to set carrier state off during ndo_open. Carrier should be set to ON when device is ready to send data. In case of station/adhoc interface device is able to transfer data after successful association/join operation. For AP this would be after bss_active event. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Avinash Patil <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
This commit is contained in:
1 parent
c5ed1df781
commit
ea2325b89d
1 file changed
+2
-1
@@ -562,7 +562,8 @@ static int mwifiex_init_hw_fw(struct mwifiex_adapter *adapter)
|
||||
static int
|
||||
mwifiex_open(struct net_device *dev)
|
||||
{
|
||||
netif_tx_start_all_queues(dev);
|
||||
netif_carrier_off(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user