mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
Merge "qcacld-3.0: Add check to validate vdev id" into wlan-cld3.driver.lnx.2.0
This commit is contained in:
commit
6bc39cc4dc
4 changed files with 19 additions and 1 deletions
|
|
@ -11581,6 +11581,11 @@ static int __wlan_hdd_cfg80211_set_nud_stats(struct wiphy *wiphy,
|
|||
return err;
|
||||
}
|
||||
|
||||
if (adapter->session_id == HDD_SESSION_ID_INVALID) {
|
||||
hdd_err("Invalid session id");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (tb[STATS_SET_START]) {
|
||||
if (!tb[STATS_GW_IPV4]) {
|
||||
QDF_TRACE(QDF_MODULE_ID_HDD, QDF_TRACE_LEVEL_ERROR,
|
||||
|
|
|
|||
|
|
@ -1369,4 +1369,13 @@ struct wma_beacon_interval_reset_req {
|
|||
*/
|
||||
int wma_fill_beacon_interval_reset_req(tp_wma_handle wma, uint8_t vdev_id,
|
||||
uint16_t beacon_interval, uint32_t timeout);
|
||||
/*
|
||||
* wma_is_vdev_valid() - check the vdev status
|
||||
* @vdev_id: vdev identifier
|
||||
*
|
||||
* This function verifies the vdev validity
|
||||
*
|
||||
* Return: 'true' on valid vdev else 'false'
|
||||
*/
|
||||
bool wma_is_vdev_valid(uint32_t vdev_id);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1145,7 +1145,7 @@ int wma_vdev_start_resp_handler(void *handle, uint8_t *cmd_param_info,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool wma_is_vdev_valid(uint32_t vdev_id)
|
||||
bool wma_is_vdev_valid(uint32_t vdev_id)
|
||||
{
|
||||
tp_wma_handle wma_handle = cds_get_context(QDF_MODULE_ID_WMA);
|
||||
|
||||
|
|
|
|||
|
|
@ -6955,6 +6955,10 @@ static void wma_set_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 set_arp_stats *)req_buf;
|
||||
status = wmi_unified_set_arp_stats_req(wma_handle->wmi_handle,
|
||||
|
|
|
|||
Loading…
Reference in a new issue