Browse Source

qcacmn: hal and spectral kbuild changes for CFR

Adding hal support and including CFR libs in spectral's ko.
CRs-Fixed: 2372061

Change-Id: I7545c594fd2a004f9d34835414549bd51ff09e4f
Abhiram Jogadenu 6 years ago
parent
commit
d81f5b148d
2 changed files with 8 additions and 2 deletions
  1. 3 2
      hal/wifi3.0/qca8074v2/hal_8074v2.c
  2. 5 0
      spectral/Kbuild

+ 3 - 2
hal/wifi3.0/qca8074v2/hal_8074v2.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -526,7 +526,8 @@ struct hal_hw_srng_config hw_srng_table_8074v2[] = {
 	},
 	{ /* DIR_BUF_RX_DMA_SRC */
 		.start_ring_id = HAL_SRNG_DIR_BUF_RX_SRC_DMA_RING,
-		.max_rings = 1,
+		/* one ring for spectral and one ring for cfr */
+		.max_rings = 2,
 		.entry_size = 2,
 		.lmac_ring = TRUE,
 		.ring_dir = HAL_SRNG_SRC_RING,

+ 5 - 0
spectral/Kbuild

@@ -185,6 +185,11 @@ ccflags-y+= -DWLAN_SA_API_ENABLE
 INCS += -I$(obj)/$(DEPTH)/umac/sa_api/dispatcher/inc
 endif
 
+ifeq ($(QCA_CFR_SUPPORT), 1)
+ccflags-y+= -DWLAN_CFR_ENABLE=1
+INCS += -I$(obj)/$(DEPTH)/component_dev/umac/cfr/dispatcher/inc
+endif
+
 ifeq ($(strip ${QCA_DFS_COMPONENT_ENABLE}),1)
 ccflags-y+= -DDFS_COMPONENT_ENABLE
 endif