From def19aab78b51c609582f305bdc8883420c42325 Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Tue, 4 Nov 2003 23:47:19 +0000 Subject: Truly fix the lockup mentioned in 1.153. The PRISM hardware is not capable of functioning in HostAP mode with a zero-length SSID, so use " " if one is not set. --- sys/dev/wi/if_wi.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/dev/wi') diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index e4076ff5de1e..8313a89ddbe0 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -655,6 +655,15 @@ wi_init(void *arg) wi_write_val(sc, WI_RID_PORTTYPE, WI_PORTTYPE_ADHOC); break; case IEEE80211_M_HOSTAP: + /* + * For PRISM cards, override the empty SSID, because in + * HostAP mode the controller will lock up otherwise. + */ + if (sc->sc_firmware_type == WI_INTERSIL && + ic->ic_des_esslen == 0) { + ic->ic_des_essid[0] = ' '; + ic->ic_des_esslen = 1; + } wi_write_val(sc, WI_RID_PORTTYPE, WI_PORTTYPE_HOSTAP); break; case IEEE80211_M_MONITOR: -- cgit v1.3