Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2015 02:42:49 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285228 - head/sys/dev/wi
Message-ID:  <201507070242.t672gnj6065226@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Tue Jul  7 02:42:48 2015
New Revision: 285228
URL: https://svnweb.freebsd.org/changeset/base/285228

Log:
  Enable the wireless on attach.
  
  This comes from the archives of "forgotten in the original commit, and probably
  pointless now because nobody uses it, and the driver's broken anyway."

Modified:
  head/sys/dev/wi/if_wi_macio.c

Modified: head/sys/dev/wi/if_wi_macio.c
==============================================================================
--- head/sys/dev/wi/if_wi_macio.c	Tue Jul  7 02:37:29 2015	(r285227)
+++ head/sys/dev/wi/if_wi_macio.c	Tue Jul  7 02:42:48 2015	(r285228)
@@ -73,6 +73,8 @@ __FBSDID("$FreeBSD$");
 #include <dev/wi/if_wireg.h>
 #include <dev/wi/if_wivar.h>
 
+#include <powerpc/powermac/maciovar.h>
+
 static int wi_macio_probe(device_t);
 static int wi_macio_attach(device_t);
 
@@ -129,6 +131,7 @@ wi_macio_attach(device_t dev)
 
 	error = wi_alloc(dev, 0);
 	if (error == 0) {
+		macio_enable_wireless(device_get_parent(dev), 1);
 		/* Make sure interrupts are disabled. */
 		CSR_WRITE_2(sc, WI_INT_EN, 0);
 		CSR_WRITE_2(sc, WI_EVENT_ACK, 0xFFFF);



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