aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2018-02-13 17:43:54 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2018-02-13 17:43:54 +0000
commitded5af888d3e0a0ca9c34dd648f7feadcd543b68 (patch)
treec1be3063c6cd347648a27f6049679a64feab10d5 /sys/gnu
parentb11df8a4a384eee806ce3e8b671e4fc8f9652ec4 (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.c3
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 { \