bwn(4): txpid2g/txpid5g[lh] are not defined after sromrev 7; the default

indices into the TX power gain table should be used instead.

This enables use of bwn(4) with later BCM4321 revisions.

Reported by:	Trev Roydhouse
This commit is contained in:
Landon J. Fuller 2018-02-13 17:43:54 +00:00
parent b11df8a4a3
commit ded5af888d

View File

@ -3906,6 +3906,9 @@ static int bwn_nphy_tx_power_fix(struct bwn_mac *mac)
} else if (sc->sc_board_info.board_srom_rev < 4) {
txpi[0] = 72;
txpi[1] = 72;
} else if (sc->sc_board_info.board_srom_rev > 7) {
txpi[0] = 0;
txpi[1] = 0;
} else {
#define BWN_NPHY_GET_TXPI(_name, _result) \
do { \