Explorar el Código

qcacmn: Get 2g vht20 capability from F/W

Add WMI_HOST_REGDMN_MODE_11AC_VHT20_2G in WMI_HOST_REGDMN_MODE
bitmap.

WMI_SERVICE_READY_EVENT indicates ht/vht capability by
hal_reg_capabilities-> wireless_modes, REGDMN_MODE_11AC_VHT20_2G
indicates 2g vht20, check and save it as
WMI_HOST_REGDMN_MODE_11AC_VHT20_2G.

Change-Id: Idfb9a0f576619d4f890c2c0df68fc903f311c510
CRs-Fixed: 2384269
Jianmin Zhu hace 6 años
padre
commit
3820084d6c
Se han modificado 2 ficheros con 7 adiciones y 0 borrados
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 5 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -497,6 +497,7 @@ typedef struct {
  * @WMI_HOST_REGDMN_MODE_11G: historical
  * @WMI_HOST_REGDMN_MODE_108G: 11g+Turbo channels
  * @WMI_HOST_REGDMN_MODE_108A: 11a+Turbo channels
+ * @WMI_HOST_REGDMN_MODE_11AC_VHT20_2G: 2GHz, VHT20
  * @WMI_HOST_REGDMN_MODE_XR: XR channels
  * @WMI_HOST_REGDMN_MODE_11A_HALF_RATE: 11a half rate channels
  * @WMI_HOST_REGDMN_MODE_11A_QUARTER_RATE: 11a quarter rate channels
@@ -530,6 +531,7 @@ typedef enum {
 	WMI_HOST_REGDMN_MODE_11G = 0x00000008,
 	WMI_HOST_REGDMN_MODE_108G = 0x00000020,
 	WMI_HOST_REGDMN_MODE_108A = 0x00000040,
+	WMI_HOST_REGDMN_MODE_11AC_VHT20_2G = 0x00000080,
 	WMI_HOST_REGDMN_MODE_XR = 0x00000100,
 	WMI_HOST_REGDMN_MODE_11A_HALF_RATE = 0x00000200,
 	WMI_HOST_REGDMN_MODE_11A_QUARTER_RATE = 0x00000400,

+ 5 - 0
wmi/src/wmi_unified_tlv.c

@@ -7873,6 +7873,8 @@ static inline uint32_t convert_wireless_modes_tlv(uint32_t target_wireless_mode)
 
 	uint32_t wireless_modes = 0;
 
+	WMI_LOGD("Target wireless mode: 0x%x", target_wireless_mode);
+
 	if (target_wireless_mode & REGDMN_MODE_11A)
 		wireless_modes |= WMI_HOST_REGDMN_MODE_11A;
 
@@ -7894,6 +7896,9 @@ static inline uint32_t convert_wireless_modes_tlv(uint32_t target_wireless_mode)
 	if (target_wireless_mode & REGDMN_MODE_108A)
 		wireless_modes |= WMI_HOST_REGDMN_MODE_108A;
 
+	if (target_wireless_mode & REGDMN_MODE_11AC_VHT20_2G)
+		wireless_modes |= WMI_HOST_REGDMN_MODE_11AC_VHT20_2G;
+
 	if (target_wireless_mode & REGDMN_MODE_XR)
 		wireless_modes |= WMI_HOST_REGDMN_MODE_XR;