linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mwifiex: set netif carrier off in ndo_open
@ 2015-01-12 12:24 Avinash Patil
  2015-01-13 13:34 ` mwifiex - question wim torfs
  2015-01-13 18:09 ` [PATCH] mwifiex: set netif carrier off in ndo_open Avinash Patil
  0 siblings, 2 replies; 6+ messages in thread
From: Avinash Patil @ 2015-01-12 12:24 UTC (permalink / raw)
  To: linux-wireless; +Cc: akarwar, cluo, yangyang, Johannes Berg, Avinash Patil

From: Johannes Berg <johannes@sipsolutions.net>

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>
---
 drivers/net/wireless/mwifiex/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index effea6e..48e7c63 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -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;
 }
 
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-15 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-12 12:24 [PATCH] mwifiex: set netif carrier off in ndo_open Avinash Patil
2015-01-13 13:34 ` mwifiex - question wim torfs
2015-01-13 13:44   ` Avinash Patil
2015-01-13 13:50     ` wim torfs
2015-01-13 18:09 ` [PATCH] mwifiex: set netif carrier off in ndo_open Avinash Patil
2015-01-15 13:29   ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).