]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - p2p.c
iw: remove cb from arguments and simplify valid handler
[thirdparty/iw.git] / p2p.c
diff --git a/p2p.c b/p2p.c
index addb740fad18d45ec3070a733af06628c50b1348..bcfa01c5ad880835141e7c93e5c0e00b672424c0 100644 (file)
--- a/p2p.c
+++ b/p2p.c
@@ -13,7 +13,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 +21,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)
 {