diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-11-18 15:11:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-24 16:19:34 -0500 |
commit | 0b81c23d2e3a8589514fa69b2f153f006a4ad773 (patch) | |
tree | f00dc1b4c8ca8f690199df94c6d7a23639c361c5 /drivers | |
parent | a529cecd29ecf1e5416316ae06ce515bf67b5d5a (diff) |
b43: N-PHY: little cleanups
Remove some typos, warnings, initialize some values to follow wl's code path.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index dc4045de61f2..9769483156e7 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -573,7 +573,6 @@ static void b43_nphy_calc_rx_iq_comp(struct b43_wldev *dev, u8 mask) | |||
573 | ii = est.i1_pwr; | 573 | ii = est.i1_pwr; |
574 | qq = est.q1_pwr; | 574 | qq = est.q1_pwr; |
575 | } else { | 575 | } else { |
576 | B43_WARN_ON(1); | ||
577 | continue; | 576 | continue; |
578 | } | 577 | } |
579 | 578 | ||
@@ -2029,7 +2028,7 @@ static void b43_nphy_rev2_rssi_cal(struct b43_wldev *dev, u8 type) | |||
2029 | } | 2028 | } |
2030 | 2029 | ||
2031 | b43_radio_maskset(dev, B2055_C1_PD_RSSIMISC, 0xF8, state[0]); | 2030 | b43_radio_maskset(dev, B2055_C1_PD_RSSIMISC, 0xF8, state[0]); |
2032 | b43_radio_maskset(dev, B2055_C1_PD_RSSIMISC, 0xF8, state[1]); | 2031 | b43_radio_maskset(dev, B2055_C2_PD_RSSIMISC, 0xF8, state[1]); |
2033 | 2032 | ||
2034 | switch (state[2]) { | 2033 | switch (state[2]) { |
2035 | case 1: | 2034 | case 1: |
@@ -3113,7 +3112,7 @@ static void b43_nphy_set_rx_core_state(struct b43_wldev *dev, u8 mask) | |||
3113 | { | 3112 | { |
3114 | struct b43_phy *phy = &dev->phy; | 3113 | struct b43_phy *phy = &dev->phy; |
3115 | struct b43_phy_n *nphy = phy->n; | 3114 | struct b43_phy_n *nphy = phy->n; |
3116 | u16 buf[16]; | 3115 | /* u16 buf[16]; it's rev3+ */ |
3117 | 3116 | ||
3118 | nphy->phyrxchain = mask; | 3117 | nphy->phyrxchain = mask; |
3119 | 3118 | ||
@@ -3409,7 +3408,6 @@ static int b43_nphy_set_channel(struct b43_wldev *dev, | |||
3409 | enum nl80211_channel_type channel_type) | 3408 | enum nl80211_channel_type channel_type) |
3410 | { | 3409 | { |
3411 | struct b43_phy *phy = &dev->phy; | 3410 | struct b43_phy *phy = &dev->phy; |
3412 | struct b43_phy_n *nphy = dev->phy.n; | ||
3413 | 3411 | ||
3414 | const struct b43_nphy_channeltab_entry_rev2 *tabent_r2; | 3412 | const struct b43_nphy_channeltab_entry_rev2 *tabent_r2; |
3415 | const struct b43_nphy_channeltab_entry_rev3 *tabent_r3; | 3413 | const struct b43_nphy_channeltab_entry_rev3 *tabent_r3; |
@@ -3479,8 +3477,9 @@ static void b43_nphy_op_prepare_structs(struct b43_wldev *dev) | |||
3479 | 3477 | ||
3480 | memset(nphy, 0, sizeof(*nphy)); | 3478 | memset(nphy, 0, sizeof(*nphy)); |
3481 | 3479 | ||
3482 | /* wl goes path which is executed for gain_boost, assume it is true */ | 3480 | nphy->gain_boost = true; /* this way we follow wl, assume it is true */ |
3483 | nphy->gain_boost = true; | 3481 | nphy->txrx_chain = 2; /* sth different than 0 and 1 for now */ |
3482 | nphy->phyrxchain = 3; /* to avoid b43_nphy_set_rx_core_state like wl */ | ||
3484 | } | 3483 | } |
3485 | 3484 | ||
3486 | static void b43_nphy_op_free(struct b43_wldev *dev) | 3485 | static void b43_nphy_op_free(struct b43_wldev *dev) |
@@ -3553,8 +3552,6 @@ static void b43_nphy_op_radio_write(struct b43_wldev *dev, u16 reg, u16 value) | |||
3553 | static void b43_nphy_op_software_rfkill(struct b43_wldev *dev, | 3552 | static void b43_nphy_op_software_rfkill(struct b43_wldev *dev, |
3554 | bool blocked) | 3553 | bool blocked) |
3555 | { | 3554 | { |
3556 | struct b43_phy_n *nphy = dev->phy.n; | ||
3557 | |||
3558 | if (b43_read32(dev, B43_MMIO_MACCTL) & B43_MACCTL_ENABLED) | 3555 | if (b43_read32(dev, B43_MMIO_MACCTL) & B43_MACCTL_ENABLED) |
3559 | b43err(dev->wl, "MAC not suspended\n"); | 3556 | b43err(dev->wl, "MAC not suspended\n"); |
3560 | 3557 | ||