Fix client MLME test code for IBSS scan request
wpa_s->mlme.ssid is an array so it is always != NULL and this comparision should really have used ssid_len instead.
This commit is contained in:
parent
0e75b3c352
commit
2b057028cb
1 changed files with 1 additions and 1 deletions
|
@ -2146,7 +2146,7 @@ static void ieee80211_sta_merge_ibss(struct wpa_supplicant *wpa_s)
|
||||||
os_memset(¶ms, 0, sizeof(params));
|
os_memset(¶ms, 0, sizeof(params));
|
||||||
params.ssids[0].ssid = wpa_s->mlme.ssid;
|
params.ssids[0].ssid = wpa_s->mlme.ssid;
|
||||||
params.ssids[0].ssid_len = wpa_s->mlme.ssid_len;
|
params.ssids[0].ssid_len = wpa_s->mlme.ssid_len;
|
||||||
params.num_ssids = wpa_s->mlme.ssid ? 1 : 0;
|
params.num_ssids = wpa_s->mlme.ssid_len ? 1 : 0;
|
||||||
ieee80211_sta_req_scan(wpa_s, ¶ms);
|
ieee80211_sta_req_scan(wpa_s, ¶ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue