Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fe55143 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville
Browse files

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: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 90e569d1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3742,6 +3742,8 @@ static int b43_switch_band(struct b43_wldev *dev,
	b43dbg(dev->wl, "Switching to %s GHz band\n",
	       band_to_string(chan->band));

	/* 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;
+4 −2
Original line number Diff line number Diff line
@@ -5707,9 +5707,11 @@ static void b43_nphy_op_software_rfkill(struct b43_wldev *dev,
		}
	} else {
		if (dev->phy.rev >= 7) {
			if (!dev->phy.radio_on)
				b43_radio_2057_init(dev);
			b43_switch_channel(dev, dev->phy.channel);
		} else if (dev->phy.rev >= 3) {
			if (!dev->phy.radio_on)
				b43_radio_init2056(dev);
			b43_switch_channel(dev, dev->phy.channel);
		} else {