[PATCH 01/26] wpa_supplicant: Fix get_shared_radio_freqs_data()

Ilan Peer ilan.peer at intel.com
Tue Sep 8 05:46:08 EDT 2015


From: Andrei Otcheretianski <andrei.otcheretianski at intel.com>

Fix an iteration bug in get_shared_radio_freqs_data when
building freqs_data array.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski 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 fa94cc7..f7b2f2c 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -5564,7 +5564,7 @@ int get_shared_radio_freqs_data(struct wpa_supplicant *wpa_s,
 			freqs_data[idx++].freq = freq;
 
 		if (ifs->current_ssid->mode == WPAS_MODE_INFRA) {
-			freqs_data[i].flags = ifs->current_ssid->p2p_group ?
+			freqs_data[i].flags |= ifs->current_ssid->p2p_group ?
 				WPA_FREQ_USED_BY_P2P_CLIENT :
 				WPA_FREQ_USED_BY_INFRA_STATION;
 		}
-- 
1.9.1



More information about the HostAP mailing list