1 Subject: mac80211: remove max_antenna_gain config
3 The antenna gain isn't exactly configurable, despite the belief of
4 some unnamed individual who thinks that the EEPROM might influence
7 Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
9 include/net/mac80211.h | 2 --
10 net/mac80211/main.c | 2 --
11 2 files changed, 4 deletions(-)
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,
22 * @antenna_sel_rx: receive antenna selection, like @antenna_sel_tx
23 @@ -485,7 +484,6 @@ struct ieee80211_conf {
27 - int max_antenna_gain;
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);
37 - local->hw.conf.max_antenna_gain = chan->max_antenna_gain;
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);