From 202e28d1f65e9f35df6032400df3242a3bafb483 Mon Sep 17 00:00:00 2001 From: Imre Vadasz Date: Sat, 3 May 2014 20:53:26 +0200 Subject: [PATCH] kernel/bwn: Fix a typo. This fixes RF switch state polling. Fixes the RF switch state polling by comparing with the revision of the PHY instead of the revision of the RADIO. --- sys/dev/netif/bwn/bwn/if_bwn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/netif/bwn/bwn/if_bwn.c b/sys/dev/netif/bwn/bwn/if_bwn.c index bbd03cb07a..2a535fcdaa 100644 --- a/sys/dev/netif/bwn/bwn/if_bwn.c +++ b/sys/dev/netif/bwn/bwn/if_bwn.c @@ -10717,7 +10717,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; -- 2.41.0