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."
This commit is contained in:
parent
44027a8321
commit
7f78865ba0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285228
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user