|
@@ -1,6 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
|
|
|
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -1861,7 +1861,8 @@ void infra_cp_stats_bmiss_response_cb(struct infra_cp_stats_event *ev,
|
|
|
|
|
|
struct infra_cp_stats_event *
|
|
|
wlan_cfg80211_mc_bmiss_get_infra_cp_stats(struct wlan_objmgr_vdev *vdev,
|
|
|
- uint8_t *bmiss_peer_mac, int *errno)
|
|
|
+ uint8_t mac[QDF_MAC_ADDR_SIZE],
|
|
|
+ int *errno)
|
|
|
{
|
|
|
void *cookie;
|
|
|
int idx = 0;
|
|
@@ -1935,7 +1936,7 @@ wlan_cfg80211_mc_bmiss_get_infra_cp_stats(struct wlan_objmgr_vdev *vdev,
|
|
|
info.num_mac_addr_list = MAX_TWT_STAT_MAC_ADDR_ENTRIES;
|
|
|
info.num_pdev_ids = 0;
|
|
|
|
|
|
- qdf_mem_copy(&info.peer_mac_addr[0], bmiss_peer_mac, QDF_MAC_ADDR_SIZE);
|
|
|
+ qdf_mem_copy(&info.peer_mac_addr[0], mac, QDF_MAC_ADDR_SIZE);
|
|
|
status = ucfg_infra_cp_stats_register_resp_cb(wlan_vdev_get_psoc(vdev),
|
|
|
&info);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
@@ -1987,7 +1988,7 @@ wlan_cfg80211_mc_bmiss_get_infra_cp_stats(struct wlan_objmgr_vdev *vdev,
|
|
|
out->bmiss_infra_cp_stats->cons_bmiss_stats.num_bcn_hist_lost =
|
|
|
bmiss_event->cons_bmiss_stats.num_bcn_hist_lost;
|
|
|
|
|
|
- qdf_mem_copy(&out->bmiss_infra_cp_stats->peer_macaddr, bmiss_peer_mac,
|
|
|
+ qdf_mem_copy(&out->bmiss_infra_cp_stats->peer_macaddr, mac,
|
|
|
QDF_MAC_ADDR_SIZE);
|
|
|
osif_request_put(request);
|
|
|
status = ucfg_infra_cp_stats_deregister_resp_cb(
|