summaryrefslogtreecommitdiff
path: root/package/iw/patches/120-ibss_mcast_rate.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-25 23:51:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-25 23:51:07 +0000
commitf65c625fda728788b16b1b6422a56258c702d8e0 (patch)
tree0409c882f43417a2dc3128b42bb2ce21a57a52a0 /package/iw/patches/120-ibss_mcast_rate.patch
parent6934f55f3a7c46a0c2fd046d4960a55b37af8730 (diff)
downloadmtk-20170518-f65c625fda728788b16b1b6422a56258c702d8e0.zip
mtk-20170518-f65c625fda728788b16b1b6422a56258c702d8e0.tar.gz
mtk-20170518-f65c625fda728788b16b1b6422a56258c702d8e0.tar.bz2
iw: add support for setting the multicast rate for ibss
SVN-Revision: 23636
Diffstat (limited to 'package/iw/patches/120-ibss_mcast_rate.patch')
-rw-r--r--package/iw/patches/120-ibss_mcast_rate.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/package/iw/patches/120-ibss_mcast_rate.patch b/package/iw/patches/120-ibss_mcast_rate.patch
new file mode 100644
index 0000000..acbd3e8
--- /dev/null
+++ b/package/iw/patches/120-ibss_mcast_rate.patch
@@ -0,0 +1,32 @@
+--- a/ibss.c
++++ b/ibss.c
+@@ -83,6 +83,20 @@ static int join_ibss(struct nl80211_stat
+ argc--;
+ }
+
++ /* multicast rate */
++ if (argc > 1 && strcmp(argv[0], "mcast-rate") == 0) {
++ argv++;
++ argc--;
++
++ rate = strtod(argv[0], &end);
++ if (*end != '\0')
++ return 1;
++
++ NLA_PUT_U32(msg, NL80211_ATTR_MCAST_RATE, (int) rate * 10);
++ argv++;
++ argc--;
++ }
++
+ if (!argc)
+ return 0;
+
+@@ -109,7 +123,7 @@ COMMAND(ibss, leave, NULL,
+ "Leave the current IBSS cell.");
+ COMMAND(ibss, join,
+ "<SSID> <freq in MHz> [fixed-freq] [<fixed bssid>] "
+- "[basic-rates <rate in Mbps,rate2,...>] [key d:0:abcde]",
++ "[basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]",
+ NL80211_CMD_JOIN_IBSS, 0, CIB_NETDEV, join_ibss,
+ "Join the IBSS cell with the given SSID, if it doesn't exist create\n"
+ "it on the given frequency. When fixed frequency is requested, don't\n"