diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-21 19:53:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-22 16:11:34 -0500 |
commit | aa4c7b2a2547db95388f795f092ea286fbdd98a1 (patch) | |
tree | 8f028c6ac447a01d0faf853d7c9a00f5f039ba34 /drivers/net/wireless | |
parent | 4bb29f8c390fb7be207ec3f11b9d30ccdf1cb6ac (diff) |
b43: check band width
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_common.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index c699e46534dc..6d7cf3c2f7bf 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -3576,6 +3576,12 @@ static int b43_op_config(struct ieee80211_hw *hw, u32 changed) | |||
3576 | dev = wl->current_dev; | 3576 | dev = wl->current_dev; |
3577 | phy = &dev->phy; | 3577 | phy = &dev->phy; |
3578 | 3578 | ||
3579 | if (conf_is_ht(conf)) | ||
3580 | phy->is_40mhz = | ||
3581 | (conf_is_ht40_minus(conf) || conf_is_ht40_plus(conf)); | ||
3582 | else | ||
3583 | phy->is_40mhz = false; | ||
3584 | |||
3579 | b43_mac_suspend(dev); | 3585 | b43_mac_suspend(dev); |
3580 | 3586 | ||
3581 | if (changed & IEEE80211_CONF_CHANGE_RETRY_LIMITS) | 3587 | if (changed & IEEE80211_CONF_CHANGE_RETRY_LIMITS) |
diff --git a/drivers/net/wireless/b43/phy_common.h b/drivers/net/wireless/b43/phy_common.h index 9edd4e8e0c85..f635f9e4f83d 100644 --- a/drivers/net/wireless/b43/phy_common.h +++ b/drivers/net/wireless/b43/phy_common.h | |||
@@ -212,6 +212,9 @@ struct b43_phy { | |||
212 | bool supports_2ghz; | 212 | bool supports_2ghz; |
213 | bool supports_5ghz; | 213 | bool supports_5ghz; |
214 | 214 | ||
215 | /* HT info */ | ||
216 | bool is_40mhz; | ||
217 | |||
215 | /* GMODE bit enabled? */ | 218 | /* GMODE bit enabled? */ |
216 | bool gmode; | 219 | bool gmode; |
217 | 220 | ||
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index e77f1f24d101..2cdf32e5fd9b 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -1787,7 +1787,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev, | |||
1787 | 1787 | ||
1788 | b43_phy_write(dev, B43_NPHY_IQLOCAL_CMDGCTL, 0x8AA9); | 1788 | b43_phy_write(dev, B43_NPHY_IQLOCAL_CMDGCTL, 0x8AA9); |
1789 | 1789 | ||
1790 | if (1 /* FIXME: the band width is 20 MHz */) | 1790 | if (!dev->phy.is_40mhz) |
1791 | freq = 2500; | 1791 | freq = 2500; |
1792 | else | 1792 | else |
1793 | freq = 5000; | 1793 | freq = 5000; |