diff --git a/components/dp/core/src/wlan_dp_softap_txrx.c b/components/dp/core/src/wlan_dp_softap_txrx.c index 60995038a2..f7a14e95c8 100644 --- a/components/dp/core/src/wlan_dp_softap_txrx.c +++ b/components/dp/core/src/wlan_dp_softap_txrx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-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 @@ -483,7 +483,7 @@ static QDF_STATUS dp_softap_validate_peer_state(struct wlan_dp_link *dp_link, QDF_BUG(soc); dp_wds_replace_peer_mac(soc, dp_link, mac_addr.bytes); peer_state = cdp_peer_state_get(soc, dp_link->link_id, - mac_addr.bytes); + mac_addr.bytes, false); if (peer_state == OL_TXRX_PEER_STATE_INVALID) { dp_debug_rl("Failed to find right station"); diff --git a/components/dp/core/src/wlan_dp_txrx.c b/components/dp/core/src/wlan_dp_txrx.c index e4f1ce208a..ee91f7dc60 100644 --- a/components/dp/core/src/wlan_dp_txrx.c +++ b/components/dp/core/src/wlan_dp_txrx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2022-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 @@ -123,7 +123,7 @@ static int dp_intf_is_tx_allowed(qdf_nbuf_t nbuf, { enum ol_txrx_peer_state peer_state; - peer_state = cdp_peer_state_get(soc, intf_id, peer_mac); + peer_state = cdp_peer_state_get(soc, intf_id, peer_mac, false); if (qdf_likely(OL_TXRX_PEER_STATE_AUTH == peer_state)) return true; if (OL_TXRX_PEER_STATE_CONN == peer_state && diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c index 39df3405d6..d9cdb675d3 100644 --- a/core/dp/txrx/ol_txrx.c +++ b/core/dp/txrx/ol_txrx.c @@ -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 @@ -2715,11 +2715,12 @@ static int ol_txrx_get_opmode(struct cdp_soc_t *soc_hdl, uint8_t vdev_id) * @soc_hdl: datapath soc handle * @vdev_id: virtual interface id * @peer_mac: peer mac addr + * @slowpath: called from slow path or not * * Return: return peer state */ static int ol_txrx_get_peer_state(struct cdp_soc_t *soc_hdl, uint8_t vdev_id, - uint8_t *peer_mac) + uint8_t *peer_mac, bool slowpath) { struct ol_txrx_soc_t *soc = cdp_soc_t_to_ol_txrx_soc_t(soc_hdl); ol_txrx_pdev_handle pdev = diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index 7e51c7314d..5d805d3ef0 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2013-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 @@ -5067,7 +5067,7 @@ static void wma_add_sta_req_sta_mode(tp_wma_handle wma, tpAddStaParams params) } if (cdp_peer_state_get(soc, params->smesessionId, - params->bssId) == OL_TXRX_PEER_STATE_DISC) { + params->bssId, true) == OL_TXRX_PEER_STATE_DISC) { /* * This is the case for reassociation. * peer state update and peer_assoc is required since it