diff options
author | taesub kim <taesub.kim@samsung.com> | 2016-06-13 21:30:50 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2016-06-13 21:30:50 -0700 |
commit | 6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c (patch) | |
tree | 3e54e92bcb13aa4d0fcced59c3eaba8b0b330beb /gsupplicant | |
parent | f64ceea943f1ff3b9ccc025a1cac7ada2d8daa91 (diff) | |
parent | 0e83b35474b8e01ccbaff484665a6f525ecd67fa (diff) | |
download | connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.tar.gz connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.tar.bz2 connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.zip |
Merge "Add support for WPS2-PSK security type in Security property of service interface" into tizensubmit/tizen/20160614.053635accepted/tizen/wearable/20160614.103626accepted/tizen/tv/20160614.103619accepted/tizen/mobile/20160614.103642accepted/tizen/ivi/20160614.103653accepted/tizen/common/20160614.144019
Diffstat (limited to 'gsupplicant')
-rwxr-xr-x | gsupplicant/gsupplicant.h | 1 | ||||
-rwxr-xr-x | gsupplicant/supplicant.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index ad78c29d..e47421a4 100755 --- a/gsupplicant/gsupplicant.h +++ b/gsupplicant/gsupplicant.h @@ -359,6 +359,7 @@ const unsigned char *g_supplicant_network_get_bssid( GSupplicantNetwork *network); unsigned int g_supplicant_network_get_maxrate(GSupplicantNetwork *network); const char *g_supplicant_network_get_enc_mode(GSupplicantNetwork *network); +bool g_supplicant_network_get_rsn_selected(GSupplicantNetwork *network); unsigned int g_supplicant_network_is_hs20AP(GSupplicantNetwork *network); const char *g_supplicant_network_get_eap(GSupplicantNetwork *network); const char *g_supplicant_network_get_identity(GSupplicantNetwork *network); diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index fc8fd3d9..806b4bdf 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -1292,6 +1292,18 @@ const char *g_supplicant_network_get_enc_mode(GSupplicantNetwork *network) return NULL; } + +bool g_supplicant_network_get_rsn_selected(GSupplicantNetwork *network) +{ + if (network == NULL || network->best_bss == NULL) + return 0; + + if (network->best_bss->rsn_selected) + return true; + else + return false; +} + #endif static void merge_network(GSupplicantNetwork *network) |