PERFORCE change 140964 for review
Andrew Thompson
thompsa at FreeBSD.org
Thu May 1 04:39:28 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=140964
Change 140964 by thompsa at thompsa_burger on 2008/05/01 04:39:08
Do not call ndis_setstate_80211() until we want to associate.
Affected files ...
.. //depot/projects/vap/sys/dev/if_ndis/if_ndis.c#17 edit
Differences ...
==== //depot/projects/vap/sys/dev/if_ndis/if_ndis.c#17 (text+ko) ====
@@ -1960,10 +1960,6 @@
/* Setup task offload. */
ndis_set_offload(sc);
-
- if (sc->ndis_80211)
- ndis_setstate_80211(sc);
-
NDIS_LOCK(sc);
sc->ndis_txidx = 0;
@@ -3171,17 +3167,19 @@
return;
}
- if (ss->ss_nssid != 0) {
+ len = sizeof(ssid);
+ bzero((char *)&ssid, len);
+ if (ss->ss_nssid == 0)
+ ssid.ns_ssidlen = 1;
+ else {
/* Perform a directed scan */
- len = sizeof(ssid);
- bzero((char *)&ssid, len);
ssid.ns_ssidlen = ss->ss_ssid[0].len;
bcopy(ss->ss_ssid[0].ssid, ssid.ns_ssid, ssid.ns_ssidlen);
+ }
- error = ndis_set_info(sc, OID_802_11_SSID, &ssid, &len);
- if (error)
- DPRINTF(("%s: set ESSID failed\n", __func__));
- }
+ error = ndis_set_info(sc, OID_802_11_SSID, &ssid, &len);
+ if (error)
+ DPRINTF(("%s: set ESSID failed\n", __func__));
len = 0;
error = ndis_set_info(sc, OID_802_11_BSSID_LIST_SCAN,
More information about the p4-projects
mailing list