diff options
Diffstat (limited to 'offch.c')
-rw-r--r-- | offch.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -9,12 +9,15 @@ #include "nl80211.h" #include "iw.h" -static int offchannel(struct nl80211_state *state, struct nl_cb *cb, +static int offchannel(struct nl80211_state *state, struct nl_msg *msg, int argc, char **argv, enum id_input id) { char *end; + if (argc < 2) + return 1; + /* freq */ NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, strtoul(argv[0], &end, 10)); |