-#include <net/if.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <netlink/msg.h>
#include <netlink/attr.h>
-#include <arpa/inet.h>
-
#include "nl80211.h"
#include "iw.h"
SECTION(coalesce);
-static int handle_coalesce_enable(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_coalesce_enable(struct nl80211_state *state,
struct nl_msg *msg, int argc, char **argv,
enum id_input id)
{
"match '43:34:00:12' after 18 bytes of offset in Rx packet.\n");
static int
-handle_coalesce_disable(struct nl80211_state *state, struct nl_cb *cb,
+handle_coalesce_disable(struct nl80211_state *state,
struct nl_msg *msg, int argc, char **argv,
enum id_input id)
{
return NL_SKIP;
}
-static int handle_coalesce_show(struct nl80211_state *state, struct nl_cb *cb,
+static int handle_coalesce_show(struct nl80211_state *state,
struct nl_msg *msg, int argc, char **argv,
enum id_input id)
{
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM,
- print_coalesce_handler, NULL);
+ register_handler(print_coalesce_handler, NULL);
return 0;
}