aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2017-06-11 12:41:23 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-17 15:04:34 (GMT)
commit922dcf1b457cf767d184b786175680520bacace0 (patch)
treec237cd4650936488d557a94e43771a4b8e31c286 /wpa_supplicant
parentcdb3aab56963d562059f068783a144e0584b59b9 (diff)
downloadhostap-922dcf1b457cf767d184b786175680520bacace0.zip
hostap-922dcf1b457cf767d184b786175680520bacace0.tar.gz
hostap-922dcf1b457cf767d184b786175680520bacace0.tar.bz2
RRM: Remove duplicate frequencies from beacon report scan request
When setting the frequencies for beacon report request scan, it is possible that a frequency is added twice (e.g., when the same channel appears both in the channel field and in the AP channel report subelement). This may cause the scan request to fail. Make sure the frequencies array contains no duplications before requesting the scan. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/rrm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/rrm.c b/wpa_supplicant/rrm.c
index 55f7f83..f4fbfa7 100644
--- a/wpa_supplicant/rrm.c
+++ b/wpa_supplicant/rrm.c
@@ -629,6 +629,7 @@ static int * wpas_beacon_request_freqs(struct wpa_supplicant *wpa_s,
if (ext_freqs) {
int_array_concat(&freqs, ext_freqs);
os_free(ext_freqs);
+ int_array_sort_unique(freqs);
}
return freqs;