Browse Source

Merge "qcacld-3.0: Set the driver_type in the mac during the mac_open" into wlan-cld3.driver.lnx.2.0-dev

CNSS_WLAN Service 7 years ago
parent
commit
246b8faa88
1 changed files with 6 additions and 0 deletions
  1. 6 0
      core/mac/src/sys/legacy/src/system/src/mac_init_api.c

+ 6 - 0
core/mac/src/sys/legacy/src/system/src/mac_init_api.c

@@ -129,6 +129,12 @@ tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
 	*pHalHandle = (tHalHandle) p_mac;
 
 	{
+		/*
+		 * For Non-FTM cases this value will be reset during mac_start
+		 */
+		if (cds_cfg->driver_type)
+			p_mac->gDriverType = eDRIVER_TYPE_MFG;
+
 		/* Call routine to initialize CFG data structures */
 		if (eSIR_SUCCESS != cfg_init(p_mac))
 			return eSIR_FAILURE;