diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-08 13:13:28 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2009-04-08 14:12:41 +0200 |
commit | 7c37a24d7570cd9ff6b89d6fa8c1846c9b66969d (patch) | |
tree | e694f825041c3ac4b1e79365bae86346220b5ac1 /interface.c | |
parent | f83a81d068ccb318c0b824870b12b8578ba888ce (diff) | |
download | platform_external_iw-7c37a24d7570cd9ff6b89d6fa8c1846c9b66969d.tar.gz platform_external_iw-7c37a24d7570cd9ff6b89d6fa8c1846c9b66969d.tar.bz2 platform_external_iw-7c37a24d7570cd9ff6b89d6fa8c1846c9b66969d.zip |
prepare for more generic commands
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/interface.c b/interface.c index 01659d8..971c3b6 100644 --- a/interface.c +++ b/interface.c @@ -123,7 +123,8 @@ static int get_if_type(int *argc, char ***argv, enum nl80211_iftype *type) return -1; } -static int handle_interface_add(struct nl_cb *cb, +static int handle_interface_add(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { @@ -183,7 +184,8 @@ COMMAND(interface, add, "<name> type <type> [mesh_id <meshid>] [flags ...]", COMMAND(interface, add, "<name> type <type> [mesh_id <meshid>] [flags ...]", NL80211_CMD_NEW_INTERFACE, 0, CIB_NETDEV, handle_interface_add); -static int handle_interface_del(struct nl_cb *cb, +static int handle_interface_del(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { @@ -210,7 +212,8 @@ static int print_iface_handler(struct nl_msg *msg, void *arg) return NL_SKIP; } -static int handle_interface_info(struct nl_cb *cb, +static int handle_interface_info(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { @@ -219,7 +222,8 @@ static int handle_interface_info(struct nl_cb *cb, } TOPLEVEL(info, NULL, NL80211_CMD_GET_INTERFACE, 0, CIB_NETDEV, handle_interface_info); -static int handle_interface_set(struct nl_cb *cb, +static int handle_interface_set(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { @@ -246,7 +250,8 @@ static int handle_interface_set(struct nl_cb *cb, COMMAND(set, monitor, "<flag> [...]", NL80211_CMD_SET_INTERFACE, 0, CIB_NETDEV, handle_interface_set); -static int handle_interface_meshid(struct nl_cb *cb, +static int handle_interface_meshid(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { |