Parcourir la source

qcacmn: Add support for separate FTM Coldboot Calibration mode

Add support for separate Coldboot calibration mode (10) for Coldboot
Calibration in FTM Mode.

Change-Id: I8e4e2c370053b55c3755339d7ead863ba950856e
CRs-Fixed: 2497548
Vignesh Viswanathan il y a 5 ans
Parent
commit
7c974c29d3
2 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 2 0
      hif/src/ce/ce_main.c
  2. 4 0
      qdf/inc/qdf_types.h

+ 2 - 0
hif/src/ce/ce_main.c

@@ -2962,6 +2962,8 @@ int hif_wlan_enable(struct hif_softc *scn)
 		mode = PLD_FTM;
 	else if (QDF_GLOBAL_COLDBOOT_CALIB_MODE == con_mode)
 		mode = PLD_COLDBOOT_CALIBRATION;
+	else if (QDF_GLOBAL_FTM_COLDBOOT_CALIB_MODE == con_mode)
+		mode = PLD_FTM_COLDBOOT_CALIBRATION;
 	else if (QDF_IS_EPPING_ENABLED(con_mode))
 		mode = PLD_EPPING;
 	else

+ 4 - 0
qdf/inc/qdf_types.h

@@ -587,11 +587,14 @@ const char *qdf_opmode_str(const enum QDF_OPMODE opmode);
  * enum QDF_GLOBAL_MODE - global mode when driver is loaded.
  *
  * @QDF_GLOBAL_MISSION_MODE: mission mode (STA, SAP...)
+ * @QDF_GLOBAL_WALTEST_MODE: WAL Test Mode
  * @QDF_GLOBAL_MONITOR_MODE: Monitor Mode
  * @QDF_GLOBAL_FTM_MODE: FTM mode
  * @QDF_GLOBAL_IBSS_MODE: IBSS mode
+ * @QDF_GLOBAL_COLDBOOT_CALIB_MODEL: Cold Boot Calibration Mode
  * @QDF_GLOBAL_EPPING_MODE: EPPING mode
  * @QDF_GLOBAL_QVIT_MODE: QVIT global mode
+ * @QDF_GLOBAL_FTM_COLDBOOT_CALIB_MODE: Cold Boot Calibration in FTM Mode
  * @QDF_GLOBAL_MAX_MODE: Max place holder
  */
 enum QDF_GLOBAL_MODE {
@@ -603,6 +606,7 @@ enum QDF_GLOBAL_MODE {
 	QDF_GLOBAL_COLDBOOT_CALIB_MODE = 7,
 	QDF_GLOBAL_EPPING_MODE = 8,
 	QDF_GLOBAL_QVIT_MODE = 9,
+	QDF_GLOBAL_FTM_COLDBOOT_CALIB_MODE = 10,
 	QDF_GLOBAL_MAX_MODE
 };