Author: landonf
Date: Tue Feb 13 17:43:54 2018
New Revision: 329228
URL: https://svnweb.freebsd.org/changeset/base/329228

Log:
  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

Modified:
  head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c

Modified: head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c
==============================================================================
--- head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c      Tue Feb 13 17:42:16 
2018        (r329227)
+++ head/sys/gnu/dev/bwn/phy_n/if_bwn_phy_n_core.c      Tue Feb 13 17:43:54 
2018        (r329228)
@@ -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 {                                                                   \
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to