diff options
author | Landon J. Fuller <landonf@FreeBSD.org> | 2018-02-13 17:43:54 +0000 |
---|---|---|
committer | Landon J. Fuller <landonf@FreeBSD.org> | 2018-02-13 17:43:54 +0000 |
commit | ded5af888d3e0a0ca9c34dd648f7feadcd543b68 (patch) | |
tree | c1be3063c6cd347648a27f6049679a64feab10d5 /sys/gnu | |
parent | b11df8a4a384eee806ce3e8b671e4fc8f9652ec4 (diff) |
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
Notes
Notes:
svn path=/head/; revision=329228
Diffstat (limited to 'sys/gnu')
-rw-r--r-- | sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c b/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c index c7ecb9747e7a..f93b7af26877 100644 --- a/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c +++ b/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c @@ -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 { \ |