diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2009-11-28 23:16:11 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2009-11-28 23:16:11 +0000 |
commit | a9241174f5d2181523f1a073b64bb3d0445c7176 (patch) | |
tree | 57194a5e9f4a5f1f878eee77fbe52dafcae8c7b3 /package/iw/patches/110-sta_vlan.patch | |
parent | 4a23c7a92cc675f73a91bed72ee031cfdd4eb8c9 (diff) | |
download | mtk-20170518-a9241174f5d2181523f1a073b64bb3d0445c7176.zip mtk-20170518-a9241174f5d2181523f1a073b64bb3d0445c7176.tar.gz mtk-20170518-a9241174f5d2181523f1a073b64bb3d0445c7176.tar.bz2 |
Update iw to version 0.9.18
The deleted patches went upstream.
SVN-Revision: 18591
Diffstat (limited to 'package/iw/patches/110-sta_vlan.patch')
-rw-r--r-- | package/iw/patches/110-sta_vlan.patch | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/package/iw/patches/110-sta_vlan.patch b/package/iw/patches/110-sta_vlan.patch deleted file mode 100644 index 913c698..0000000 --- a/package/iw/patches/110-sta_vlan.patch +++ /dev/null @@ -1,69 +0,0 @@ ---- a/station.c -+++ b/station.c -@@ -196,7 +196,7 @@ COMMAND(station, del, "<MAC address>", - NL80211_CMD_DEL_STATION, 0, CIB_NETDEV, handle_station_get, - "Remove the given station entry (use with caution!)"); - --static int handle_station_set(struct nl80211_state *state, -+static int handle_station_set_plink(struct nl80211_state *state, - struct nl_cb *cb, - struct nl_msg *msg, - int argc, char **argv) -@@ -241,9 +241,56 @@ static int handle_station_set(struct nl8 - return -ENOBUFS; - } - COMMAND(station, set, "<MAC address> plink_action <open|block>", -- NL80211_CMD_SET_STATION, 0, CIB_NETDEV, handle_station_set, -+ NL80211_CMD_SET_STATION, 0, CIB_NETDEV, handle_station_set_plink, - "Set mesh peer link action for this station (peer)."); - -+static int handle_station_set_vlan(struct nl80211_state *state, -+ struct nl_cb *cb, -+ struct nl_msg *msg, -+ int argc, char **argv) -+{ -+ unsigned char mac_addr[ETH_ALEN]; -+ unsigned long sta_vlan = 0; -+ char *err = NULL; -+ -+ if (argc < 3) -+ return 1; -+ -+ if (mac_addr_a2n(mac_addr, argv[0])) { -+ fprintf(stderr, "invalid mac address\n"); -+ return 2; -+ } -+ argc--; -+ argv++; -+ -+ if (strcmp("vlan", argv[0]) != 0) -+ return 1; -+ argc--; -+ argv++; -+ -+ sta_vlan = strtoul(argv[0], &err, 0); -+ if (err && *err) { -+ fprintf(stderr, "invalid vlan id\n"); -+ return 2; -+ } -+ argc--; -+ argv++; -+ -+ if (argc) -+ return 1; -+ -+ NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr); -+ NLA_PUT_U32(msg, NL80211_ATTR_STA_VLAN, sta_vlan); -+ -+ return 0; -+ nla_put_failure: -+ return -ENOBUFS; -+} -+COMMAND(station, set, "<MAC address> vlan <ifindex>", -+ NL80211_CMD_SET_STATION, 0, CIB_NETDEV, handle_station_set_vlan, -+ "Set an AP VLAN for this station."); -+ -+ - static int handle_station_dump(struct nl80211_state *state, - struct nl_cb *cb, - struct nl_msg *msg, |