* [PATCH] mac80211: set hw initial idle state
@ 2013-11-19 16:12 Karl Beldan
2013-11-25 15:57 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Karl Beldan @ 2013-11-19 16:12 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless, Karl Beldan
From: Karl Beldan <karl.beldan@rivierawaves.com>
ATM, the first call of ieee80211_do_open will configure the hw as
non-idle, even if the interface being brought up is not a monitor, and
this leads to inconsistent sequences like:
register_hw()
do_open(sta)
hw_config(non-idle)
(.. sta is non-idle ..)
scan(sta)
hw_config(idle) (after scan finishes)
do_stop(sta)
do_open(sta)
(.. sta is idle ..)
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
---
net/mac80211/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index bdb0b6c..3ef7fc3 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -995,6 +995,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n",
result);
+ local->hw.conf.flags = IEEE80211_CONF_IDLE;
+
ieee80211_led_init(local);
rtnl_lock();
--
1.8.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: set hw initial idle state
2013-11-19 16:12 [PATCH] mac80211: set hw initial idle state Karl Beldan
@ 2013-11-25 15:57 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-11-25 15:57 UTC (permalink / raw)
To: Karl Beldan; +Cc: linux-wireless, Karl Beldan
On Tue, 2013-11-19 at 17:12 +0100, Karl Beldan wrote:
> From: Karl Beldan <karl.beldan@rivierawaves.com>
>
> ATM, the first call of ieee80211_do_open will configure the hw as
> non-idle, even if the interface being brought up is not a monitor, and
> this leads to inconsistent sequences like:
Applied.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-25 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 16:12 [PATCH] mac80211: set hw initial idle state Karl Beldan
2013-11-25 15:57 ` Johannes Berg
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).