Skip to content

Commit

Permalink
mwifiex: set netif carrier off in ndo_open
Browse files Browse the repository at this point in the history
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 <johannes@sipsolutions.net>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
jmberg authored and Kalle Valo committed Jan 27, 2015
1 parent c5ed1df commit ea2325b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/mwifiex/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ea2325b

Please sign in to comment.