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

Commit 969d15cf authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

b43: Fix radio host flags



This fixes initialization of some radio related hostflags.

Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2d071ca5
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -4170,10 +4170,12 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
			hf |= B43_HF_GDCW;
		if (sprom->boardflags_lo & B43_BFL_PACTRL)
			hf |= B43_HF_OFDMPABOOST;
	} else if (phy->type == B43_PHYTYPE_B) {
		hf |= B43_HF_SYMW;
		if (phy->rev >= 2 && phy->radio_ver == 0x2050)
			hf &= ~B43_HF_GDCW;
	}
	if (phy->radio_ver == 0x2050) {
		if (phy->radio_rev == 6)
			hf |= B43_HF_4318TSSI;
		if (phy->radio_rev < 6)
			hf |= B43_HF_VCORECALC;
	}
	b43_hf_write(dev, hf);