@@ -480,13 +480,21 @@ int process_cipher_config(struct wifi_connect_req_params *params,
480480 } else if (params -> suiteb_type == WIFI_SUITEB_192 ) {
481481 cipher_capa = WPA_CAPA_ENC_GCMP_256 ;
482482 gropu_mgmt_cipher_capa = WPA_CAPA_ENC_BIP_GMAC_256 ;
483- cipher_config -> key_mgmt = "WPA-EAP-SUITE-B-192" ;
483+ if (params -> ft_used ) {
484+ cipher_config -> key_mgmt = "WPA-EAP-SUITE-B-192 FT-EAP-SHA384" ;
485+ } else {
486+ cipher_config -> key_mgmt = "WPA-EAP-SUITE-B-192" ;
487+ }
484488 cipher_config -> openssl_ciphers = "SUITEB192" ;
485489 cipher_config -> tls_flags = "[SUITEB]" ;
486490 } else {
487491 cipher_capa = WPA_CAPA_ENC_CCMP ;
488492 gropu_mgmt_cipher_capa = WPA_CAPA_ENC_BIP ;
489- cipher_config -> key_mgmt = "WPA-EAP" ;
493+ if (params -> ft_used ) {
494+ cipher_config -> key_mgmt = "WPA-EAP FT-EAP" ;
495+ } else {
496+ cipher_config -> key_mgmt = "WPA-EAP" ;
497+ }
490498 }
491499
492500 if (params -> security == WIFI_SECURITY_TYPE_EAP_TLS_SHA256 ) {
@@ -678,7 +686,8 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
678686 }
679687 }
680688
681- if (!wpa_cli_cmd_v ("set_network %d key_mgmt SAE" , resp .network_id )) {
689+ if (!wpa_cli_cmd_v ("set_network %d key_mgmt SAE%s" , resp .network_id ,
690+ params -> ft_used ? " FT-SAE" : "" )) {
682691 goto out ;
683692 }
684693 } else if (params -> security == WIFI_SECURITY_TYPE_PSK_SHA256 ) {
@@ -698,8 +707,8 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
698707 goto out ;
699708 }
700709
701- if (!wpa_cli_cmd_v ("set_network %d key_mgmt WPA-PSK" ,
702- resp .network_id )) {
710+ if (!wpa_cli_cmd_v ("set_network %d key_mgmt WPA-PSK%s " ,
711+ resp .network_id , params -> ft_used ? " FT-PSK" : "" )) {
703712 goto out ;
704713 }
705714
0 commit comments