]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - roc.c
iw: bump version to 4.7
[thirdparty/iw.git] / roc.c
diff --git a/roc.c b/roc.c
index 1b29e6ae31239e96f63cb20478db2d39d283faaa..c6eda103c12acbd067da4a26e5c1128d3a88a9e6 100644 (file)
--- a/roc.c
+++ b/roc.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
@@ -13,8 +12,9 @@
 
 SECTION(roc);
 
-static int handle_roc_start(struct nl80211_state *state, struct nl_cb *cb,
-                           struct nl_msg *msg, int argc, char **argv)
+static int handle_roc_start(struct nl80211_state *state,
+                           struct nl_msg *msg, int argc, char **argv,
+                           enum id_input id)
 {
        char *end;
        int freq, time;
@@ -37,4 +37,4 @@ static int handle_roc_start(struct nl80211_state *state, struct nl_cb *cb,
        return -ENOBUFS;
 }
 
-COMMAND(roc, start, "<freq> <time>", NL80211_CMD_REMAIN_ON_CHANNEL, 0, CIB_NETDEV, handle_roc_start, "");
+COMMAND(roc, start, "<freq> <time in ms>", NL80211_CMD_REMAIN_ON_CHANNEL, 0, CIB_NETDEV, handle_roc_start, "");