diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2018-02-15 16:49:26 +0530 |
---|---|---|
committer | taesub kim <taesub.kim@samsung.com> | 2018-02-26 17:44:08 +0900 |
commit | ca78e0cbb13bbd69de43f9a5d3f05d9ce51f58d1 (patch) | |
tree | 5d8a26eec5bd319d09ef2aaf9b5d6395bf92c6c8 /plugins | |
parent | 63d4f774d04c381000e45e7490bc838da9b36027 (diff) | |
download | connman-ca78e0cbb13bbd69de43f9a5d3f05d9ce51f58d1.tar.gz connman-ca78e0cbb13bbd69de43f9a5d3f05d9ce51f58d1.tar.bz2 connman-ca78e0cbb13bbd69de43f9a5d3f05d9ce51f58d1.zip |
[connman]Added support of EAP-FAST,EAP-PWD and EAP-AKA'.submit/tizen/20180226.110934accepted/tizen/unified/20180227.062953
Change-Id: Ibb75ff2c2e54c8d3d53f3b184502647918bf7e24
igned-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/wifi.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 3d7636ce..ebbd6b83 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -74,6 +74,10 @@ #define ASSOC_STATUS_NO_CLIENT 17 #define LOAD_SHAPING_MAX_RETRIES 3 +#if defined TIZEN_EXT +#define WIFI_EAP_FAST_PAC_FILE "/var/lib/wifi/wifi.pac" /* path of Pac file for EAP-FAST */ +#endif + static struct connman_technology *wifi_technology = NULL; static struct connman_technology *p2p_technology = NULL; @@ -2442,6 +2446,21 @@ static GSupplicantSecurity network_security(const char *security) return G_SUPPLICANT_SECURITY_UNKNOWN; } +#if defined TIZEN_EXT +static GSupplicantEapKeymgmt network_eap_keymgmt(const char *security) +{ + if (security == NULL) + return G_SUPPLICANT_EAP_KEYMGMT_NONE; + + if (g_str_equal(security, "FT") == TRUE) + return G_SUPPLICANT_EAP_KEYMGMT_FT; + else if (g_str_equal(security, "CCKM") == TRUE) + return G_SUPPLICANT_EAP_KEYMGMT_CCKM; + + return G_SUPPLICANT_EAP_KEYMGMT_NONE; +} +#endif + static void ssid_init(GSupplicantSSID *ssid, struct connman_network *network) { const char *security; @@ -2500,8 +2519,14 @@ static void ssid_init(GSupplicantSSID *ssid, struct connman_network *network) #if defined TIZEN_EXT ssid->bssid = connman_network_get_bssid(network); -#endif -#if defined TIZEN_EXT + + ssid->eap_keymgmt = network_eap_keymgmt( + connman_network_get_string(network, "WiFi.KeymgmtType")); + ssid->phase1 = connman_network_get_string(network, "WiFi.Phase1"); + + if(g_strcmp0(ssid->eap, "fast") == 0) + ssid->pac_file = g_strdup(WIFI_EAP_FAST_PAC_FILE); + if (set_connman_bssid(CHECK_BSSID, NULL) == 6) { ssid->bssid_for_connect_len = 6; set_connman_bssid(GET_BSSID, (char *)ssid->bssid_for_connect); |