1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

[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.
This commit is contained in:
Adrian Chadd 2016-06-05 07:51:36 +00:00
parent 995a3bf49c
commit 59f341f8bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301433

View File

@ -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
}