bgscan_learn: Avoid redundant frequencies
authorEliad Peller <eliad@wizery.com>
Thu, 19 Dec 2013 10:03:24 +0000 (12:03 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 24 Dec 2013 04:49:26 +0000 (06:49 +0200)
commit7dab1193803f90334e5cf8396a35f7ac8371041f
treea11aba13326cd1136772f62062b5b42e28902120
parent3727123269a1a380b51733049a8a9e1b63acf121
bgscan_learn: Avoid redundant frequencies

Some hw modes (e.g., 11b and 11g) contain the same frequencies,
causing the supp_freqs array to be populated with redundant entries.

Check for the existence of the freq before adding it.

Signed-hostap: Eliad Peller <eliad@wizery.com>
wpa_supplicant/bgscan_learn.c