summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-06-29 20:14:35 +0000
committersam <sam@FreeBSD.org>2003-06-29 20:14:35 +0000
commit42e5a1fbcb65a490498a56a7b7d1afb07c36e0be (patch)
tree51d87d8774b1badc699f4bdbb51804f80d395450 /sys/dev/wi
parentc0ad98bb7c5c5cb8129f69f62b57d9b1b76d5314 (diff)
downloadFreeBSD-src-42e5a1fbcb65a490498a56a7b7d1afb07c36e0be.zip
FreeBSD-src-42e5a1fbcb65a490498a56a7b7d1afb07c36e0be.tar.gz
catch failure to fetch the card's "own channel"; this should not happen
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 94ffbb0..f9f0b8f 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -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];
}
/*
OpenPOWER on IntegriCloud