]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: add scan-abort command
authorEliad Peller <eliad@wizery.com>
Thu, 4 Aug 2016 12:36:23 +0000 (15:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Aug 2016 08:25:26 +0000 (10:25 +0200)
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scan.c

diff --git a/scan.c b/scan.c
index a942769dbc3e4f6a48d0e9e902298934a93332d8..cb7c044a754b143c3af28dd668ebcf036a1a4d59 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -2158,6 +2158,17 @@ COMMAND(scan, trigger, "[freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>]
         "SSIDs (or wildcard if not given) unless passive scanning is requested.");
 
 
+static int handle_scan_abort(struct nl80211_state *state,
+                            struct nl_msg *msg,
+                            int argc, char **argv,
+                            enum id_input id)
+{
+       return 0;
+}
+COMMAND(scan, abort, "",
+       NL80211_CMD_ABORT_SCAN, 0, CIB_NETDEV, handle_scan_abort,
+       "Abort ongoing scan");
+
 static int handle_start_sched_scan(struct nl80211_state *state,
                                   struct nl_msg *msg,
                                   int argc, char **argv, enum id_input id)