summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 94ffbb024353..f9f0b8fb6a68 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];
}
/*