TETHERING_WIFI_SECURITY_TYPE_NONE = 0, /**< No Security type */
TETHERING_WIFI_SECURITY_TYPE_WPA2_PSK, /**< WPA2_PSK */
TETHERING_WIFI_SECURITY_TYPE_WPS, /**< WPA2_PSK */
+ TETHERING_WIFI_SECURITY_TYPE_SAE, /**< SAE */
} tethering_wifi_security_type_e;
/**
#define TETHERING_WIFI_SECURITY_TYPE_OPEN_STR "open"
#define TETHERING_WIFI_SECURITY_TYPE_WPA2_PSK_STR "wpa2-psk"
#define TETHERING_WIFI_SECURITY_TYPE_WPS_STR "wps"
+#define TETHERING_WIFI_SECURITY_TYPE_SAE_STR "sae"
#define TETHERING_ERROR_RECOVERY_MAX 3
#define SECURITY_TYPE_LEN 32
#define PSK_ITERATION_COUNT 4096
{
if (security_type != TETHERING_WIFI_SECURITY_TYPE_NONE &&
security_type != TETHERING_WIFI_SECURITY_TYPE_WPA2_PSK &&
- security_type != TETHERING_WIFI_SECURITY_TYPE_WPS) {
+ security_type != TETHERING_WIFI_SECURITY_TYPE_WPS &&
+ security_type != TETHERING_WIFI_SECURITY_TYPE_SAE) {
ERR("Invalid param\n"); //LCOV_EXCL_LINE
return TETHERING_ERROR_INVALID_PARAMETER;
}
security_type = TETHERING_WIFI_SECURITY_TYPE_WPA2_PSK;
else if (g_strcmp0(buf, TETHERING_WIFI_SECURITY_TYPE_WPS_STR) == 0)
security_type = TETHERING_WIFI_SECURITY_TYPE_WPS;
+ else if (g_strcmp0(buf, TETHERING_WIFI_SECURITY_TYPE_SAE_STR) == 0)
+ security_type = TETHERING_WIFI_SECURITY_TYPE_SAE;
else {
SERR("Unknown type : %s\n", buf); //LCOV_EXCL_LINE
g_free(buf);
case TETHERING_WIFI_SECURITY_TYPE_WPS:
sec_str = TETHERING_WIFI_SECURITY_TYPE_WPS_STR;
break;
+ case TETHERING_WIFI_SECURITY_TYPE_SAE:
+ sec_str = TETHERING_WIFI_SECURITY_TYPE_SAE_STR;
+ break;
}
__send_dbus_signal(th->client_bus,
case TETHERING_WIFI_SECURITY_TYPE_WPS:
sec_str = "wps";
break;
+ case TETHERING_WIFI_SECURITY_TYPE_SAE:
+ sec_str = "sae";
+ break;
default:
sec_str = "unknown";
break;
case TETHERING_WIFI_SECURITY_TYPE_WPS:
sec_str = "wps";
break;
+ case TETHERING_WIFI_SECURITY_TYPE_SAE:
+ sec_str = "sae";
+ break;
default:
sec_str = "unknown";
break;
int ret;
int security_type;
- printf("Input security type for Wi-Fi tethering (0:NONE, 1:WPA2_PSK, 2:WPS)");
+ printf("Input security type for Wi-Fi tethering (0:NONE, 1:WPA2_PSK, 2:WPS, 3:SAE)");
ret = scanf("%9d", &security_type);
if (ret < 0) {
printf("scanf is failed!!\n");