qcacld-3.0: Add check to validate vdev id

Get ARP stats command is sent to firmware with
inactive vdev id in stats param resulting in
firmware crash.

Fix is to add check to validate vdev id before
sending get ARP stats command to firmware.

Change-Id: I1483573f4f9649c307f8d47466d9c7e234e9a78e
CRs-Fixed: 2161031
This commit is contained in:
Yeshwanth Sriram Guntuka 2017-12-19 14:09:04 +05:30 • committed by snandini
commit 3e4d96fbfa

View file

@ -6993,6 +6993,10 @@ static void wma_get_arp_req_stats(WMA_HANDLE handle,
__func__);
return;
}
if (!wma_is_vdev_valid(req_buf->vdev_id)) {
WMA_LOGE("vdev id not active or not valid");
return;
}
arp_stats = (struct get_arp_stats *)req_buf;
status = wmi_unified_get_arp_stats_req(wma_handle->wmi_handle,