wifi: ath12k: Remove unused ath12k_base from ath12k_hw
authorHarshitha Prem <quic_hprem@quicinc.com>
Mon, 17 Jun 2024 11:12:47 +0000 (14:12 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 17 Jun 2024 14:46:19 +0000 (17:46 +0300)
Currently, device (ab) reference in hardware abstraction (ah)
is not used anywhere. Also, with multiple device group abstraction,
hardware abstraction would be coupled with device group abstraction
rather than single device.

Hence, remove the ab reference from hardware abstraction.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Harshitha Prem <quic_hprem@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240529060939.4156281-1-quic_hprem@quicinc.com
drivers/net/wireless/ath/ath12k/core.h
drivers/net/wireless/ath/ath12k/mac.c

index 82ec23a7329d1fcf231cfddb25bbb46b7fc73855..d7a3e8fddb2045c4f2a3ecc4a00c89dac38345c0 100644 (file)
@@ -630,8 +630,6 @@ struct ath12k {
 
 struct ath12k_hw {
        struct ieee80211_hw *hw;
-       struct ath12k_base *ab;
-
        /* Protect the write operation of the hardware state ath12k_hw::state
         * between hardware start<=>reconfigure<=>stop transitions.
         */
index 1f00a2362ae6ec1fd3113dcbb596c079fe4ee4af..bc2da8530651da85d58f6cbc6cdd7a9c69d32cd2 100644 (file)
@@ -9254,7 +9254,6 @@ static struct ath12k_hw *ath12k_mac_hw_allocate(struct ath12k_base *ab,
 
        ah = ath12k_hw_to_ah(hw);
        ah->hw = hw;
-       ah->ab = ab;
        ah->num_radio = num_pdev_map;
 
        mutex_init(&ah->hw_mutex);