diff options
| -rw-r--r-- | wmi/inc/wmi_unified_param.h | 2 | ||||
| -rw-r--r-- | wmi/src/wmi_unified_tlv.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index f8fefa8f2896..d6895160d87d 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -2881,6 +2881,7 @@ struct ll_stats_get_params { * @sta_id: Per STA stats request must contain valid * @stats_mask: categories of stats requested * @session_id: wsm ts spec flag + * @pdev_id: PDEV id */ struct pe_stats_req { /* Common for all types are requests */ @@ -2890,6 +2891,7 @@ struct pe_stats_req { /* categories of stats requested. look at ePEStatsMask */ uint32_t stats_mask; uint8_t session_id; + uint8_t pdev_id; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 95286ee66ad4..ac85fe11b9d8 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -3926,9 +3926,10 @@ QDF_STATUS send_setup_install_key_cmd_tlv(wmi_unified_t wmi_handle, status = wmi_unified_cmd_send(wmi_handle, buf, len, WMI_VDEV_INSTALL_KEY_CMDID); - if (QDF_IS_STATUS_ERROR(status)) + if (QDF_IS_STATUS_ERROR(status)) { + qdf_mem_zero(wmi_buf_data(buf), len); wmi_buf_free(buf); - + } return status; } @@ -7372,6 +7373,7 @@ QDF_STATUS send_get_stats_cmd_tlv(wmi_unified_t wmi_handle, WMI_REQUEST_PEER_STAT | WMI_REQUEST_PDEV_STAT | WMI_REQUEST_VDEV_STAT | WMI_REQUEST_RSSI_PER_CHAIN_STAT; cmd->vdev_id = get_stats_param->session_id; + cmd->pdev_id = get_stats_param->pdev_id; WMI_CHAR_ARRAY_TO_MAC_ADDR(addr, &cmd->peer_macaddr); WMI_LOGD("STATS REQ VDEV_ID:%d-->", cmd->vdev_id); if (wmi_unified_cmd_send(wmi_handle, buf, len, |
