3 #include <netlink/genl/genl.h>
4 #include <netlink/genl/family.h>
5 #include <netlink/genl/ctrl.h>
6 #include <netlink/msg.h>
7 #include <netlink/attr.h>
12 static int offchannel(struct nl80211_state
*state
,
13 struct nl_msg
*msg
, int argc
, char **argv
,
22 NLA_PUT_U32(msg
, NL80211_ATTR_WIPHY_FREQ
,
23 strtoul(argv
[0], &end
, 10));
30 NLA_PUT_U32(msg
, NL80211_ATTR_DURATION
,
31 strtoul(argv
[0], &end
, 10));
45 TOPLEVEL(offchannel
, "<freq> <duration>", NL80211_CMD_REMAIN_ON_CHANNEL
, 0,
46 CIB_NETDEV
, offchannel
,
47 "Leave operating channel and go to the given channel for a while.");