diff options
author | Gábor Stefanik <netrolller.3d@gmail.com> | 2009-08-14 08:54:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:35:54 -0400 |
commit | 9d86a2d531c722feb0046e5a0b81809efb10422a (patch) | |
tree | 5b5c1516e0260843bb4c51158d56174414dc6fd8 /drivers/net/wireless/b43/main.c | |
parent | 759b973bb2d24adecaa526957435eabb00f02725 (diff) |
b43: Make LP-PHY testable
-Enable rate memory init for LP-PHY (same as G and N-PHY).
-Mark rev.2 LP-PHYs with the B2063 radio as supported.
-Allow using the 5GHz band on LP-PHYs.
Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 2a75bebd3292..99b41ce6848b 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -2589,6 +2589,7 @@ static void b43_rate_memory_init(struct b43_wldev *dev) | |||
2589 | case B43_PHYTYPE_A: | 2589 | case B43_PHYTYPE_A: |
2590 | case B43_PHYTYPE_G: | 2590 | case B43_PHYTYPE_G: |
2591 | case B43_PHYTYPE_N: | 2591 | case B43_PHYTYPE_N: |
2592 | case B43_PHYTYPE_LP: | ||
2592 | b43_rate_memory_write(dev, B43_OFDM_RATE_6MB, 1); | 2593 | b43_rate_memory_write(dev, B43_OFDM_RATE_6MB, 1); |
2593 | b43_rate_memory_write(dev, B43_OFDM_RATE_12MB, 1); | 2594 | b43_rate_memory_write(dev, B43_OFDM_RATE_12MB, 1); |
2594 | b43_rate_memory_write(dev, B43_OFDM_RATE_18MB, 1); | 2595 | b43_rate_memory_write(dev, B43_OFDM_RATE_18MB, 1); |
@@ -3817,7 +3818,7 @@ static int b43_phy_versioning(struct b43_wldev *dev) | |||
3817 | #endif | 3818 | #endif |
3818 | #ifdef CONFIG_B43_PHY_LP | 3819 | #ifdef CONFIG_B43_PHY_LP |
3819 | case B43_PHYTYPE_LP: | 3820 | case B43_PHYTYPE_LP: |
3820 | if (phy_rev > 1) | 3821 | if (phy_rev > 2) |
3821 | unsupported = 1; | 3822 | unsupported = 1; |
3822 | break; | 3823 | break; |
3823 | #endif | 3824 | #endif |
@@ -3874,7 +3875,7 @@ static int b43_phy_versioning(struct b43_wldev *dev) | |||
3874 | unsupported = 1; | 3875 | unsupported = 1; |
3875 | break; | 3876 | break; |
3876 | case B43_PHYTYPE_LP: | 3877 | case B43_PHYTYPE_LP: |
3877 | if (radio_ver != 0x2062) | 3878 | if (radio_ver != 0x2062 && radio_ver != 0x2063) |
3878 | unsupported = 1; | 3879 | unsupported = 1; |
3879 | break; | 3880 | break; |
3880 | default: | 3881 | default: |
@@ -4512,9 +4513,10 @@ static int b43_wireless_core_attach(struct b43_wldev *dev) | |||
4512 | case B43_PHYTYPE_A: | 4513 | case B43_PHYTYPE_A: |
4513 | have_5ghz_phy = 1; | 4514 | have_5ghz_phy = 1; |
4514 | break; | 4515 | break; |
4516 | case B43_PHYTYPE_LP: //FIXME not always! | ||
4517 | have_5ghz_phy = 1; | ||
4515 | case B43_PHYTYPE_G: | 4518 | case B43_PHYTYPE_G: |
4516 | case B43_PHYTYPE_N: | 4519 | case B43_PHYTYPE_N: |
4517 | case B43_PHYTYPE_LP: | ||
4518 | have_2ghz_phy = 1; | 4520 | have_2ghz_phy = 1; |
4519 | break; | 4521 | break; |
4520 | default: | 4522 | default: |
@@ -4529,7 +4531,8 @@ static int b43_wireless_core_attach(struct b43_wldev *dev) | |||
4529 | } | 4531 | } |
4530 | if (1 /* disable A-PHY */) { | 4532 | if (1 /* disable A-PHY */) { |
4531 | /* FIXME: For now we disable the A-PHY on multi-PHY devices. */ | 4533 | /* FIXME: For now we disable the A-PHY on multi-PHY devices. */ |
4532 | if (dev->phy.type != B43_PHYTYPE_N) { | 4534 | if (dev->phy.type != B43_PHYTYPE_N && |
4535 | dev->phy.type != B43_PHYTYPE_LP) { | ||
4533 | have_2ghz_phy = 1; | 4536 | have_2ghz_phy = 1; |
4534 | have_5ghz_phy = 0; | 4537 | have_5ghz_phy = 0; |
4535 | } | 4538 | } |