提交 91f123f2 编写于 作者: V Vidyullatha Kanchanapally 提交者: Johannes Berg

mac80211: Add support for aborting an ongoing scan

This commit adds implementation for abort scan in mac80211.
Reviewed-by: NJouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: NVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Signed-off-by: NSunil Dutt <usdutt@qti.qualcomm.com>
[adjust to wdev change in previous patch and clean up code a bit]
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 91d3ab46
...@@ -1994,6 +1994,11 @@ static int ieee80211_scan(struct wiphy *wiphy, ...@@ -1994,6 +1994,11 @@ static int ieee80211_scan(struct wiphy *wiphy,
return ieee80211_request_scan(sdata, req); 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 static int
ieee80211_sched_scan_start(struct wiphy *wiphy, ieee80211_sched_scan_start(struct wiphy *wiphy,
struct net_device *dev, struct net_device *dev,
...@@ -3842,6 +3847,7 @@ const struct cfg80211_ops mac80211_config_ops = { ...@@ -3842,6 +3847,7 @@ const struct cfg80211_ops mac80211_config_ops = {
.suspend = ieee80211_suspend, .suspend = ieee80211_suspend,
.resume = ieee80211_resume, .resume = ieee80211_resume,
.scan = ieee80211_scan, .scan = ieee80211_scan,
.abort_scan = ieee80211_abort_scan,
.sched_scan_start = ieee80211_sched_scan_start, .sched_scan_start = ieee80211_sched_scan_start,
.sched_scan_stop = ieee80211_sched_scan_stop, .sched_scan_stop = ieee80211_sched_scan_stop,
.auth = ieee80211_auth, .auth = ieee80211_auth,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册