summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/wi/if_wi_macio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi_macio.c b/sys/dev/wi/if_wi_macio.c
index ab1d875..ad931b4 100644
--- a/sys/dev/wi/if_wi_macio.c
+++ b/sys/dev/wi/if_wi_macio.c
@@ -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);
OpenPOWER on IntegriCloud