4 #include <netlink/genl/genl.h>
5 #include <netlink/genl/family.h>
6 #include <netlink/genl/ctrl.h>
7 #include <netlink/msg.h>
8 #include <netlink/attr.h>
15 static int handle_roc_start(struct nl80211_state
*state
,
16 struct nl_msg
*msg
, int argc
, char **argv
,
25 freq
= strtol(argv
[0], &end
, 0);
29 time
= strtol(argv
[1], &end
, 0);
33 NLA_PUT_U32(msg
, NL80211_ATTR_WIPHY_FREQ
, freq
);
34 NLA_PUT_U32(msg
, NL80211_ATTR_DURATION
, time
);
40 COMMAND(roc
, start
, "<freq> <time in ms>", NL80211_CMD_REMAIN_ON_CHANNEL
, 0, CIB_NETDEV
, handle_roc_start
, "");