public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] report stop sched scan when actually done
@ 2011-12-21 10:11 Eyal Shapira
  2011-12-21 10:11 ` [PATCH v2 1/2] mac80211: mark stopped sched scan only after driver does Eyal Shapira
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eyal Shapira @ 2011-12-21 10:11 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Luciano Coelho

Changes in mac/cfg80211 to notify userspace
of NL80211_CMD_SCHED_SCAN_STOPPED only when the driver
actually reported back that it was stopped. Also
blocks other attempts until we're really done.

This fixes a scenario where stop sched scan
is issued and immediately afterwards a new sched scan
is requested (e.g. with other parameters).
Current state caused a race where the driver started
stopping the sched scan but didn't finish and got
another sched scan request which it couldn't handle.

Eyal Shapira (2):
  mac80211: mark stopped sched scan only after driver does
  nl80211: report stopped sched scan only after driver does

 net/mac80211/scan.c |   10 +++-------
 net/wireless/scan.c |   17 ++++++++---------
 2 files changed, 11 insertions(+), 16 deletions(-)

-- 
1.7.4.1


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

end of thread, other threads:[~2011-12-25 11:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-21 10:11 [PATCH v2 0/2] report stop sched scan when actually done Eyal Shapira
2011-12-21 10:11 ` [PATCH v2 1/2] mac80211: mark stopped sched scan only after driver does Eyal Shapira
2011-12-21 10:11 ` [PATCH v2 2/2] nl80211: report " Eyal Shapira
2011-12-21 15:10 ` [PATCH v2 0/2] report stop sched scan when actually done Johannes Berg
2011-12-23  8:46   ` Luciano Coelho
     [not found]     ` <CAF8O4-wpjuV6j-beXn8d7bNA7jvSeCXMhV=kXDHNYKPgxQUbyw@mail.gmail.com>
2011-12-24 23:49       ` Eyal Shapira
2011-12-25  8:22         ` Luciano Coelho
2011-12-25 10:16           ` Eyal Shapira
2011-12-25 11:31             ` Luciano Coelho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox