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>
This commit is contained in:
parent
4a6e9e5599
commit
cbf8d181c3
1 changed files with 1 additions and 0 deletions
|
@ -664,6 +664,7 @@ static void hs20_osu_fetch_done(struct wpa_supplicant *wpa_s)
|
||||||
f = fopen(fname, "w");
|
f = fopen(fname, "w");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
hs20_free_osu_prov(wpa_s);
|
hs20_free_osu_prov(wpa_s);
|
||||||
|
wpa_s->fetch_anqp_in_progress = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue