1 #include <netlink/genl/genl.h>
2 #include <netlink/genl/family.h>
3 #include <netlink/genl/ctrl.h>
4 #include <netlink/msg.h>
5 #include <netlink/attr.h>
12 static int handle_p2p_start(struct nl80211_state
*state
,
13 struct nl_msg
*msg
, int argc
, char **argv
,
18 COMMAND(p2p
, start
, "", NL80211_CMD_START_P2P_DEVICE
, 0, CIB_WDEV
, handle_p2p_start
, "");
20 static int handle_p2p_stop(struct nl80211_state
*state
,
21 struct nl_msg
*msg
, int argc
, char **argv
,
26 COMMAND(p2p
, stop
, "", NL80211_CMD_STOP_P2P_DEVICE
, 0, CIB_WDEV
, handle_p2p_stop
, "");