blob: addb740fad18d45ec3070a733af06628c50b1348 [file] [log] [blame]
Johannes Berg8d5d7ba2012-11-06 11:31:55 +01001#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
14SECTION(p2p);
15
16static 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}
22COMMAND(p2p, start, "", NL80211_CMD_START_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_start, "");
23
24static 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}
30COMMAND(p2p, stop, "", NL80211_CMD_STOP_P2P_DEVICE, 0, CIB_WDEV, handle_p2p_stop, "");