From 9e422dc9ba4eeee4162e72f05fd18cddff6dda27 Mon Sep 17 00:00:00 2001 From: Niraj Kumar Goit Date: Wed, 15 Jun 2016 16:34:28 +0530 Subject: [SPIN] add keymgmt property for bss. Change-Id: Id436db5828febaabd8273c2e0aab91f9ee9572ff Signed-off-by: Niraj Kumar Goit --- gsupplicant/supplicant.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gsupplicant/supplicant.c') diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index fb71df63..8449fb97 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -233,6 +233,7 @@ struct _GSupplicantNetwork { char *eap; char *identity; char *phase2; + unsigned int keymgmt; #endif }; @@ -1171,6 +1172,14 @@ const char *g_supplicant_network_get_phase2(GSupplicantNetwork *network) return network->phase2; } + +unsigned int g_supplicant_network_get_keymgmt(GSupplicantNetwork *network) +{ + if (network == NULL) + return 0; + + return network->keymgmt; +} #endif const unsigned char *g_supplicant_peer_get_widi_ies(GSupplicantPeer *peer, @@ -1606,6 +1615,10 @@ static void add_or_replace_bss_to_network(struct g_supplicant_bss *bss) network->frequency = bss->frequency; network->best_bss = bss; +#if defined TIZEN_EXT + network->keymgmt = bss->keymgmt; +#endif + SUPPLICANT_DBG("New network %s created", network->name); network->bss_table = g_hash_table_new_full(g_str_hash, g_str_equal, -- cgit v1.2.3