From 05514f9581f66b12ac9ee0f21c770ceb34310e9d Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Thu, 19 Jul 2012 11:50:50 +0200 Subject: [PATCH] pass idby argument to all functions --- bitrate.c | 3 ++- connect.c | 9 ++++++--- cqm.c | 3 ++- event.c | 3 ++- hwsim.c | 12 ++++++++---- ibss.c | 6 ++++-- info.c | 3 ++- interface.c | 34 ++++++++++++++++++++++------------ iw.c | 7 ++++--- iw.h | 3 ++- link.c | 9 ++++++--- mesh.c | 14 +++++++++----- mpath.c | 9 ++++++--- offch.c | 3 ++- phy.c | 30 ++++++++++++++++++++---------- ps.c | 6 ++++-- reg.c | 6 ++++-- roc.c | 3 ++- scan.c | 9 ++++++--- station.c | 16 ++++++++++------ survey.c | 7 ++++--- wowlan.c | 9 ++++++--- 22 files changed, 133 insertions(+), 71 deletions(-) diff --git a/bitrate.c b/bitrate.c index 22b863e..4da246f 100644 --- a/bitrate.c +++ b/bitrate.c @@ -7,7 +7,8 @@ static int handle_bitrates(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { struct nlattr *nl_rates, *nl_band; int i; diff --git a/connect.c b/connect.c index 1af4e0d..a58e44e 100644 --- a/connect.c +++ b/connect.c @@ -10,7 +10,8 @@ #include "iw.h" static int iw_conn(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { char *end; unsigned char bssid[6]; @@ -60,7 +61,8 @@ static int iw_conn(struct nl80211_state *state, struct nl_cb *cb, static int disconnect(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { return 0; } @@ -69,7 +71,8 @@ TOPLEVEL(disconnect, NULL, "Disconnect from the current network."); static int iw_connect(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { char **conn_argv, *dev = argv[0]; static const __u32 cmds[] = { diff --git a/cqm.c b/cqm.c index 3da2b54..65876af 100644 --- a/cqm.c +++ b/cqm.c @@ -10,7 +10,8 @@ #include "iw.h" static int iw_cqm_rssi(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nl_msg *cqm = NULL; int thold = 0; diff --git a/event.c b/event.c index bc39662..f9c5d26 100644 --- a/event.c +++ b/event.c @@ -552,7 +552,8 @@ __u32 listen_events(struct nl80211_state *state, static int print_events(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { struct print_event_args args; int ret; diff --git a/hwsim.c b/hwsim.c index 188c1cb..08c9c2e 100644 --- a/hwsim.c +++ b/hwsim.c @@ -53,7 +53,8 @@ static int print_hwsim_ps_handler(struct nl_msg *msg, void *arg) } static int handle_hwsim_getps(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nlattr *tmdata; @@ -74,7 +75,8 @@ static int handle_hwsim_getps(struct nl80211_state *state, struct nl_cb *cb, COMMAND(hwsim, getps, "", NL80211_CMD_TESTMODE, 0, CIB_PHY, handle_hwsim_getps, ""); static int handle_hwsim_setps(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nlattr *tmdata; __u32 ps; @@ -105,7 +107,8 @@ static int handle_hwsim_setps(struct nl80211_state *state, struct nl_cb *cb, COMMAND(hwsim, setps, "", NL80211_CMD_TESTMODE, 0, CIB_PHY, handle_hwsim_setps, ""); static int handle_hwsim_stop_queues(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nlattr *tmdata; @@ -126,7 +129,8 @@ static int handle_hwsim_stop_queues(struct nl80211_state *state, struct nl_cb *c COMMAND(hwsim, stopqueues, "", NL80211_CMD_TESTMODE, 0, CIB_PHY, handle_hwsim_stop_queues, ""); static int handle_hwsim_wake_queues(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nlattr *tmdata; diff --git a/ibss.c b/ibss.c index 62a1110..955446e 100644 --- a/ibss.c +++ b/ibss.c @@ -19,7 +19,8 @@ SECTION(ibss); static int join_ibss(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *end; unsigned char abssid[6]; @@ -154,7 +155,8 @@ static int join_ibss(struct nl80211_state *state, static int leave_ibss(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { return 0; } diff --git a/info.c b/info.c index 50a9073..f039bba 100644 --- a/info.c +++ b/info.c @@ -446,7 +446,8 @@ broken_combination: static int handle_info(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_phy_handler, NULL); diff --git a/interface.c b/interface.c index 9b08627..945362f 100644 --- a/interface.c +++ b/interface.c @@ -159,7 +159,8 @@ nla_put_failure: static int handle_interface_add(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *name; char *mesh_id = NULL; @@ -233,7 +234,8 @@ COMMAND(interface, add, " type [mesh_id ] [4addr on|off] [f static int handle_interface_del(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { return 0; } @@ -311,7 +313,8 @@ static int print_iface_handler(struct nl_msg *msg, void *arg) static int handle_interface_info(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_iface_handler, NULL); return 0; @@ -322,7 +325,8 @@ TOPLEVEL(info, NULL, NL80211_CMD_GET_INTERFACE, 0, CIB_NETDEV, handle_interface_ static int handle_interface_set(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { if (!argc) return 1; @@ -352,7 +356,8 @@ COMMAND(set, monitor, "*", static int handle_interface_meshid(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *mesh_id = NULL; @@ -375,7 +380,8 @@ static unsigned int dev_dump_wiphy; static int handle_dev_dump(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { dev_dump_wiphy = -1; nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_iface_handler, &dev_dump_wiphy); @@ -387,7 +393,8 @@ TOPLEVEL(dev, NULL, NL80211_CMD_GET_INTERFACE, NLM_F_DUMP, CIB_NONE, handle_dev_ static int handle_interface_type(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { enum nl80211_iftype type; int tpset; @@ -411,9 +418,10 @@ COMMAND(set, type, "", IFACE_TYPES); static int handle_interface_4addr(struct nl80211_state *state, - struct nl_cb *cb, - struct nl_msg *msg, - int argc, char **argv) + struct nl_cb *cb, + struct nl_msg *msg, + int argc, char **argv, + enum id_input id) { if (argc != 1) return 1; @@ -426,7 +434,8 @@ COMMAND(set, 4addr, "", static int handle_interface_noack_map(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { uint16_t noack_map; char *end; @@ -453,7 +462,8 @@ COMMAND(set, noack_map, "", static int handle_interface_wds_peer(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned char mac_addr[ETH_ALEN]; diff --git a/iw.c b/iw.c index cdfd00e..98c0852 100644 --- a/iw.c +++ b/iw.c @@ -189,7 +189,8 @@ static void usage(int argc, char **argv) static int print_help(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { exit(3); } @@ -375,7 +376,7 @@ static int __handle_cmd(struct nl80211_state *state, enum id_input idby, if (!cmd->cmd) { argc = o_argc; argv = o_argv; - return cmd->handler(state, NULL, NULL, argc, argv); + return cmd->handler(state, NULL, NULL, argc, argv, idby); } msg = nlmsg_alloc(); @@ -409,7 +410,7 @@ static int __handle_cmd(struct nl80211_state *state, enum id_input idby, break; } - err = cmd->handler(state, cb, msg, argc, argv); + err = cmd->handler(state, cb, msg, argc, argv, idby); if (err) goto out; diff --git a/iw.h b/iw.h index 1d7c4ea..54ecbc3 100644 --- a/iw.h +++ b/iw.h @@ -54,7 +54,8 @@ struct cmd { int (*handler)(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv); + int argc, char **argv, + enum id_input id); const struct cmd *(*selector)(int argc, char **argv); const struct cmd *parent; }; diff --git a/link.c b/link.c index eb27de2..6a803a1 100644 --- a/link.c +++ b/link.c @@ -100,7 +100,8 @@ static int link_bss_handler(struct nl_msg *msg, void *arg) static int handle_scan_for_link(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { if (argc > 0) return 1; @@ -226,7 +227,8 @@ static int print_link_sta(struct nl_msg *msg, void *arg) static int handle_link_sta(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned char mac_addr[ETH_ALEN]; @@ -254,7 +256,8 @@ static int handle_link_sta(struct nl80211_state *state, } static int handle_link(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { char *link_argv[] = { NULL, diff --git a/mesh.c b/mesh.c index 7b7efe8..3077abf 100644 --- a/mesh.c +++ b/mesh.c @@ -251,7 +251,8 @@ static const struct mesh_param_descr *find_mesh_param(const char *name) static int set_interface_meshparam(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { const struct mesh_param_descr *mdescr; struct nlattr *container; @@ -357,7 +358,8 @@ static int print_mesh_param_handler(struct nl_msg *msg, void *arg) static int get_interface_meshparam(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { const struct mesh_param_descr *mdescr = NULL; @@ -380,7 +382,8 @@ COMMAND(get, mesh_param, "[]", "Retrieve mesh parameter (run command without any to see available ones)."); static int join_mesh(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nlattr *container; float rate; @@ -428,7 +431,7 @@ static int join_mesh(struct nl80211_state *state, struct nl_cb *cb, if (!argc) return 0; - return set_interface_meshparam(state, cb, msg, argc, argv); + return set_interface_meshparam(state, cb, msg, argc, argv, id); nla_put_failure: return -ENOBUFS; } @@ -438,7 +441,8 @@ COMMAND(mesh, join, " [mcast-rate ] [vendor_sync on|off]" "Join a mesh with the given mesh ID with mcast-rate and mesh parameters."); static int leave_mesh(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { if (argc) return 1; diff --git a/mpath.c b/mpath.c index 3afe7b7..8f08698 100644 --- a/mpath.c +++ b/mpath.c @@ -99,7 +99,8 @@ static int print_mpath_handler(struct nl_msg *msg, void *arg) static int handle_mpath_get(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned char dst[ETH_ALEN]; @@ -134,7 +135,8 @@ COMMAND(mpath, del, "", static int handle_mpath_set(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned char dst[ETH_ALEN]; unsigned char next_hop[ETH_ALEN]; @@ -182,7 +184,8 @@ COMMAND(mpath, set, " next_hop ", static int handle_mpath_dump(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { printf("DEST ADDR NEXT HOP IFACE\tSN\tMETRIC\tQLEN\t" "EXPTIME\t\tDTIM\tDRET\tFLAGS\n"); diff --git a/offch.c b/offch.c index b40a523..d8c67c0 100644 --- a/offch.c +++ b/offch.c @@ -10,7 +10,8 @@ #include "iw.h" static int offchannel(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { char *end; diff --git a/phy.c b/phy.c index 839aead..860f299 100644 --- a/phy.c +++ b/phy.c @@ -15,7 +15,8 @@ static int handle_name(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { if (argc != 1) return 1; @@ -78,7 +79,8 @@ static int handle_freqchan(struct nl_msg *msg, bool chan, static int handle_freq(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { return handle_freqchan(msg, false, argc, argv); } @@ -91,7 +93,8 @@ COMMAND(set, freq, " [HT20|HT40+|HT40-]", static int handle_chan(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { return handle_freqchan(msg, true, argc, argv); } @@ -102,7 +105,8 @@ COMMAND(set, channel, " [HT20|HT40+|HT40-]", static int handle_fragmentation(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned int frag; @@ -133,7 +137,8 @@ COMMAND(set, frag, "", static int handle_rts(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned int rts; @@ -165,7 +170,8 @@ COMMAND(set, rts, "", static int handle_netns(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *end; @@ -192,7 +198,8 @@ COMMAND(set, netns, "", static int handle_coverage(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *end; unsigned int coverage; @@ -223,7 +230,8 @@ COMMAND(set, coverage, "", static int handle_distance(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *end; unsigned int distance, coverage; @@ -263,7 +271,8 @@ COMMAND(set, distance, "", static int handle_txpower(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { enum nl80211_tx_power_setting type; int mbm; @@ -314,7 +323,8 @@ COMMAND(set, txpower, " []", static int handle_antenna(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char *end; uint32_t tx_ant = 0, rx_ant = 0; diff --git a/ps.c b/ps.c index 6feeeb9..4c8e2d1 100644 --- a/ps.c +++ b/ps.c @@ -11,7 +11,8 @@ static int set_power_save(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { enum nl80211_ps_state ps_state; @@ -71,7 +72,8 @@ static int print_power_save_handler(struct nl_msg *msg, void *arg) static int get_power_save(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_power_save_handler, NULL); diff --git a/reg.c b/reg.c index 06bbd4c..5afc92b 100644 --- a/reg.c +++ b/reg.c @@ -62,7 +62,8 @@ char *reg_initiator_to_string(__u8 initiator) static int handle_reg_set(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char alpha2[3]; @@ -182,7 +183,8 @@ static int print_reg_handler(struct nl_msg *msg, void *arg) static int handle_reg_get(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_reg_handler, NULL); return 0; diff --git a/roc.c b/roc.c index 1b29e6a..c48fbd3 100644 --- a/roc.c +++ b/roc.c @@ -14,7 +14,8 @@ SECTION(roc); static int handle_roc_start(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { char *end; int freq, time; diff --git a/scan.c b/scan.c index 7ae7929..be9eaff 100644 --- a/scan.c +++ b/scan.c @@ -55,7 +55,8 @@ union ieee80211_country_ie_triplet { static int handle_scan(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { struct nl_msg *ssids = NULL, *freqs = NULL; char *eptr; @@ -1247,7 +1248,8 @@ static struct scan_params scan_params; static int handle_scan_dump(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { if (argc > 1) return 1; @@ -1269,7 +1271,8 @@ static int handle_scan_dump(struct nl80211_state *state, static int handle_scan_combined(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { char **trig_argv; static char *dump_argv[] = { diff --git a/station.c b/station.c index 45e84ad..247f445 100644 --- a/station.c +++ b/station.c @@ -238,7 +238,8 @@ static int print_sta_handler(struct nl_msg *msg, void *arg) static int handle_station_get(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned char mac_addr[ETH_ALEN]; @@ -288,7 +289,8 @@ static const struct cmd *select_station_cmd(int argc, char **argv) static int handle_station_set_plink(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { unsigned char plink_action; unsigned char mac_addr[ETH_ALEN]; @@ -335,9 +337,10 @@ COMMAND_ALIAS(station, set, " plink_action ", select_station_cmd, station_set_plink); static int handle_station_set_vlan(struct nl80211_state *state, - struct nl_cb *cb, - struct nl_msg *msg, - int argc, char **argv) + struct nl_cb *cb, + struct nl_msg *msg, + int argc, char **argv, + enum id_input id) { unsigned char mac_addr[ETH_ALEN]; unsigned long sta_vlan = 0; @@ -385,7 +388,8 @@ COMMAND_ALIAS(station, set, " vlan ", static int handle_station_dump(struct nl80211_state *state, struct nl_cb *cb, struct nl_msg *msg, - int argc, char **argv) + int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_sta_handler, NULL); return 0; diff --git a/survey.c b/survey.c index 0810d0c..39cd7b8 100644 --- a/survey.c +++ b/survey.c @@ -69,9 +69,10 @@ static int print_survey_handler(struct nl_msg *msg, void *arg) } static int handle_survey_dump(struct nl80211_state *state, - struct nl_cb *cb, - struct nl_msg *msg, - int argc, char **argv) + struct nl_cb *cb, + struct nl_msg *msg, + int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_survey_handler, NULL); return 0; diff --git a/wowlan.c b/wowlan.c index fa33c1f..6d324ef 100644 --- a/wowlan.c +++ b/wowlan.c @@ -14,7 +14,8 @@ SECTION(wowlan); static int handle_wowlan_enable(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { struct nlattr *wowlan, *pattern; struct nl_msg *patterns = NULL; @@ -99,7 +100,8 @@ COMMAND(wowlan, enable, "[any] [disconnect] [magic-packet] [gtk-rekey-failure] [ static int handle_wowlan_disable(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { /* just a set w/o wowlan attribute */ return 0; @@ -185,7 +187,8 @@ static int print_wowlan_handler(struct nl_msg *msg, void *arg) } static int handle_wowlan_show(struct nl80211_state *state, struct nl_cb *cb, - struct nl_msg *msg, int argc, char **argv) + struct nl_msg *msg, int argc, char **argv, + enum id_input id) { nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_wowlan_handler, NULL); -- 2.39.2