svn commit: r301433 - head/sys/dev/bwn
Adrian Chadd
adrian at FreeBSD.org
Sun Jun 5 07:51:37 UTC 2016
Author: adrian
Date: Sun Jun 5 07:51:36 2016
New Revision: 301433
URL: https://svnweb.freebsd.org/changeset/base/301433
Log:
[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.
Modified:
head/sys/dev/bwn/if_bwn_phy_n.c
Modified: head/sys/dev/bwn/if_bwn_phy_n.c
==============================================================================
--- head/sys/dev/bwn/if_bwn_phy_n.c Sun Jun 5 07:45:55 2016 (r301432)
+++ head/sys/dev/bwn/if_bwn_phy_n.c Sun Jun 5 07:51:36 2016 (r301433)
@@ -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
}
More information about the svn-src-head
mailing list