projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aac554
)
Fixed ctrl_iface BSS command to fetch scan results, if needed
author
Jouni Malinen
<j@w1.fi>
Sat, 1 Nov 2008 12:28:34 +0000
(14:28 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 1 Nov 2008 12:28:34 +0000
(14:28 +0200)
This makes BSS command work line SCAN_RESULTS and allows wpa_gui to get
some scan results without explicit scan results even when using ap_scan=2.
wpa_supplicant/ctrl_iface.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ctrl_iface.c
b/wpa_supplicant/ctrl_iface.c
index
3170d54
..
da207d1
100644
(file)
--- a/
wpa_supplicant/ctrl_iface.c
+++ b/
wpa_supplicant/ctrl_iface.c
@@
-1250,6
+1250,10
@@
static int wpa_supplicant_ctrl_iface_bss(struct wpa_supplicant *wpa_s,
char *pos, *end;
const u8 *ie, *ie2;
+ if (wpa_s->scan_res == NULL &&
+ wpa_supplicant_get_scan_results(wpa_s) < 0)
+ return 0;
+
results = wpa_s->scan_res;
if (results == NULL)
return 0;