]>
git.ipfire.org Git - thirdparty/iw.git/blob - ocb.c
9 static int join_ocb(struct nl80211_state
*state
,
10 struct nl_msg
*msg
, int argc
, char **argv
,
13 struct chandef chandef
;
19 err
= parse_freqchan(&chandef
, false, argc
, argv
, &parsed
);
24 err
= put_chandef(msg
, &chandef
);
30 COMMAND(ocb
, join
, "<freq in MHz> <5MHz|10MHz>",
31 NL80211_CMD_JOIN_OCB
, 0, CIB_NETDEV
, join_ocb
,
32 "Join the OCB mode network.");
34 static int leave_ocb(struct nl80211_state
*state
,
35 struct nl_msg
*msg
, int argc
, char **argv
,
43 COMMAND(ocb
, leave
, NULL
, NL80211_CMD_LEAVE_OCB
, 0, CIB_NETDEV
, leave_ocb
,
44 "Leave the OCB mode network.");