summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2016-06-10 09:45:13 (GMT)
committerJaehyun Kim <jeik01.kim@samsung.com>2016-06-10 09:51:30 (GMT)
commit0e83b35474b8e01ccbaff484665a6f525ecd67fa (patch)
tree03c640f91c826561b3f081de5f83434c47f18142 /gsupplicant
parentb164f3431bb96a71a465ef53b1f072ac2a9572cb (diff)
downloadconnman-0e83b35474b8e01ccbaff484665a6f525ecd67fa.zip
connman-0e83b35474b8e01ccbaff484665a6f525ecd67fa.tar.gz
connman-0e83b35474b8e01ccbaff484665a6f525ecd67fa.tar.bz2
Add support for WPS2-PSK security type in Security property of service interfacerefs/changes/02/74002/1
Change-Id: I5531a2e3e45da6b3d4caa6d5df15f54ebc2700d8
Diffstat (limited to 'gsupplicant')
-rwxr-xr-xgsupplicant/gsupplicant.h1
-rwxr-xr-xgsupplicant/supplicant.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
index ad78c29..e47421a 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 834be59..f558afb 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)