HS 2.0R2: Clear fetch_anqp_in_progress if fopen fails
authorDaichi Ueura <daichi.ueura@sonymobile.com>
Tue, 1 Mar 2016 18:26:38 +0000 (03:26 +0900)
committerJouni Malinen <j@w1.fi>
Thu, 3 Mar 2016 14:25:49 +0000 (16:25 +0200)
commitcbf8d181c38fd3ca7a695ce169d7349914eab0c5
tree28386a7286e049effdd4e080b5b8e41f377517db
parent4a6e9e5599a71ce69ffac7acadca7a6da72f892a
HS 2.0R2: Clear fetch_anqp_in_progress if fopen fails

Clear wpa_s->fetch_anqp_in_progress when osu-providers.txt can't be
opened. An issue happens, for instance, when wpa_supplicant doesn't
have correct access permission to the directory specified by osu_dir.
If hs20_osu_fetch_done method returns without clearing the flag,
'FETCH_OSU' command will never work correctly.

Signed-off-by: Daichi Ueura <daichi.ueura@sonymobile.com>
wpa_supplicant/hs20_supplicant.c