qcacld-3.0: Use WLAN_DP_ID to get pdev reference

Wrong debug ID is used (WLAN_OSIF_ID) to increment the ref
count of the pdev object when sending tx params update event.
This is causing crash as ref count is decremented using
different id, WLAN_DP_ID.
To fix this, use WLAN_DP_ID to get the pdev object and increment
the ref count of right debug id.

Change-Id: If20fc1a4e4c2a37287f7703aa70bb8dc556f0125
CRs-Fixed: 3453570
This commit is contained in:
Ananya Gupta
2023-04-03 17:07:31 +05:30
gecommit door Madan Koyyalamudi
bovenliggende db30aa88a8
commit 5476fdca6f

Bestand weergeven

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2023 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
@@ -172,7 +172,7 @@ void osif_dp_send_tcp_param_update_event(struct wlan_objmgr_psoc *psoc,
QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT_INDEX;
event_len = sizeof(uint8_t) + sizeof(uint8_t) + NLMSG_HDRLEN;
pdev = wlan_objmgr_get_pdev_by_id(psoc, 0, WLAN_OSIF_ID);
pdev = wlan_objmgr_get_pdev_by_id(psoc, 0, WLAN_DP_ID);
if (!pdev)
return;