diff options
Diffstat (limited to 'drivers/net/wireless/b43/phy_n.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index dc1249381275..6398c7e45ab7 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -4504,7 +4504,8 @@ static void b43_nphy_save_cal(struct b43_wldev *dev) | |||
4504 | txcal_radio_regs[3] = b43_radio_read(dev, 0xBC); | 4504 | txcal_radio_regs[3] = b43_radio_read(dev, 0xBC); |
4505 | } | 4505 | } |
4506 | iqcal_chanspec->center_freq = dev->phy.chandef->chan->center_freq; | 4506 | iqcal_chanspec->center_freq = dev->phy.chandef->chan->center_freq; |
4507 | iqcal_chanspec->channel_type = dev->phy.channel_type; | 4507 | iqcal_chanspec->channel_type = |
4508 | cfg80211_get_chandef_type(dev->phy.chandef); | ||
4508 | b43_ntab_read_bulk(dev, B43_NTAB16(15, 80), 8, table); | 4509 | b43_ntab_read_bulk(dev, B43_NTAB16(15, 80), 8, table); |
4509 | 4510 | ||
4510 | if (nphy->hang_avoid) | 4511 | if (nphy->hang_avoid) |
@@ -4779,7 +4780,7 @@ static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev, | |||
4779 | nphy->txiqlocal_chanspec.center_freq = | 4780 | nphy->txiqlocal_chanspec.center_freq = |
4780 | phy->chandef->chan->center_freq; | 4781 | phy->chandef->chan->center_freq; |
4781 | nphy->txiqlocal_chanspec.channel_type = | 4782 | nphy->txiqlocal_chanspec.channel_type = |
4782 | dev->phy.channel_type; | 4783 | cfg80211_get_chandef_type(phy->chandef); |
4783 | } else { | 4784 | } else { |
4784 | length = 11; | 4785 | length = 11; |
4785 | if (dev->phy.rev < 3) | 4786 | if (dev->phy.rev < 3) |
@@ -4816,7 +4817,7 @@ static void b43_nphy_reapply_tx_cal_coeffs(struct b43_wldev *dev) | |||
4816 | 4817 | ||
4817 | if (!nphy->txiqlocal_coeffsvalid || | 4818 | if (!nphy->txiqlocal_coeffsvalid || |
4818 | nphy->txiqlocal_chanspec.center_freq != dev->phy.chandef->chan->center_freq || | 4819 | nphy->txiqlocal_chanspec.center_freq != dev->phy.chandef->chan->center_freq || |
4819 | nphy->txiqlocal_chanspec.channel_type != dev->phy.channel_type) | 4820 | nphy->txiqlocal_chanspec.channel_type != cfg80211_get_chandef_type(dev->phy.chandef)) |
4820 | return; | 4821 | return; |
4821 | 4822 | ||
4822 | b43_ntab_read_bulk(dev, B43_NTAB16(15, 80), 7, buffer); | 4823 | b43_ntab_read_bulk(dev, B43_NTAB16(15, 80), 7, buffer); |
@@ -5441,7 +5442,7 @@ static void b43_nphy_channel_setup(struct b43_wldev *dev, | |||
5441 | bool avoid = false; | 5442 | bool avoid = false; |
5442 | if (dev->phy.n->spur_avoid == B43_SPUR_AVOID_FORCE) { | 5443 | if (dev->phy.n->spur_avoid == B43_SPUR_AVOID_FORCE) { |
5443 | avoid = true; | 5444 | avoid = true; |
5444 | } else if (!b43_channel_type_is_40mhz(phy->channel_type)) { | 5445 | } else if (!b43_is_40mhz(dev)) { |
5445 | if ((ch >= 5 && ch <= 8) || ch == 13 || ch == 14) | 5446 | if ((ch >= 5 && ch <= 8) || ch == 13 || ch == 14) |
5446 | avoid = true; | 5447 | avoid = true; |
5447 | } else { /* 40MHz */ | 5448 | } else { /* 40MHz */ |
@@ -5507,9 +5508,11 @@ static int b43_nphy_set_channel(struct b43_wldev *dev, | |||
5507 | own to let this function's subcalls work properly. */ | 5508 | own to let this function's subcalls work properly. */ |
5508 | phy->channel = channel->hw_value; | 5509 | phy->channel = channel->hw_value; |
5509 | 5510 | ||
5511 | #if 0 | ||
5510 | if (b43_channel_type_is_40mhz(phy->channel_type) != | 5512 | if (b43_channel_type_is_40mhz(phy->channel_type) != |
5511 | b43_channel_type_is_40mhz(channel_type)) | 5513 | b43_channel_type_is_40mhz(channel_type)) |
5512 | ; /* TODO: BMAC BW Set (channel_type) */ | 5514 | ; /* TODO: BMAC BW Set (channel_type) */ |
5515 | #endif | ||
5513 | 5516 | ||
5514 | if (channel_type == NL80211_CHAN_HT40PLUS) | 5517 | if (channel_type == NL80211_CHAN_HT40PLUS) |
5515 | b43_phy_set(dev, B43_NPHY_RXCTL, | 5518 | b43_phy_set(dev, B43_NPHY_RXCTL, |