mac80211: add rate control rewrite and enhance the performance of the minstrel algori...
[openwrt.git] / package / mac80211 / patches / 413-mac80211-remove-antgain-cfg.patch
1 Subject: mac80211: remove max_antenna_gain config
2
3 The antenna gain isn't exactly configurable, despite the belief of
4 some unnamed individual who thinks that the EEPROM might influence
5 it.
6
7 Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
8 ---
9 include/net/mac80211.h | 2 --
10 net/mac80211/main.c | 2 --
11 2 files changed, 4 deletions(-)
12
13 --- everything.orig/include/net/mac80211.h 2008-10-07 20:06:42.000000000 +0200
14 +++ everything/include/net/mac80211.h 2008-10-07 20:06:43.000000000 +0200
15 @@ -470,7 +470,6 @@ enum ieee80211_conf_flags {
16 * @listen_interval: listen interval in units of beacon interval
17 * @flags: configuration flags defined above
18 * @power_level: requested transmit power (in dBm)
19 - * @max_antenna_gain: maximum antenna gain (in dBi)
20 * @antenna_sel_tx: transmit antenna selection, 0: default/diversity,
21 * 1/2: antenna 0/1
22 * @antenna_sel_rx: receive antenna selection, like @antenna_sel_tx
23 @@ -485,7 +484,6 @@ struct ieee80211_conf {
24 u16 listen_interval;
25 u32 flags;
26 int power_level;
27 - int max_antenna_gain;
28 u8 antenna_sel_tx;
29 u8 antenna_sel_rx;
30
31 --- everything.orig/net/mac80211/main.c 2008-10-07 20:06:43.000000000 +0200
32 +++ everything/net/mac80211/main.c 2008-10-07 20:06:43.000000000 +0200
33 @@ -215,8 +215,6 @@ int ieee80211_hw_config(struct ieee80211
34 local->hw.conf.power_level = min(chan->max_power,
35 local->hw.conf.power_level);
36
37 - local->hw.conf.max_antenna_gain = chan->max_antenna_gain;
38 -
39 #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
40 printk(KERN_DEBUG "%s: HW CONFIG: freq=%d\n",
41 wiphy_name(local->hw.wiphy), chan->center_freq);
This page took 0.050735 seconds and 5 git commands to generate.