projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e75b3c
)
Fix client MLME test code for IBSS scan request
author
Jouni Malinen
<j@w1.fi>
Sun, 10 Jan 2010 18:41:33 +0000
(20:41 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sun, 10 Jan 2010 18:41:33 +0000
(20:41 +0200)
wpa_s->mlme.ssid is an array so it is always != NULL and this
comparision should really have used ssid_len instead.
wpa_supplicant/mlme.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/mlme.c
b/wpa_supplicant/mlme.c
index
51db9ef
..
b013a74
100644
(file)
--- a/
wpa_supplicant/mlme.c
+++ b/
wpa_supplicant/mlme.c
@@
-2146,7
+2146,7
@@
static void ieee80211_sta_merge_ibss(struct wpa_supplicant *wpa_s)
os_memset(¶ms, 0, sizeof(params));
params.ssids[0].ssid = wpa_s->mlme.ssid;
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);
}