qcacld-3.0: Change check for wma_is_vdev_started() to WLAN_VDEV_S_UP

When running WHUNT test case for SET NUD STATS vendor command,
wma_set_arp_req_stats is supposed to be sent to FW but it fails to send
due to the check in wma_is_vdev_started(), which is currently checking
if the vdev state is WLAN_VDEV_S_START, instead of WLAN_VDEV_S_UP, thus
allowing vdev state WLAN_VDEV_S_UP to still continue when it is not
started. Hence, change the check to WLAN_VDEV_S_UP to provide proper check.

Change-Id: Ifae00ff26a27df92cd4d09047c326bcccfdbf602
CRs-Fixed: 2651406
此提交包含在:
Alan Chen
2020-03-27 12:44:51 -07:00
提交者 nshrivas
父節點 433881962b
當前提交 6a2c5953c1
共有 3 個檔案被更改,包括 1 行新增19 行删除

查看文件

@@ -1809,16 +1809,6 @@ int wma_fill_beacon_interval_reset_req(tp_wma_handle wma, uint8_t vdev_id,
*/
bool wma_is_vdev_valid(uint32_t vdev_id);
/*
* wma_is_vdev_started() - check whether vdev is started or not
* @vdev: pointer to vdev object
*
* This function verifies the vdev is started nor not
*
* Return: 'true' if vdev is started else 'false'
*/
bool wma_is_vdev_started(struct wlan_objmgr_vdev *vdev);
/**
* wma_vdev_obss_detection_info_handler - event handler to handle obss detection
* @handle: the wma handle