qcacld-3.0: Fix LFR2 failure for no better AP event

LFR2 also need set roam offload flag to fw:
WMI_ROAM_FW_OFFLOAD_ENABLE_FLAG of
WMI_VDEV_PARAM_ROAM_FW_OFFLOAD.

Change-Id: Idbb602b717f46f88426ef36a738efd456ac7af8b
only sets roam offload flag to fw for LFR3.

Change-Id: I0abdab998b7a7c336379ab44ca43ac2fb823eed9
CRs-Fixed: 2580519
This commit is contained in:
Jianmin Zhu 2019-12-18 15:57:39 +08:00 • committed by nshrivas
commit 569aa029a6

View file

@ -3658,7 +3658,7 @@ static void __lim_process_roam_scan_offload_req(struct mac_context *mac_ctx,
}
}
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
#if defined(WLAN_FEATURE_HOST_ROAM) || defined(WLAN_FEATURE_ROAM_OFFLOAD)
/**
* lim_send_roam_offload_init() - Process Roam offload flag from csr
* @mac_ctx: Pointer to Global MAC structure
@ -3681,7 +3681,15 @@ static void lim_send_roam_offload_init(struct mac_context *mac_ctx,
qdf_mem_free(msg_buf);
}
}
#else
static void lim_send_roam_offload_init(struct mac_context *mac_ctx,
uint32_t *msg_buf)
{
qdf_mem_free(msg_buf);
}
#endif
#ifdef WLAN_FEATURE_ROAM_OFFLOAD
/**
* lim_process_roam_invoke() - process the Roam Invoke req
* @mac_ctx: Pointer to Global MAC structure
@ -3707,11 +3715,6 @@ static void lim_process_roam_invoke(struct mac_context *mac_ctx,
pe_err("Not able to post SIR_HAL_ROAM_INVOKE to WMA");
}
#else
static void lim_send_roam_offload_init(struct mac_context *mac_ctx,
uint32_t *msg_buf)
{
qdf_mem_free(msg_buf);
}
static void lim_process_roam_invoke(struct mac_context *mac_ctx,
uint32_t *msg_buf)
{