qcacld-3.0: Separate Peer state get call from fast path

Peer state could be queried from both fast path and
slow path. Change separates this call and allows log
print from slow path call.

Change-Id: I888b67224752182b792e0165bd5cbacbb7e5f293
CRs-Fixed: 3691146
Este commit está contenido en:
Yu Tian
2023-12-21 19:10:04 -08:00
cometido por Ravindra Konda
padre e0d21a7e51
commit f023bb3b27
Se han modificado 4 ficheros con 9 adiciones y 8 borrados

Ver fichero

@@ -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");

Ver fichero

@@ -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 &&