Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

mac80211: add 'scan_cancel' command (INTERNAL)

Implementing the scan_cancel operation in the mac80211,
by calling existing ieee80211_scan_cancel() function.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information...
commit 0d4f0e0ad2bde71d2626e6d1cf526fcb801563ae 1 parent 9849129
Victor Goldenshtein victorgld authored ariknem committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 net/mac80211/cfg.c
8 net/mac80211/cfg.c
View
@@ -1814,6 +1814,13 @@ ieee80211_sched_scan_stop(struct wiphy *wiphy, struct net_device *dev)
return ieee80211_request_sched_scan_stop(sdata);
}
+static void ieee80211_scan_cancel_req(struct wiphy *wiphy,
+ struct net_device *dev)
+{
+ struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
+ ieee80211_scan_cancel(sdata->local);
+}
+
static int ieee80211_auth(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_auth_request *req)
{
@@ -3031,6 +3038,7 @@ struct cfg80211_ops mac80211_config_ops = {
.suspend = ieee80211_suspend,
.resume = ieee80211_resume,
.scan = ieee80211_scan,
+ .scan_cancel = ieee80211_scan_cancel_req,
.sched_scan_start = ieee80211_sched_scan_start,
.sched_scan_stop = ieee80211_sched_scan_stop,
.auth = ieee80211_auth,
Please sign in to comment.
Something went wrong with that request. Please try again.