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>
16 static int handle_roc_start(struct nl80211_state
*state
, struct nl_cb
*cb
,
17 struct nl_msg
*msg
, int argc
, char **argv
,
26 freq
= strtol(argv
[0], &end
, 0);
30 time
= strtol(argv
[1], &end
, 0);
34 NLA_PUT_U32(msg
, NL80211_ATTR_WIPHY_FREQ
, freq
);
35 NLA_PUT_U32(msg
, NL80211_ATTR_DURATION
, time
);
41 COMMAND(roc
, start
, "<freq> <time>", NL80211_CMD_REMAIN_ON_CHANNEL
, 0, CIB_NETDEV
, handle_roc_start
, "");