aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2016-06-05 07:51:36 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2016-06-05 07:51:36 +0000
commit59f341f8bcbb590f412f5201bc85e7d0de12d691 (patch)
treeca791202957583fff6c7090f461b0d645461ce32 /sys
parent995a3bf49c1a868b2c33f4eecb1847ee3ab286da (diff)
downloadsrc-59f341f8bcbb590f412f5201bc85e7d0de12d691.tar.gz
src-59f341f8bcbb590f412f5201bc85e7d0de12d691.zip
[bwn] complain usefully if a PHY-N PHY is detected with no support is compiled in.
Log something other than "error 6" if the attach fails because the GPL PHY-N code isn't included.
Notes
Notes: svn path=/head/; revision=301433
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/bwn/if_bwn_phy_n.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/bwn/if_bwn_phy_n.c b/sys/dev/bwn/if_bwn_phy_n.c
index 090d8ad76646..1ecdcb7e8738 100644
--- a/sys/dev/bwn/if_bwn_phy_n.c
+++ b/sys/dev/bwn/if_bwn_phy_n.c
@@ -101,6 +101,9 @@ bwn_phy_n_attach(struct bwn_mac *mac)
#ifdef BWN_GPL_PHY
return bwn_nphy_op_allocate(mac);
#else
+ device_printf(mac->mac_sc->sc_dev,
+ "%s: BWN_GPL_PHY not in kernel config; "
+ "no PHY-N support\n", __func__);
return (ENXIO);
#endif
}