summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-25 23:51:00 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-25 23:51:00 +0000
commit8c409fe4a33ea4dcccd7236905adab99875e5829 (patch)
treebfe2ac5e8cb80bd00ea16def8c5d19975ec5cbec /package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch
parent6ea5dc3cca616142fa452ba04a5f1eeaeef92acf (diff)
mac80211: add support for setting the multicast rate for ibss
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23635 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch')
-rw-r--r--package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch b/package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch
new file mode 100644
index 0000000000..7ec4ce49d7
--- /dev/null
+++ b/package/mac80211/patches/580-cfg80211_ibss_mcast_rate.patch
@@ -0,0 +1,58 @@
+--- a/include/linux/nl80211.h
++++ b/include/linux/nl80211.h
+@@ -804,6 +804,8 @@ enum nl80211_commands {
+ * @NL80211_ATTR_SUPPORT_IBSS_RSN: The device supports IBSS RSN, which mostly
+ * means support for per-station GTKs.
+ *
++ * @NL80211_ATTR_MCAST_RATE: Multicast tx rate (in 100 kbps) for IBSS
++ *
+ * @NL80211_ATTR_MAX: highest attribute number currently defined
+ * @__NL80211_ATTR_AFTER_LAST: internal use
+ */
+@@ -973,6 +975,8 @@ enum nl80211_attrs {
+
+ NL80211_ATTR_SUPPORT_IBSS_RSN,
+
++ NL80211_ATTR_MCAST_RATE,
++
+ /* add attributes here, update the policy in nl80211.c */
+
+ __NL80211_ATTR_AFTER_LAST,
+--- a/include/net/cfg80211.h
++++ b/include/net/cfg80211.h
+@@ -924,6 +924,7 @@ struct cfg80211_disassoc_request {
+ * @privacy: this is a protected network, keys will be configured
+ * after joining
+ * @basic_rates: bitmap of basic rates to use when creating the IBSS
++ * @mcast_rate: multicast tx rate (in 100 kbps)
+ */
+ struct cfg80211_ibss_params {
+ u8 *ssid;
+@@ -935,6 +936,7 @@ struct cfg80211_ibss_params {
+ u32 basic_rates;
+ bool channel_fixed;
+ bool privacy;
++ int mcast_rate;
+ };
+
+ /**
+--- a/net/wireless/nl80211.c
++++ b/net/wireless/nl80211.c
+@@ -167,6 +167,7 @@ static const struct nla_policy nl80211_p
+ [NL80211_ATTR_WIPHY_TX_POWER_SETTING] = { .type = NLA_U32 },
+ [NL80211_ATTR_WIPHY_TX_POWER_LEVEL] = { .type = NLA_U32 },
+ [NL80211_ATTR_FRAME_TYPE] = { .type = NLA_U16 },
++ [NL80211_ATTR_MCAST_RATE] = { .type = NLA_U32 },
+ };
+
+ /* policy for the key attributes */
+@@ -3652,6 +3653,9 @@ static int nl80211_join_ibss(struct sk_b
+ return -EINVAL;
+ }
+ }
++ if (info->attrs[NL80211_ATTR_MCAST_RATE])
++ ibss.mcast_rate =
++ nla_get_u32(info->attrs[NL80211_ATTR_MCAST_RATE]);
+
+ if (ibss.privacy && info->attrs[NL80211_ATTR_KEYS]) {
+ connkeys = nl80211_parse_connkeys(rdev,