]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - roc.c
iw: fix fd leak inside handle_netns
[thirdparty/iw.git] / roc.c
diff --git a/roc.c b/roc.c
index c48fbd3db78a45a01b5e21a18bffff32f8037cb2..c6eda103c12acbd067da4a26e5c1128d3a88a9e6 100644 (file)
--- a/roc.c
+++ b/roc.c
@@ -1,4 +1,3 @@
-#include <net/if.h>
 #include <errno.h>
 #include <string.h>
 
@@ -13,7 +12,7 @@
 
 SECTION(roc);
 
-static int handle_roc_start(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_roc_start(struct nl80211_state *state,
                            struct nl_msg *msg, int argc, char **argv,
                            enum id_input id)
 {
@@ -38,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, "");