aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bwn/if_bwn.c
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2016-05-14 23:44:30 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2016-05-14 23:44:30 +0000
commit7fb49b1e66835d133eedd073f73f3bdfda9b9b01 (patch)
tree5a2bdc07b1e7c11d02743404a856d5d7a396f938 /sys/dev/bwn/if_bwn.c
parentd54c38a3e905564e157f2522a6267cca26a776d0 (diff)
downloadsrc-7fb49b1e66835d133eedd073f73f3bdfda9b9b01.tar.gz
src-7fb49b1e66835d133eedd073f73f3bdfda9b9b01.zip
[bwn] make rf-kill work for PHY-N.
Notes
Notes: svn path=/head/; revision=299796
Diffstat (limited to 'sys/dev/bwn/if_bwn.c')
-rw-r--r--sys/dev/bwn/if_bwn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c
index 89dbd566a540..00376754b551 100644
--- a/sys/dev/bwn/if_bwn.c
+++ b/sys/dev/bwn/if_bwn.c
@@ -7090,7 +7090,8 @@ 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.rev >= 3 || mac->mac_phy.type == BWN_PHYTYPE_LP) {
+ if (mac->mac_phy.rev >= 3 || mac->mac_phy.type == BWN_PHYTYPE_LP
+ || mac->mac_phy.type == BWN_PHYTYPE_N) {
if (!(BWN_READ_4(mac, BWN_RF_HWENABLED_HI)
& BWN_RF_HWENABLED_HI_MASK))
cur = 1;
@@ -7103,6 +7104,9 @@ bwn_rfswitch(void *arg)
if (mac->mac_flags & BWN_MAC_FLAG_RADIO_ON)
prev = 1;
+ DPRINTF(sc, BWN_DEBUG_RESET, "%s: called; cur=%d, prev=%d\n",
+ __func__, cur, prev);
+
if (cur != prev) {
if (cur)
mac->mac_flags |= BWN_MAC_FLAG_RADIO_ON;