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
This commit is contained in:
parent
8c377b430c
commit
d3f9e6a743
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285436
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user