qcacld-3.0: Use the redesigned STA keepalive interface

Change I2a401fa6934f05555cb3c30088af62cfbc9a3c59 ("qcacmn: Refine the
STA keepalive interface") has updated the unified WMI interface for
the STA keepalive feature, so align with the new design.

Change-Id: I20cf9f54a7ec920a90575ffd73c51708414d46a0
CRs-Fixed: 2404896
This commit is contained in:
Jeff Johnson
2019-02-25 11:37:32 -08:00
committed by nshrivas
parent 844e7b4730
commit f32bf010e3

View File

@@ -864,7 +864,7 @@ void wma_set_sta_keep_alive(tp_wma_handle wma, uint8_t vdev_id,
uint8_t *hostv4addr, uint8_t *destv4addr,
uint8_t *destmac)
{
struct sta_params params;
struct sta_keep_alive_params params;
WMA_LOGD("%s: Enter", __func__);
@@ -882,12 +882,11 @@ void wma_set_sta_keep_alive(tp_wma_handle wma, uint8_t vdev_id,
params.vdev_id = vdev_id;
params.method = method;
params.timeperiod = timeperiod;
params.hostv4addr = hostv4addr;
params.destv4addr = destv4addr;
params.destmac = destmac;
qdf_mem_copy(params.hostv4addr, hostv4addr, QDF_IPV4_ADDR_SIZE);
qdf_mem_copy(params.destv4addr, destv4addr, QDF_IPV4_ADDR_SIZE);
qdf_mem_copy(params.destmac, destmac, QDF_MAC_ADDR_SIZE);
wmi_unified_set_sta_keep_alive_cmd(wma->wmi_handle,
&params);
wmi_unified_set_sta_keep_alive_cmd(wma->wmi_handle, &params);
WMA_LOGD("%s: Exit", __func__);
}