Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2015 05:13:40 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285436 - head/sys/dev/bwn
Message-ID:  <201507130513.t6D5De8C077096@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Jul 13 05:13:39 2015
New Revision: 285436
URL: https://svnweb.freebsd.org/changeset/base/285436

Log:
  Fixes the RF switch state polling by comparing with the revision of the
  PHY instead of the revision of the RADIO.
  
  This fixes the RF switch state polling.
  
  This is from DragonflyBSD, Commit 202e28d1f65e9f35df6032400df3242a3bafb483
  
  Obtained from:	DragonflyBSD

Modified:
  head/sys/dev/bwn/if_bwn.c

Modified: head/sys/dev/bwn/if_bwn.c
==============================================================================
--- head/sys/dev/bwn/if_bwn.c	Sun Jul 12 23:32:23 2015	(r285435)
+++ head/sys/dev/bwn/if_bwn.c	Mon Jul 13 05:13:39 2015	(r285436)
@@ -10805,7 +10805,7 @@ bwn_rfswitch(void *arg)
 	KASSERT(mac->mac_status >= BWN_MAC_STATUS_STARTED,
 	    ("%s: invalid MAC status %d", __func__, mac->mac_status));
 
-	if (mac->mac_phy.rf_rev >= 3 || mac->mac_phy.type == BWN_PHYTYPE_LP) {
+	if (mac->mac_phy.rev >= 3 || mac->mac_phy.type == BWN_PHYTYPE_LP) {
 		if (!(BWN_READ_4(mac, BWN_RF_HWENABLED_HI)
 			& BWN_RF_HWENABLED_HI_MASK))
 			cur = 1;



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