]>
Commit | Line | Data |
---|---|---|
8d5d7ba7 JB |
1 | #include <net/if.h> |
2 | #include <errno.h> | |
3 | #include <string.h> | |
4 | ||
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> | |
10 | ||
11 | #include "nl80211.h" | |
12 | #include "iw.h" | |
13 | ||
14 | SECTION(p2p); | |
15 | ||
16 | static int handle_p2p_start(struct nl80211_state *state, struct nl_cb *cb, | |
17 | struct nl_msg *msg, int argc, char **argv, | |
18 | enum id_input id) | |
19 | { | |
20 | return 0; | |
21 | } | |
22 | COMMAND(p2p, start, "", NL80211_CMD_START_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_start, ""); | |
23 | ||
24 | static int handle_p2p_stop(struct nl80211_state *state, struct nl_cb *cb, | |
25 | struct nl_msg *msg, int argc, char **argv, | |
26 | enum id_input id) | |
27 | { | |
28 | return 0; | |
29 | } | |
30 | COMMAND(p2p, stop, "", NL80211_CMD_STOP_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_stop, ""); |