mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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.
This commit is contained in:
parent
5eebbfd653
commit
def19aab78
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122087
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user