X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=phy.c;h=341e5a4649e3d50cb51dc99ad877d58ca168059a;hb=7c37a24d7570cd9ff6b89d6fa8c1846c9b66969d;hp=f5850dc167d528b1f1b0d62774f36695ad735648;hpb=f83a81d068ccb318c0b824870b12b8578ba888ce;p=thirdparty%2Fiw.git diff --git a/phy.c b/phy.c index f5850dc..341e5a4 100644 --- a/phy.c +++ b/phy.c @@ -11,7 +11,8 @@ #include "nl80211.h" #include "iw.h" -static int handle_name(struct nl_cb *cb, +static int handle_name(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { @@ -67,7 +68,8 @@ static int handle_freqchan(struct nl_msg *msg, bool chan, return -ENOBUFS; } -static int handle_freq(struct nl_cb *cb, struct nl_msg *msg, +static int handle_freq(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { return handle_freqchan(msg, false, argc, argv); @@ -77,7 +79,8 @@ COMMAND(set, freq, " [HT20|HT40+|HT40-]", COMMAND(set, freq, " [HT20|HT40+|HT40-]", NL80211_CMD_SET_WIPHY, 0, CIB_NETDEV, handle_freq); -static int handle_chan(struct nl_cb *cb, struct nl_msg *msg, +static int handle_chan(struct nl80211_state *state, + struct nl_cb *cb, struct nl_msg *msg, int argc, char **argv) { return handle_freqchan(msg, true, argc, argv);