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);
+bool g_supplicant_network_get_rsn_mode(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);
return NULL;
}
-bool g_supplicant_network_get_rsn_selected(GSupplicantNetwork *network)
+bool g_supplicant_network_get_rsn_mode(GSupplicantNetwork *network)
{
if (network == NULL || network->best_bss == NULL)
return 0;
- if (network->best_bss->rsn_selected)
- return true;
- else
+ if (network->best_bss->rsn_selected) {
+ const char *mode = g_supplicant_network_get_enc_mode(network);
+ if (g_strcmp0(mode, "aes") == 0 ||
+ g_strcmp0(mode, "mixed") == 0)
+ return true;
+ else
+ return false;
+ } else
return false;
}
const char *encryption_mode);
const char *connman_network_get_enc_mode(struct connman_network *network);
-int connman_network_set_rsn_selected(struct connman_network *network,
- bool rsn_selected);
+int connman_network_set_rsn_mode(struct connman_network *network,
+ bool rsn_mode);
int connman_network_set_proxy(struct connman_network *network,
const char *proxies);
Name: connman
Version: 1.29
-Release: 12
+Release: 13
License: GPL-2.0+
Summary: Connection Manager
Url: http://connman.net
g_supplicant_network_get_maxrate(supplicant_network));
connman_network_set_enc_mode(network,
g_supplicant_network_get_enc_mode(supplicant_network));
- connman_network_set_rsn_selected(network,
- g_supplicant_network_get_rsn_selected(supplicant_network));
+ connman_network_set_rsn_mode(network,
+ g_supplicant_network_get_rsn_mode(supplicant_network));
connman_network_set_keymgmt(network,
g_supplicant_network_get_keymgmt(supplicant_network));
#endif
unsigned int isHS20AP;
unsigned int keymgmt;
char *keymgmt_type;
- bool rsn_selected;
+ bool rsn_mode;
int disconnect_reason;
#endif
} wifi;
return (const char *)network->wifi.encryption_mode;
}
-int connman_network_set_rsn_selected(struct connman_network *network,
- bool rsn_selected)
+int connman_network_set_rsn_mode(struct connman_network *network,
+ bool rsn_mode)
{
- network->wifi.rsn_selected = rsn_selected;
+ network->wifi.rsn_mode = rsn_mode;
return 0;
}
return network->wifi.mode;
else if (g_str_equal(key, "WiFi.Security"))
#if defined TIZEN_EXT
- if (network->wifi.rsn_selected != true ||
+ if (network->wifi.rsn_mode != true ||
g_str_equal(network->wifi.security, "ieee8021x"))
return network->wifi.security;
else