@@ -480,13 +480,21 @@ int process_cipher_config(struct wifi_connect_req_params *params,
480
480
} else if (params -> suiteb_type == WIFI_SUITEB_192 ) {
481
481
cipher_capa = WPA_CAPA_ENC_GCMP_256 ;
482
482
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
+ }
484
488
cipher_config -> openssl_ciphers = "SUITEB192" ;
485
489
cipher_config -> tls_flags = "[SUITEB]" ;
486
490
} else {
487
491
cipher_capa = WPA_CAPA_ENC_CCMP ;
488
492
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
+ }
490
498
}
491
499
492
500
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,
678
686
}
679
687
}
680
688
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" : "" )) {
682
691
goto out ;
683
692
}
684
693
} 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,
698
707
goto out ;
699
708
}
700
709
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" : "" )) {
703
712
goto out ;
704
713
}
705
714
0 commit comments