Rename "broadcast SSID" to "wildcard SSID"
"Wildcard SSID" is the term used in IEEE Std 802.11-2007, so it is a better name for the zero-length SSID used in Probe Request.
This commit is contained in:
parent
6a1063e008
commit
ba2a573c5f
5 changed files with 18 additions and 18 deletions
|
@ -156,7 +156,7 @@ struct wpa_driver_scan_params {
|
|||
/**
|
||||
* ssid - specific SSID to scan for (ProbeReq)
|
||||
* %NULL or zero-length SSID is used to indicate active scan
|
||||
* with broadcast SSID.
|
||||
* with wildcard SSID.
|
||||
*/
|
||||
const u8 *ssid;
|
||||
/**
|
||||
|
@ -601,8 +601,8 @@ struct wpa_driver_ops {
|
|||
* scan - Request the driver to initiate scan (old version)
|
||||
* @priv: private driver interface data
|
||||
* @ssid: specific SSID to scan for (ProbeReq) or %NULL to scan for
|
||||
* all SSIDs (either active scan with broadcast SSID or passive
|
||||
* scan
|
||||
* all SSIDs (either active scan with wildcard SSID or passive
|
||||
* scan)
|
||||
* @ssid_len: length of the SSID
|
||||
*
|
||||
* Returns: 0 on success, -1 on failure
|
||||
|
|
|
@ -1076,8 +1076,8 @@ void wpa_driver_wext_scan_timeout(void *eloop_ctx, void *timeout_ctx)
|
|||
* wpa_driver_wext_scan - Request the driver to initiate scan
|
||||
* @priv: Pointer to private wext data from wpa_driver_wext_init()
|
||||
* @ssid: Specific SSID to scan for (ProbeReq) or %NULL to scan for
|
||||
* all SSIDs (either active scan with broadcast SSID or passive
|
||||
* scan
|
||||
* all SSIDs (either active scan with wildcard SSID or passive
|
||||
* scan)
|
||||
* @ssid_len: Length of the SSID
|
||||
* Returns: 0 on success, -1 on failure
|
||||
*/
|
||||
|
|
|
@ -91,7 +91,7 @@ static void wpa_supplicant_assoc_try(struct wpa_supplicant *wpa_s,
|
|||
if (ssid == NULL) {
|
||||
wpa_printf(MSG_DEBUG, "wpa_supplicant_scan: Reached "
|
||||
"end of scan list - go back to beginning");
|
||||
wpa_s->prev_scan_ssid = BROADCAST_SSID_SCAN;
|
||||
wpa_s->prev_scan_ssid = WILDCARD_SSID_SCAN;
|
||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||
return;
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ static void wpa_supplicant_assoc_try(struct wpa_supplicant *wpa_s,
|
|||
wpa_s->prev_scan_ssid = ssid;
|
||||
} else {
|
||||
/* Start from the beginning of the SSID list. */
|
||||
wpa_s->prev_scan_ssid = BROADCAST_SSID_SCAN;
|
||||
wpa_s->prev_scan_ssid = WILDCARD_SSID_SCAN;
|
||||
}
|
||||
wpa_supplicant_associate(wpa_s, NULL, ssid);
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
|||
|
||||
/* Find the starting point from which to continue scanning */
|
||||
ssid = wpa_s->conf->ssid;
|
||||
if (wpa_s->prev_scan_ssid != BROADCAST_SSID_SCAN) {
|
||||
if (wpa_s->prev_scan_ssid != WILDCARD_SSID_SCAN) {
|
||||
while (ssid) {
|
||||
if (ssid == wpa_s->prev_scan_ssid) {
|
||||
ssid = ssid->next;
|
||||
|
@ -189,8 +189,8 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
|||
return;
|
||||
} else if (wpa_s->conf->ap_scan == 2) {
|
||||
/*
|
||||
* User-initiated scan request in ap_scan == 2; use broadcast
|
||||
* scan.
|
||||
* User-initiated scan request in ap_scan == 2; scan with
|
||||
* wildcard SSID.
|
||||
*/
|
||||
ssid = NULL;
|
||||
} else {
|
||||
|
@ -221,15 +221,15 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
|||
if (ssid) {
|
||||
wpa_s->prev_scan_ssid = ssid;
|
||||
if (max_ssids > 1) {
|
||||
wpa_printf(MSG_DEBUG, "Include broadcast SSID in the "
|
||||
wpa_printf(MSG_DEBUG, "Include wildcard SSID in the "
|
||||
"scan request");
|
||||
params.num_ssids++; /* Broadcast scan */
|
||||
params.num_ssids++;
|
||||
}
|
||||
wpa_printf(MSG_DEBUG, "Starting AP scan for specific SSID(s)");
|
||||
} else {
|
||||
wpa_s->prev_scan_ssid = BROADCAST_SSID_SCAN;
|
||||
wpa_s->prev_scan_ssid = WILDCARD_SSID_SCAN;
|
||||
params.num_ssids++;
|
||||
wpa_printf(MSG_DEBUG, "Starting AP scan for broadcast SSID");
|
||||
wpa_printf(MSG_DEBUG, "Starting AP scan for wildcard SSID");
|
||||
}
|
||||
|
||||
#ifdef CONFIG_WPS
|
||||
|
|
|
@ -1688,7 +1688,7 @@ int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s)
|
|||
wpa_printf(MSG_DEBUG, "RSN: flushing PMKID list in the driver");
|
||||
wpa_drv_flush_pmkid(wpa_s);
|
||||
|
||||
wpa_s->prev_scan_ssid = BROADCAST_SSID_SCAN;
|
||||
wpa_s->prev_scan_ssid = WILDCARD_SSID_SCAN;
|
||||
wpa_supplicant_req_scan(wpa_s, interface_count, 100000);
|
||||
interface_count++;
|
||||
|
||||
|
|
|
@ -309,11 +309,11 @@ struct wpa_supplicant {
|
|||
|
||||
struct wpa_ssid *prev_scan_ssid; /* previously scanned SSID;
|
||||
* NULL = not yet initialized (start
|
||||
* with broadcast SSID)
|
||||
* BROADCAST_SSID_SCAN = broadcast
|
||||
* with wildcard SSID)
|
||||
* WILDCARD_SSID_SCAN = wildcard
|
||||
* SSID was used in the previous scan
|
||||
*/
|
||||
#define BROADCAST_SSID_SCAN ((struct wpa_ssid *) 1)
|
||||
#define WILDCARD_SSID_SCAN ((struct wpa_ssid *) 1)
|
||||
|
||||
struct wpa_scan_results *scan_res;
|
||||
|
||||
|
|
Loading…
Reference in a new issue