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

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

Change-Id: I3c9cb3dc72cce0a2cae3e468d3c1f3c004e11adf
CRs-fixed: 2071087
diff --git a/umac/cmn_services/inc/wlan_cmn.h b/umac/cmn_services/inc/wlan_cmn.h
index 50e54c2..0ad8f07 100644
--- a/umac/cmn_services/inc/wlan_cmn.h
+++ b/umac/cmn_services/inc/wlan_cmn.h
@@ -332,6 +332,8 @@
 	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,
 };
diff --git a/umac/scan/core/src/wlan_scan_cache_db_ops.c b/umac/scan/core/src/wlan_scan_cache_db_ops.c
index 034bb30..c08ea0e 100644
--- a/umac/scan/core/src/wlan_scan_cache_db_ops.c
+++ b/umac/scan/core/src/wlan_scan_cache_db_ops.c
@@ -386,6 +386,12 @@
 	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 @@
 			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);