]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - p2p.c
add "channels" PHY command listing frequencies with more details
[thirdparty/iw.git] / p2p.c
diff --git a/p2p.c b/p2p.c
index addb740fad18d45ec3070a733af06628c50b1348..2d4bab08a7f605d70584ac05f56d06d3203b07da 100644 (file)
--- a/p2p.c
+++ b/p2p.c
@@ -1,7 +1,3 @@
-#include <net/if.h>
-#include <errno.h>
-#include <string.h>
-
 #include <netlink/genl/genl.h>
 #include <netlink/genl/family.h>
 #include <netlink/genl/ctrl.h>
@@ -13,7 +9,7 @@
 
 SECTION(p2p);
 
-static int handle_p2p_start(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_p2p_start(struct nl80211_state *state,
                            struct nl_msg *msg, int argc, char **argv,
                            enum id_input id)
 {
@@ -21,7 +17,7 @@ static int handle_p2p_start(struct nl80211_state *state, struct nl_cb *cb,
 }
 COMMAND(p2p, start, "", NL80211_CMD_START_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_start, "");
 
-static int handle_p2p_stop(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_p2p_stop(struct nl80211_state *state,
                           struct nl_msg *msg, int argc, char **argv,
                           enum id_input id)
 {