Message ID | 1386235289-27278-1-git-send-email-eliad@wizery.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
Applied 1-3, still discussing patch 4. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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