From 59f341f8bcbb590f412f5201bc85e7d0de12d691 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sun, 5 Jun 2016 07:51:36 +0000 Subject: [PATCH] [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. --- sys/dev/bwn/if_bwn_phy_n.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/bwn/if_bwn_phy_n.c b/sys/dev/bwn/if_bwn_phy_n.c index 090d8ad7664..1ecdcb7e873 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 }