mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 10:18:21 -05:00
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>
This commit is contained in:
parent
cdb3aab569
commit
922dcf1b45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user