Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29e30c6b authored by Dundi Raviteja's avatar Dundi Raviteja Committed by Gerrit - the friendly Code Review server
Browse files

wlan: Get NV binary file name from wcnss driver

Get NV binary file name from wcnss driver.

Change-Id: If576bb86bb66a026cba187fe3eab46fcb1e196aa
CRs-Fixed: 2837243
parent bd55e447
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -227,6 +227,11 @@ static vos_wake_lock_t wlan_wake_lock;
/* set when SSR is needed after unload */
static e_hdd_ssr_required isSsrRequired = HDD_SSR_NOT_REQUIRED;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
#define WLAN_NV_FILE_SIZE 64
static char wlan_nv_bin[WLAN_NV_FILE_SIZE];
#endif
//internal function declaration
static VOS_STATUS wlan_hdd_framework_restart(hdd_context_t *pHddCtx);
static void wlan_hdd_restart_init(hdd_context_t *pHddCtx);
@@ -8695,6 +8700,19 @@ VOS_STATUS hdd_release_firmware(char *pFileName,v_VOID_t *pCtx)
   return status;
}
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
char* hdd_get_nv_bin()
{
	if (wcnss_get_nv_name(wlan_nv_bin)) {
		hddLog(VOS_TRACE_LEVEL_ERROR,
		       "%s: NV binary is invalid", __func__);
		return NULL;
	}
	return wlan_nv_bin;
}
#endif
/**---------------------------------------------------------------------------
  \brief hdd_request_firmware() -
+6 −0
Original line number Diff line number Diff line
@@ -56,6 +56,12 @@
#define WLAN_HO_CFG_FILE           "wlan/wlan_ho_config"
#endif // MSM_PLATFORM

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
#undef WLAN_NV_FILE
#define WLAN_NV_FILE hdd_get_nv_bin()

char* hdd_get_nv_bin(void);
#endif

VOS_STATUS hdd_request_firmware(char *pfileName,v_VOID_t *pCtx,v_VOID_t **ppfw_data, v_SIZE_t *pSize);