summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2016-06-14 04:30:50 (GMT)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-06-14 04:30:50 (GMT)
commit6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c (patch)
tree3e54e92bcb13aa4d0fcced59c3eaba8b0b330beb /gsupplicant
parentf64ceea943f1ff3b9ccc025a1cac7ada2d8daa91 (diff)
parent0e83b35474b8e01ccbaff484665a6f525ecd67fa (diff)
downloadconnman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.zip
connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.tar.gz
connman-6f5ffa18c1f8cf226313d9a8c9accb8781bf4a8c.tar.bz2
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 fc8fd3d..806b4bd 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)