xref: /aosp_15_r20/external/iw/p2p.c (revision 92022041c981f431db0b590d0c3272306d0ea2a2)
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>
6 
7 #include "nl80211.h"
8 #include "iw.h"
9 
10 SECTION(p2p);
11 
handle_p2p_start(struct nl80211_state * state,struct nl_msg * msg,int argc,char ** argv,enum id_input id)12 static int handle_p2p_start(struct nl80211_state *state,
13 			    struct nl_msg *msg, int argc, char **argv,
14 			    enum id_input id)
15 {
16 	return 0;
17 }
18 COMMAND(p2p, start, "", NL80211_CMD_START_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_start, "");
19 
handle_p2p_stop(struct nl80211_state * state,struct nl_msg * msg,int argc,char ** argv,enum id_input id)20 static int handle_p2p_stop(struct nl80211_state *state,
21 			   struct nl_msg *msg, int argc, char **argv,
22 			   enum id_input id)
23 {
24 	return 0;
25 }
26 COMMAND(p2p, stop, "", NL80211_CMD_STOP_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_stop, "");
27