[PATCH] wpa_supplicant: Fix bug in get_shared_radio_freqs

Ilan Peer ilan.peer
Sun Nov 3 05:30:27 PST 2013


The idx variable was mistakenly set to 0 at the beginning
of the interface iteration.

Signed-hostap: Ilan Peer <ilan.peer at intel.com>

---
 wpa_supplicant/wpa_supplicant.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index f776d49..a9107c6 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -4044,7 +4044,7 @@ int get_shared_radio_freqs(struct wpa_supplicant *wpa_s,
 	if (rn == NULL || rn[0] == '\0')
 		return idx;
 
-	for (ifs = wpa_s->global->ifaces, idx = 0; ifs && idx < len;
+	for (ifs = wpa_s->global->ifaces; ifs && idx < len;
 	     ifs = ifs->next) {
 		if (wpa_s == ifs || !ifs->driver->get_radio_name)
 			continue;
-- 
1.7.10.4




More information about the Hostap mailing list