Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2018 17:43:54 +0000 (UTC)
From:      "Landon J. Fuller" <landonf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329228 - head/sys/gnu/dev/bwn/phy_n
Message-ID:  <201802131743.w1DHhs3d002137@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 {									\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802131743.w1DHhs3d002137>