提交 6fe55143 编写于 作者: R Rafał Miłecki 提交者: John W. Linville

b43: N-PHY: optimize radio switching on/off

Broadcom's wl 6.30.223.141 has some optimizations for radios 0x205[67].
Signed-off-by: NRafał Miłecki <zajec5@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 90e569d1
...@@ -3742,7 +3742,9 @@ static int b43_switch_band(struct b43_wldev *dev, ...@@ -3742,7 +3742,9 @@ static int b43_switch_band(struct b43_wldev *dev,
b43dbg(dev->wl, "Switching to %s GHz band\n", b43dbg(dev->wl, "Switching to %s GHz band\n",
band_to_string(chan->band)); band_to_string(chan->band));
b43_software_rfkill(dev, true); /* Some new devices don't need disabling radio for band switching */
if (!(phy->type == B43_PHYTYPE_N && phy->rev >= 3))
b43_software_rfkill(dev, true);
phy->gmode = gmode; phy->gmode = gmode;
b43_phy_put_into_reset(dev); b43_phy_put_into_reset(dev);
......
...@@ -5707,10 +5707,12 @@ static void b43_nphy_op_software_rfkill(struct b43_wldev *dev, ...@@ -5707,10 +5707,12 @@ static void b43_nphy_op_software_rfkill(struct b43_wldev *dev,
} }
} else { } else {
if (dev->phy.rev >= 7) { if (dev->phy.rev >= 7) {
b43_radio_2057_init(dev); if (!dev->phy.radio_on)
b43_radio_2057_init(dev);
b43_switch_channel(dev, dev->phy.channel); b43_switch_channel(dev, dev->phy.channel);
} else if (dev->phy.rev >= 3) { } else if (dev->phy.rev >= 3) {
b43_radio_init2056(dev); if (!dev->phy.radio_on)
b43_radio_init2056(dev);
b43_switch_channel(dev, dev->phy.channel); b43_switch_channel(dev, dev->phy.channel);
} else { } else {
b43_radio_init2055(dev); b43_radio_init2055(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册