4 #include <netlink/genl/genl.h>
5 #include <netlink/genl/family.h>
6 #include <netlink/genl/ctrl.h>
7 #include <netlink/msg.h>
8 #include <netlink/attr.h>
15 static int handle_p2p_start(struct nl80211_state
*state
,
16 struct nl_msg
*msg
, int argc
, char **argv
,
21 COMMAND(p2p
, start
, "", NL80211_CMD_START_P2P_DEVICE
, 0, CIB_WDEV
, handle_p2p_start
, "");
23 static int handle_p2p_stop(struct nl80211_state
*state
,
24 struct nl_msg
*msg
, int argc
, char **argv
,
29 COMMAND(p2p
, stop
, "", NL80211_CMD_STOP_P2P_DEVICE
, 0, CIB_WDEV
, handle_p2p_stop
, "");