catch failure to fetch the card's "own channel"; this should not happen

This commit is contained in:
Sam Leffler 2003-06-29 20:14:35 +00:00
parent 58f40303c4
commit 91f243876f

View File

@ -347,6 +347,10 @@ wi_attach(device_t dev)
ic->ic_channels[val].ic_flags != 0,
("wi_attach: invalid own channel %u!", val));
ic->ic_ibss_chan = &ic->ic_channels[val];
} else {
device_printf(dev,
"WI_RID_OWN_CHNL failed, using first channel!\n");
ic->ic_ibss_chan = &ic->ic_channels[0];
}
/*