diff options
author | Vidyullatha Kanchanapally <vkanchan@qti.qualcomm.com> | 2015-10-30 09:44:49 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-12-04 08:43:32 -0500 |
commit | 91d3ab46730379e89e1e908c6f62fbcadb3d8f08 (patch) | |
tree | cc59634568963090cf4d732e34ee6bebc0b49ec1 /net/wireless/rdev-ops.h | |
parent | b115b972997428b9134aba377721fea6486adbd0 (diff) |
cfg80211: Add support for aborting an ongoing scan
Implement new functionality for aborting an ongoing scan.
Add NL80211_CMD_ABORT_SCAN to the nl80211 interface. After
aborting the scan, driver shall provide the scan status by
calling cfg80211_scan_done().
Reviewed-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Vidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Signed-off-by: Sunil Dutt <usdutt@qti.qualcomm.com>
[change command to take wdev instead of netdev so that it
can be used on p2p-device scans]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/rdev-ops.h')
-rw-r--r-- | net/wireless/rdev-ops.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h index b8cc594d409d..8ae0c04f9fc7 100644 --- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h | |||
@@ -427,6 +427,14 @@ static inline int rdev_scan(struct cfg80211_registered_device *rdev, | |||
427 | return ret; | 427 | return ret; |
428 | } | 428 | } |
429 | 429 | ||
430 | static inline void rdev_abort_scan(struct cfg80211_registered_device *rdev, | ||
431 | struct wireless_dev *wdev) | ||
432 | { | ||
433 | trace_rdev_abort_scan(&rdev->wiphy, wdev); | ||
434 | rdev->ops->abort_scan(&rdev->wiphy, wdev); | ||
435 | trace_rdev_return_void(&rdev->wiphy); | ||
436 | } | ||
437 | |||
430 | static inline int rdev_auth(struct cfg80211_registered_device *rdev, | 438 | static inline int rdev_auth(struct cfg80211_registered_device *rdev, |
431 | struct net_device *dev, | 439 | struct net_device *dev, |
432 | struct cfg80211_auth_request *req) | 440 | struct cfg80211_auth_request *req) |