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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to