5 #include <netlink/genl/genl.h>
6 #include <netlink/genl/family.h>
7 #include <netlink/genl/ctrl.h>
8 #include <netlink/msg.h>
9 #include <netlink/attr.h>
16 static int handle_p2p_start(struct nl80211_state
*state
, struct nl_cb
*cb
,
17 struct nl_msg
*msg
, int argc
, char **argv
,
22 COMMAND(p2p
, start
, "", NL80211_CMD_START_P2P_DEVICE
, 0, CIB_WDEV
, handle_p2p_start
, "");
24 static int handle_p2p_stop(struct nl80211_state
*state
, struct nl_cb
*cb
,
25 struct nl_msg
*msg
, int argc
, char **argv
,
30 COMMAND(p2p
, stop
, "", NL80211_CMD_STOP_P2P_DEVICE
, 0, CIB_WDEV
, handle_p2p_stop
, "");