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
 }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to