public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] cfg80211: stop sched scan only when needed
@ 2013-12-05  9:21 Eliad Peller
  2013-12-05  9:21 ` [PATCH 2/4] mac80211: determine completed scan type by defined ops Eliad Peller
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Eliad Peller @ 2013-12-05  9:21 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Barak Bercovitz

From: Barak Bercovitz <barak@wizery.com>

cfg80211_leave stops sched scan when any station vif
is leaving. Add an explicit check and call it only
when the relevant vif (the one we scan on) is leaving.

Signed-off-by: Barak Bercovitz <barak@wizery.com>
[Eliad - changed the commit message a bit]
Signed-off-by: Eliad Peller <eliad@wizery.com>
---
 net/wireless/core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/wireless/core.c b/net/wireless/core.c
index 32af857..a8e48c7 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -775,7 +775,8 @@ void cfg80211_leave(struct cfg80211_registered_device *rdev,
 		break;
 	case NL80211_IFTYPE_P2P_CLIENT:
 	case NL80211_IFTYPE_STATION:
-		__cfg80211_stop_sched_scan(rdev, false);
+		if (rdev->sched_scan_req && dev == rdev->sched_scan_req->dev)
+			__cfg80211_stop_sched_scan(rdev, false);
 
 		wdev_lock(wdev);
 #ifdef CONFIG_CFG80211_WEXT
-- 
1.8.5.rc1


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

end of thread, other threads:[~2013-12-05 16:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05  9:21 [PATCH 1/4] cfg80211: stop sched scan only when needed Eliad Peller
2013-12-05  9:21 ` [PATCH 2/4] mac80211: determine completed scan type by defined ops Eliad Peller
2013-12-05  9:21 ` [PATCH 3/4] mac80211: start_next_roc only if scan was actually running Eliad Peller
2013-12-05  9:21 ` [PATCH 4/4] cfg80211: prevent race condition on scan request cleanup Eliad Peller
2013-12-05 14:31   ` Johannes Berg
2013-12-05 14:36     ` Eliad Peller
2013-12-05 14:43       ` Johannes Berg
2013-12-05 15:39         ` Eliad Peller
2013-12-05 15:45           ` Johannes Berg
2013-12-05 15:52             ` Arik Nemtsov
2013-12-05 15:53               ` Johannes Berg
2013-12-05 16:14           ` Johannes Berg
2013-12-05 16:32             ` Eliad Peller
2013-12-05 16:18 ` [PATCH 1/4] cfg80211: stop sched scan only when needed Johannes Berg

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