Commit 2726f23d authored by Eliad Peller's avatar Eliad Peller Committed by Johannes Berg
Browse files

mac80211: don't defer scans in case of radar detection

Radar detection can last indefinite time. There is no
point in deferring a scan request in this case - simply
return -EBUSY.
Signed-off-by: default avatarEliad Peller <>
Signed-off-by: default avatarJohannes Berg <>
parent e7f2337a
...@@ -505,7 +505,7 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata, ...@@ -505,7 +505,7 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
lockdep_assert_held(&local->mtx); lockdep_assert_held(&local->mtx);
if (local->scan_req) if (local->scan_req || ieee80211_is_radar_required(local))
return -EBUSY; return -EBUSY;
if (!ieee80211_can_scan(local, sdata)) { if (!ieee80211_can_scan(local, sdata)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment