Skip to content

Commit

Permalink
mac80211: Add support for aborting an ongoing scan
Browse files Browse the repository at this point in the history
This commit adds implementation for abort scan in mac80211.

Reviewed-by: Jouni Malinen <[email protected]>
Signed-off-by: Vidyullatha Kanchanapally <[email protected]>
Signed-off-by: Sunil Dutt <[email protected]>
[adjust to wdev change in previous patch and clean up code a bit]
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
Vidyullatha Kanchanapally authored and jmberg-intel committed Dec 4, 2015
1 parent 91d3ab4 commit 91f123f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,11 @@ static int ieee80211_scan(struct wiphy *wiphy,
return ieee80211_request_scan(sdata, req);
}

static void ieee80211_abort_scan(struct wiphy *wiphy, struct wireless_dev *wdev)
{
ieee80211_scan_cancel(wiphy_priv(wiphy));
}

static int
ieee80211_sched_scan_start(struct wiphy *wiphy,
struct net_device *dev,
Expand Down Expand Up @@ -3842,6 +3847,7 @@ const struct cfg80211_ops mac80211_config_ops = {
.suspend = ieee80211_suspend,
.resume = ieee80211_resume,
.scan = ieee80211_scan,
.abort_scan = ieee80211_abort_scan,
.sched_scan_start = ieee80211_sched_scan_start,
.sched_scan_stop = ieee80211_sched_scan_stop,
.auth = ieee80211_auth,
Expand Down

0 comments on commit 91f123f

Please sign in to comment.