diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-09 06:18:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:06 -0400 |
commit | 0f4ac38b5999c3d51adad52d61c56c1b99c247ec (patch) | |
tree | 0376bd4904597495ce788883d371d794e8c85f69 /drivers/net/wireless/b43legacy | |
parent | d9fe60dea7779d412b34679f1177c5ca1940ea8d (diff) |
mac80211: kill hw.conf.antenna_sel_{rx,tx}
Never actually used.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy')
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index c66d57560e7c..867f01ce45c7 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -2556,20 +2556,6 @@ init_failure: | |||
2556 | return err; | 2556 | return err; |
2557 | } | 2557 | } |
2558 | 2558 | ||
2559 | static int b43legacy_antenna_from_ieee80211(u8 antenna) | ||
2560 | { | ||
2561 | switch (antenna) { | ||
2562 | case 0: /* default/diversity */ | ||
2563 | return B43legacy_ANTENNA_DEFAULT; | ||
2564 | case 1: /* Antenna 0 */ | ||
2565 | return B43legacy_ANTENNA0; | ||
2566 | case 2: /* Antenna 1 */ | ||
2567 | return B43legacy_ANTENNA1; | ||
2568 | default: | ||
2569 | return B43legacy_ANTENNA_DEFAULT; | ||
2570 | } | ||
2571 | } | ||
2572 | |||
2573 | static int b43legacy_op_dev_config(struct ieee80211_hw *hw, | 2559 | static int b43legacy_op_dev_config(struct ieee80211_hw *hw, |
2574 | struct ieee80211_conf *conf) | 2560 | struct ieee80211_conf *conf) |
2575 | { | 2561 | { |
@@ -2583,8 +2569,8 @@ static int b43legacy_op_dev_config(struct ieee80211_hw *hw, | |||
2583 | int err = 0; | 2569 | int err = 0; |
2584 | u32 savedirqs; | 2570 | u32 savedirqs; |
2585 | 2571 | ||
2586 | antenna_tx = b43legacy_antenna_from_ieee80211(conf->antenna_sel_tx); | 2572 | antenna_tx = B43legacy_ANTENNA_DEFAULT; |
2587 | antenna_rx = b43legacy_antenna_from_ieee80211(conf->antenna_sel_rx); | 2573 | antenna_rx = B43legacy_ANTENNA_DEFAULT; |
2588 | 2574 | ||
2589 | mutex_lock(&wl->mutex); | 2575 | mutex_lock(&wl->mutex); |
2590 | dev = wl->current_dev; | 2576 | dev = wl->current_dev; |