Refresh AP information 13/99413/1 accepted/tizen/3.0/tv/20161123.084015 submit/tizen_3.0/20161123.023752
authorJiwan Kim <ji-wan.kim@samsung.com>
Wed, 23 Nov 2016 00:10:03 +0000 (09:10 +0900)
committerJiwan Kim <ji-wan.kim@samsung.com>
Wed, 23 Nov 2016 00:10:03 +0000 (09:10 +0900)
 - To use latest information, wifi_ap_is_passphrase_required()
   requires refreshed AP handle before calling.

Change-Id: I1d82d19793679854176ecfd70ef23cd197bba01e
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
src/data/system/settings_wireless.c

index 5f5a84c..33e516a 100644 (file)
@@ -25,6 +25,7 @@ bool settings_wireless_passharase_required(wifi_ap_h ap)
        if (!ap)
                return false;
 
+       wifi_ap_refresh(ap);
        r = wifi_ap_is_passphrase_required(ap, &res);
        if (WIFI_ERROR_NONE != r) {
                _ERR("Failed to get result [%X]", r);