HS 2.0: Remove duplicate icon entries
authorJouni Malinen <j@w1.fi>
Sat, 19 Dec 2015 16:53:27 +0000 (18:53 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 19 Dec 2015 16:53:27 +0000 (18:53 +0200)
commit61f25f80b46e0d0247f168385b94a904e3c6fc04
tree605b7d472780fe043b3b5c1c2958e6b7b11efdfe
parentca9968a0129927c916081817a2e4c187e79a47fc
HS 2.0: Remove duplicate icon entries

Only one of the icon entries with a matching BSSID and file name can be
fetched from wpa_supplicant and as such, there is no need to maintain
the old data if it was not explicitly deleted before running a new fetch
for the same BSSID and icon. Remove older duplicated entries whenever
completing a pending icon fetch to optimize memory use.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/hs20_supplicant.c