Browse Source

qcacmn: Add support of GCMP (128/256) support

Add support of GCMP (128/256) security ciper support.

Change-Id: I3c9cb3dc72cce0a2cae3e468d3c1f3c004e11adf
CRs-fixed: 2071087
Mukul Sharma 7 years ago
parent
commit
a17d5ecbf4
2 changed files with 10 additions and 0 deletions
  1. 2 0
      umac/cmn_services/inc/wlan_cmn.h
  2. 8 0
      umac/scan/core/src/wlan_scan_cache_db_ops.c

+ 2 - 0
umac/cmn_services/inc/wlan_cmn.h

@@ -332,6 +332,8 @@ enum wlan_enc_type {
 	WLAN_ENCRYPT_TYPE_KRK,
 	WLAN_ENCRYPT_TYPE_BTK,
 	WLAN_ENCRYPT_TYPE_AES_CMAC,
+	WLAN_ENCRYPT_TYPE_AES_GCMP,
+	WLAN_ENCRYPT_TYPE_AES_GCMP_256,
 	WLAN_ENCRYPT_TYPE_ANY,
 	WLAN_NUM_OF_ENCRYPT_TYPE = WLAN_ENCRYPT_TYPE_ANY,
 };

+ 8 - 0
umac/scan/core/src/wlan_scan_cache_db_ops.c

@@ -386,6 +386,12 @@ static uint8_t scm_get_cipher_suite_type(enum wlan_enc_type enc)
 	case WLAN_ENCRYPT_TYPE_AES:
 		cipher_type = WLAN_CSE_CCMP;
 		break;
+	case WLAN_ENCRYPT_TYPE_AES_GCMP:
+		cipher_type = WLAN_CSE_GCMP_128;
+		break;
+	case WLAN_ENCRYPT_TYPE_AES_GCMP_256:
+		cipher_type = WLAN_CSE_GCMP_256;
+		break;
 	case WLAN_ENCRYPT_TYPE_NONE:
 		cipher_type = WLAN_CSE_NONE;
 		break;
@@ -952,6 +958,8 @@ static bool scm_is_security_match(struct scan_filter *filter,
 			break;
 		case WLAN_ENCRYPT_TYPE_TKIP:
 		case WLAN_ENCRYPT_TYPE_AES:
+		case WLAN_ENCRYPT_TYPE_AES_GCMP:
+		case WLAN_ENCRYPT_TYPE_AES_GCMP_256:
 			/* First check if there is a RSN match */
 			match = scm_is_rsn_security(filter,
 				    db_entry, &local_security);