-#include <net/if.h>
#include <errno.h>
#include <string.h>
return NL_SKIP;
}
-static int handle_hwsim_getps(struct nl80211_state *state, struct nl_cb *cb,
- struct nl_msg *msg, int argc, char **argv)
+static int handle_hwsim_getps(struct nl80211_state *state,
+ struct nl_msg *msg, int argc, char **argv,
+ enum id_input id)
{
struct nlattr *tmdata;
nla_nest_end(msg, tmdata);
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM,
- print_hwsim_ps_handler, NULL);
+ register_handler(print_hwsim_ps_handler, NULL);
return 0;
nla_put_failure:
return -ENOBUFS;
}
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)
+static int handle_hwsim_setps(struct nl80211_state *state,
+ struct nl_msg *msg, int argc, char **argv,
+ enum id_input id)
{
struct nlattr *tmdata;
__u32 ps;
nla_nest_end(msg, tmdata);
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM,
- print_hwsim_ps_handler, NULL);
+ register_handler(print_hwsim_ps_handler, NULL);
return 0;
nla_put_failure:
return -ENOBUFS;
}
COMMAND(hwsim, setps, "<value>", 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)
+static int handle_hwsim_stop_queues(struct nl80211_state *state,
+ struct nl_msg *msg, int argc, char **argv,
+ enum id_input id)
{
struct nlattr *tmdata;
}
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)
+static int handle_hwsim_wake_queues(struct nl80211_state *state,
+ struct nl_msg *msg, int argc, char **argv,
+ enum id_input id)
{
struct nlattr *tmdata;