|
@@ -1919,8 +1919,6 @@ csr_scan_get_channel_for_hw_mode_change(struct mac_context *mac_ctx,
|
|
|
return candidate_ch_freq;
|
|
|
}
|
|
|
|
|
|
-#ifdef WLAN_SCAN_SECURITY_FILTER_V1
|
|
|
-
|
|
|
static void csr_fill_rsn_auth_type(enum csr_akm_type *auth_type, uint32_t akm)
|
|
|
{
|
|
|
/* Try the more preferred ones first. */
|
|
@@ -2093,222 +2091,6 @@ static void csr_fill_neg_crypto_info(struct tag_csrscan_result *bss,
|
|
|
bss->authType, bss->ucEncryptionType, bss->mcEncryptionType);
|
|
|
}
|
|
|
|
|
|
-#else
|
|
|
-
|
|
|
-enum wlan_auth_type csr_covert_auth_type_new(enum csr_akm_type auth)
|
|
|
-{
|
|
|
- switch (auth) {
|
|
|
- case eCSR_AUTH_TYPE_NONE:
|
|
|
- case eCSR_AUTH_TYPE_OPEN_SYSTEM:
|
|
|
- return WLAN_AUTH_TYPE_OPEN_SYSTEM;
|
|
|
- case eCSR_AUTH_TYPE_SHARED_KEY:
|
|
|
- return WLAN_AUTH_TYPE_SHARED_KEY;
|
|
|
- case eCSR_AUTH_TYPE_AUTOSWITCH:
|
|
|
- return WLAN_AUTH_TYPE_AUTOSWITCH;
|
|
|
- case eCSR_AUTH_TYPE_WPA:
|
|
|
- return WLAN_AUTH_TYPE_WPA;
|
|
|
- case eCSR_AUTH_TYPE_WPA_PSK:
|
|
|
- return WLAN_AUTH_TYPE_WPA_PSK;
|
|
|
- case eCSR_AUTH_TYPE_WPA_NONE:
|
|
|
- return WLAN_AUTH_TYPE_WPA_NONE;
|
|
|
- case eCSR_AUTH_TYPE_RSN:
|
|
|
- return WLAN_AUTH_TYPE_RSN;
|
|
|
- case eCSR_AUTH_TYPE_RSN_PSK:
|
|
|
- return WLAN_AUTH_TYPE_RSN_PSK;
|
|
|
- case eCSR_AUTH_TYPE_FT_RSN:
|
|
|
- return WLAN_AUTH_TYPE_FT_RSN;
|
|
|
- case eCSR_AUTH_TYPE_FT_RSN_PSK:
|
|
|
- return WLAN_AUTH_TYPE_FT_RSN_PSK;
|
|
|
- case eCSR_AUTH_TYPE_WAPI_WAI_CERTIFICATE:
|
|
|
- return WLAN_AUTH_TYPE_WAPI_WAI_CERTIFICATE;
|
|
|
- case eCSR_AUTH_TYPE_WAPI_WAI_PSK:
|
|
|
- return WLAN_AUTH_TYPE_WAPI_WAI_PSK;
|
|
|
- case eCSR_AUTH_TYPE_CCKM_WPA:
|
|
|
- return WLAN_AUTH_TYPE_CCKM_WPA;
|
|
|
- case eCSR_AUTH_TYPE_CCKM_RSN:
|
|
|
- return WLAN_AUTH_TYPE_CCKM_RSN;
|
|
|
- case eCSR_AUTH_TYPE_RSN_PSK_SHA256:
|
|
|
- return WLAN_AUTH_TYPE_RSN_PSK_SHA256;
|
|
|
- case eCSR_AUTH_TYPE_RSN_8021X_SHA256:
|
|
|
- return WLAN_AUTH_TYPE_RSN_8021X_SHA256;
|
|
|
- case eCSR_AUTH_TYPE_FILS_SHA256:
|
|
|
- return WLAN_AUTH_TYPE_FILS_SHA256;
|
|
|
- case eCSR_AUTH_TYPE_FILS_SHA384:
|
|
|
- return WLAN_AUTH_TYPE_FILS_SHA384;
|
|
|
- case eCSR_AUTH_TYPE_FT_FILS_SHA256:
|
|
|
- return WLAN_AUTH_TYPE_FT_FILS_SHA256;
|
|
|
- case eCSR_AUTH_TYPE_FT_FILS_SHA384:
|
|
|
- return WLAN_AUTH_TYPE_FT_FILS_SHA384;
|
|
|
- case eCSR_AUTH_TYPE_DPP_RSN:
|
|
|
- return WLAN_AUTH_TYPE_DPP_RSN;
|
|
|
- case eCSR_AUTH_TYPE_OWE:
|
|
|
- return WLAN_AUTH_TYPE_OWE;
|
|
|
- case eCSR_AUTH_TYPE_SUITEB_EAP_SHA256:
|
|
|
- return WLAN_AUTH_TYPE_SUITEB_EAP_SHA256;
|
|
|
- case eCSR_AUTH_TYPE_SUITEB_EAP_SHA384:
|
|
|
- return WLAN_AUTH_TYPE_SUITEB_EAP_SHA384;
|
|
|
- case eCSR_AUTH_TYPE_SAE:
|
|
|
- return WLAN_AUTH_TYPE_SAE;
|
|
|
- case eCSR_AUTH_TYPE_OSEN:
|
|
|
- return WLAN_AUTH_TYPE_OSEN;
|
|
|
- case eCSR_AUTH_TYPE_FT_SAE:
|
|
|
- return WLAN_AUTH_TYPE_FT_SAE;
|
|
|
- case eCSR_AUTH_TYPE_FT_SUITEB_EAP_SHA384:
|
|
|
- return WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384;
|
|
|
- case eCSR_NUM_OF_SUPPORT_AUTH_TYPE:
|
|
|
- default:
|
|
|
- return WLAN_AUTH_TYPE_OPEN_SYSTEM;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static enum csr_akm_type csr_covert_auth_type_old(enum wlan_auth_type auth)
|
|
|
-{
|
|
|
- switch (auth) {
|
|
|
- case WLAN_AUTH_TYPE_OPEN_SYSTEM:
|
|
|
- return eCSR_AUTH_TYPE_OPEN_SYSTEM;
|
|
|
- case WLAN_AUTH_TYPE_SHARED_KEY:
|
|
|
- return eCSR_AUTH_TYPE_SHARED_KEY;
|
|
|
- case WLAN_AUTH_TYPE_AUTOSWITCH:
|
|
|
- return eCSR_AUTH_TYPE_AUTOSWITCH;
|
|
|
- case WLAN_AUTH_TYPE_WPA:
|
|
|
- return eCSR_AUTH_TYPE_WPA;
|
|
|
- case WLAN_AUTH_TYPE_WPA_PSK:
|
|
|
- return eCSR_AUTH_TYPE_WPA_PSK;
|
|
|
- case WLAN_AUTH_TYPE_WPA_NONE:
|
|
|
- return eCSR_AUTH_TYPE_WPA_NONE;
|
|
|
- case WLAN_AUTH_TYPE_RSN:
|
|
|
- return eCSR_AUTH_TYPE_RSN;
|
|
|
- case WLAN_AUTH_TYPE_RSN_PSK:
|
|
|
- return eCSR_AUTH_TYPE_RSN_PSK;
|
|
|
- case WLAN_AUTH_TYPE_FT_RSN:
|
|
|
- return eCSR_AUTH_TYPE_FT_RSN;
|
|
|
- case WLAN_AUTH_TYPE_FT_RSN_PSK:
|
|
|
- return eCSR_AUTH_TYPE_FT_RSN_PSK;
|
|
|
- case WLAN_AUTH_TYPE_WAPI_WAI_CERTIFICATE:
|
|
|
- return eCSR_AUTH_TYPE_WAPI_WAI_CERTIFICATE;
|
|
|
- case WLAN_AUTH_TYPE_WAPI_WAI_PSK:
|
|
|
- return eCSR_AUTH_TYPE_WAPI_WAI_PSK;
|
|
|
- case WLAN_AUTH_TYPE_CCKM_WPA:
|
|
|
- return eCSR_AUTH_TYPE_CCKM_WPA;
|
|
|
- case WLAN_AUTH_TYPE_CCKM_RSN:
|
|
|
- return eCSR_AUTH_TYPE_CCKM_RSN;
|
|
|
- case WLAN_AUTH_TYPE_RSN_PSK_SHA256:
|
|
|
- return eCSR_AUTH_TYPE_RSN_PSK_SHA256;
|
|
|
- case WLAN_AUTH_TYPE_RSN_8021X_SHA256:
|
|
|
- return eCSR_AUTH_TYPE_RSN_8021X_SHA256;
|
|
|
- case WLAN_AUTH_TYPE_FILS_SHA256:
|
|
|
- return eCSR_AUTH_TYPE_FILS_SHA256;
|
|
|
- case WLAN_AUTH_TYPE_FILS_SHA384:
|
|
|
- return eCSR_AUTH_TYPE_FILS_SHA384;
|
|
|
- case WLAN_AUTH_TYPE_FT_FILS_SHA256:
|
|
|
- return eCSR_AUTH_TYPE_FT_FILS_SHA256;
|
|
|
- case WLAN_AUTH_TYPE_FT_FILS_SHA384:
|
|
|
- return eCSR_AUTH_TYPE_FT_FILS_SHA384;
|
|
|
- case WLAN_AUTH_TYPE_DPP_RSN:
|
|
|
- return eCSR_AUTH_TYPE_DPP_RSN;
|
|
|
- case WLAN_AUTH_TYPE_OWE:
|
|
|
- return eCSR_AUTH_TYPE_OWE;
|
|
|
- case WLAN_AUTH_TYPE_SUITEB_EAP_SHA256:
|
|
|
- return eCSR_AUTH_TYPE_SUITEB_EAP_SHA256;
|
|
|
- case WLAN_AUTH_TYPE_SUITEB_EAP_SHA384:
|
|
|
- return eCSR_AUTH_TYPE_SUITEB_EAP_SHA384;
|
|
|
- case WLAN_AUTH_TYPE_SAE:
|
|
|
- return eCSR_AUTH_TYPE_SAE;
|
|
|
- case WLAN_AUTH_TYPE_OSEN:
|
|
|
- return eCSR_AUTH_TYPE_OSEN;
|
|
|
- case WLAN_AUTH_TYPE_FT_SAE:
|
|
|
- return eCSR_AUTH_TYPE_FT_SAE;
|
|
|
- case WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384:
|
|
|
- return eCSR_AUTH_TYPE_FT_SUITEB_EAP_SHA384;
|
|
|
- case WLAN_NUM_OF_SUPPORT_AUTH_TYPE:
|
|
|
- default:
|
|
|
- return eCSR_AUTH_TYPE_OPEN_SYSTEM;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-enum wlan_enc_type csr_covert_enc_type_new(eCsrEncryptionType enc)
|
|
|
-{
|
|
|
- switch (enc) {
|
|
|
- case eCSR_ENCRYPT_TYPE_NONE:
|
|
|
- return WLAN_ENCRYPT_TYPE_NONE;
|
|
|
- case eCSR_ENCRYPT_TYPE_WEP40_STATICKEY:
|
|
|
- return WLAN_ENCRYPT_TYPE_WEP40_STATICKEY;
|
|
|
- case eCSR_ENCRYPT_TYPE_WEP104_STATICKEY:
|
|
|
- return WLAN_ENCRYPT_TYPE_WEP104_STATICKEY;
|
|
|
- case eCSR_ENCRYPT_TYPE_WEP40:
|
|
|
- return WLAN_ENCRYPT_TYPE_WEP40;
|
|
|
- case eCSR_ENCRYPT_TYPE_WEP104:
|
|
|
- return WLAN_ENCRYPT_TYPE_WEP104;
|
|
|
- case eCSR_ENCRYPT_TYPE_TKIP:
|
|
|
- return WLAN_ENCRYPT_TYPE_TKIP;
|
|
|
- case eCSR_ENCRYPT_TYPE_AES:
|
|
|
- return WLAN_ENCRYPT_TYPE_AES;
|
|
|
- case eCSR_ENCRYPT_TYPE_WPI:
|
|
|
- return WLAN_ENCRYPT_TYPE_WPI;
|
|
|
- case eCSR_ENCRYPT_TYPE_KRK:
|
|
|
- return WLAN_ENCRYPT_TYPE_KRK;
|
|
|
- case eCSR_ENCRYPT_TYPE_BTK:
|
|
|
- return WLAN_ENCRYPT_TYPE_BTK;
|
|
|
- case eCSR_ENCRYPT_TYPE_AES_CMAC:
|
|
|
- return WLAN_ENCRYPT_TYPE_AES_CMAC;
|
|
|
- case eCSR_ENCRYPT_TYPE_AES_GCMP:
|
|
|
- return WLAN_ENCRYPT_TYPE_AES_GCMP;
|
|
|
- case eCSR_ENCRYPT_TYPE_AES_GCMP_256:
|
|
|
- return WLAN_ENCRYPT_TYPE_AES_GCMP_256;
|
|
|
- case eCSR_ENCRYPT_TYPE_ANY:
|
|
|
- default:
|
|
|
- return WLAN_ENCRYPT_TYPE_NONE;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static eCsrEncryptionType csr_covert_enc_type_old(enum wlan_enc_type enc)
|
|
|
-{
|
|
|
- switch (enc) {
|
|
|
- case WLAN_ENCRYPT_TYPE_NONE:
|
|
|
- return eCSR_ENCRYPT_TYPE_NONE;
|
|
|
- case WLAN_ENCRYPT_TYPE_WEP40_STATICKEY:
|
|
|
- return eCSR_ENCRYPT_TYPE_WEP40_STATICKEY;
|
|
|
- case WLAN_ENCRYPT_TYPE_WEP104_STATICKEY:
|
|
|
- return eCSR_ENCRYPT_TYPE_WEP104_STATICKEY;
|
|
|
- case WLAN_ENCRYPT_TYPE_WEP40:
|
|
|
- return eCSR_ENCRYPT_TYPE_WEP40;
|
|
|
- case WLAN_ENCRYPT_TYPE_WEP104:
|
|
|
- return eCSR_ENCRYPT_TYPE_WEP104;
|
|
|
- case WLAN_ENCRYPT_TYPE_TKIP:
|
|
|
- return eCSR_ENCRYPT_TYPE_TKIP;
|
|
|
- case WLAN_ENCRYPT_TYPE_AES:
|
|
|
- return eCSR_ENCRYPT_TYPE_AES;
|
|
|
- case WLAN_ENCRYPT_TYPE_WPI:
|
|
|
- return eCSR_ENCRYPT_TYPE_WPI;
|
|
|
- case WLAN_ENCRYPT_TYPE_KRK:
|
|
|
- return eCSR_ENCRYPT_TYPE_KRK;
|
|
|
- case WLAN_ENCRYPT_TYPE_BTK:
|
|
|
- return eCSR_ENCRYPT_TYPE_BTK;
|
|
|
- case WLAN_ENCRYPT_TYPE_AES_CMAC:
|
|
|
- return eCSR_ENCRYPT_TYPE_AES_CMAC;
|
|
|
- case WLAN_ENCRYPT_TYPE_AES_GCMP:
|
|
|
- return eCSR_ENCRYPT_TYPE_AES_GCMP;
|
|
|
- case WLAN_ENCRYPT_TYPE_AES_GCMP_256:
|
|
|
- return eCSR_ENCRYPT_TYPE_AES_GCMP_256;
|
|
|
- case WLAN_ENCRYPT_TYPE_ANY:
|
|
|
- default:
|
|
|
- return eCSR_ENCRYPT_TYPE_NONE;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static void csr_fill_neg_crypto_info(struct tag_csrscan_result *bss,
|
|
|
- struct security_info *sec_info)
|
|
|
-{
|
|
|
- bss->ucEncryptionType =
|
|
|
- csr_covert_enc_type_old(sec_info->uc_enc);
|
|
|
- bss->mcEncryptionType =
|
|
|
- csr_covert_enc_type_old(sec_info->mc_enc);
|
|
|
- bss->authType =
|
|
|
- csr_covert_auth_type_old(sec_info->auth_type);
|
|
|
-}
|
|
|
-
|
|
|
-#endif
|
|
|
-
|
|
|
#ifdef WLAN_FEATURE_FILS_SK
|
|
|
/**
|
|
|
* csr_update_bss_with_fils_data: Fill FILS params in bss desc from scan entry
|
|
@@ -2893,8 +2675,7 @@ void csr_init_occupied_channels_list(struct mac_context *mac_ctx,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- status = csr_fill_crypto_params_connected_profile(mac_ctx, profile,
|
|
|
- filter, sessionId);
|
|
|
+ status = csr_fill_filter_from_vdev_crypto(mac_ctx, filter, sessionId);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
sme_err("fail to fill filter crypto");
|
|
|
qdf_mem_free(filter);
|