aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-11 01:33:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-11 01:33:09 +0000
commita4e83614f9fd6e3a6dfa4792617373557acfdc54 (patch)
tree1fafd2be3f6989795ec69425f3dabbade11138b2 /package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch
parent1a5af54e9047e2f063f67f7c0fd8dbd174a99f3d (diff)
downloadmaster-187ad058-a4e83614f9fd6e3a6dfa4792617373557acfdc54.tar.gz
master-187ad058-a4e83614f9fd6e3a6dfa4792617373557acfdc54.tar.bz2
master-187ad058-a4e83614f9fd6e3a6dfa4792617373557acfdc54.zip
mac80211: add rate control rewrite and enhance the performance of the minstrel algorithm for non-mrr configurations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12948 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch')
-rw-r--r--package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch b/package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch
new file mode 100644
index 0000000000..a7d8a9534a
--- /dev/null
+++ b/package/mac80211/patches/413-mac80211-remove-antgain-cfg.patch
@@ -0,0 +1,41 @@
+Subject: mac80211: remove max_antenna_gain config
+
+The antenna gain isn't exactly configurable, despite the belief of
+some unnamed individual who thinks that the EEPROM might influence
+it.
+
+Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
+---
+ include/net/mac80211.h | 2 --
+ net/mac80211/main.c | 2 --
+ 2 files changed, 4 deletions(-)
+
+--- everything.orig/include/net/mac80211.h 2008-10-07 20:06:42.000000000 +0200
++++ everything/include/net/mac80211.h 2008-10-07 20:06:43.000000000 +0200
+@@ -470,7 +470,6 @@ enum ieee80211_conf_flags {
+ * @listen_interval: listen interval in units of beacon interval
+ * @flags: configuration flags defined above
+ * @power_level: requested transmit power (in dBm)
+- * @max_antenna_gain: maximum antenna gain (in dBi)
+ * @antenna_sel_tx: transmit antenna selection, 0: default/diversity,
+ * 1/2: antenna 0/1
+ * @antenna_sel_rx: receive antenna selection, like @antenna_sel_tx
+@@ -485,7 +484,6 @@ struct ieee80211_conf {
+ u16 listen_interval;
+ u32 flags;
+ int power_level;
+- int max_antenna_gain;
+ u8 antenna_sel_tx;
+ u8 antenna_sel_rx;
+
+--- everything.orig/net/mac80211/main.c 2008-10-07 20:06:43.000000000 +0200
++++ everything/net/mac80211/main.c 2008-10-07 20:06:43.000000000 +0200
+@@ -215,8 +215,6 @@ int ieee80211_hw_config(struct ieee80211
+ local->hw.conf.power_level = min(chan->max_power,
+ local->hw.conf.power_level);
+
+- local->hw.conf.max_antenna_gain = chan->max_antenna_gain;
+-
+ #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
+ printk(KERN_DEBUG "%s: HW CONFIG: freq=%d\n",
+ wiphy_name(local->hw.wiphy), chan->center_freq);