From ded5af888d3e0a0ca9c34dd648f7feadcd543b68 Mon Sep 17 00:00:00 2001 From: "Landon J. Fuller" Date: Tue, 13 Feb 2018 17:43:54 +0000 Subject: [PATCH] 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 --- sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c | 3 +++ 1 file changed, 3 insertions(+) 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 c7ecb9747e7..f93b7af2687 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 { \