Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jun 2016 07:51:36 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301433 - head/sys/dev/bwn
Message-ID:  <201606050751.u557paHq078739@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606050751.u557paHq078739>