aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r--net/mac80211/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index eb86a5f6e64..2b1f1f3d6a5 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -410,7 +410,7 @@ static int __ieee80211_start_scan(struct ieee80211_sub_if_data *sdata,
410 410
411 if (local->ops->hw_scan) { 411 if (local->ops->hw_scan) {
412 WARN_ON(!ieee80211_prep_hw_scan(local)); 412 WARN_ON(!ieee80211_prep_hw_scan(local));
413 rc = drv_hw_scan(local, local->hw_scan_req); 413 rc = drv_hw_scan(local, sdata, local->hw_scan_req);
414 } else 414 } else
415 rc = ieee80211_start_sw_scan(local); 415 rc = ieee80211_start_sw_scan(local);
416 416
@@ -654,7 +654,7 @@ void ieee80211_scan_work(struct work_struct *work)
654 } 654 }
655 655
656 if (local->hw_scan_req) { 656 if (local->hw_scan_req) {
657 int rc = drv_hw_scan(local, local->hw_scan_req); 657 int rc = drv_hw_scan(local, sdata, local->hw_scan_req);
658 mutex_unlock(&local->scan_mtx); 658 mutex_unlock(&local->scan_mtx);
659 if (rc) 659 if (rc)
660 ieee80211_scan_completed(&local->hw, true); 660 ieee80211_scan_completed(&local->hw, true);