[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:
parent
995a3bf49c
commit
59f341f8bc
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user