mac80211: ath11k: sync with ath-next
[openwrt/staging/mans0n.git] / package / kernel / mac80211 / patches / ath11k / 0020-wifi-ath11k-remove-unused-members-of-struct-ath11k_b.patch
1 From 9066794113c4813b6ce4a66ed6ce14ecdf35625d Mon Sep 17 00:00:00 2001
2 From: Dmitry Antipov <dmantipov@yandex.ru>
3 Date: Thu, 24 Aug 2023 10:50:45 +0300
4 Subject: [PATCH] wifi: ath11k: remove unused members of 'struct ath11k_base'
5
6 Remove set but otherwise unused 'wlan_init_status' and
7 'wmi_ready' members of 'struct ath11k_base', adjust
8 'ath11k_wmi_tlv_rdy_parse()' accordingly.
9
10 Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
11 Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
12 Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
13 Link: https://lore.kernel.org/r/20230824075121.121144-2-dmantipov@yandex.ru
14 ---
15 drivers/net/wireless/ath/ath11k/core.h | 2 --
16 drivers/net/wireless/ath/ath11k/wmi.c | 2 --
17 2 files changed, 4 deletions(-)
18
19 --- a/drivers/net/wireless/ath/ath11k/core.h
20 +++ b/drivers/net/wireless/ath/ath11k/core.h
21 @@ -901,8 +901,6 @@ struct ath11k_base {
22 struct list_head peers;
23 wait_queue_head_t peer_mapping_wq;
24 u8 mac_addr[ETH_ALEN];
25 - bool wmi_ready;
26 - u32 wlan_init_status;
27 int irq_num[ATH11K_IRQ_NUM_MAX];
28 struct ath11k_ext_irq_grp ext_irq_grp[ATH11K_EXT_IRQ_GRP_NUM_MAX];
29 struct ath11k_targ_cap target_caps;
30 --- a/drivers/net/wireless/ath/ath11k/wmi.c
31 +++ b/drivers/net/wireless/ath/ath11k/wmi.c
32 @@ -7222,14 +7222,12 @@ static int ath11k_wmi_tlv_rdy_parse(stru
33 memset(&fixed_param, 0, sizeof(fixed_param));
34 memcpy(&fixed_param, (struct wmi_ready_event *)ptr,
35 min_t(u16, sizeof(fixed_param), len));
36 - ab->wlan_init_status = fixed_param.ready_event_min.status;
37 rdy_parse->num_extra_mac_addr =
38 fixed_param.ready_event_min.num_extra_mac_addr;
39
40 ether_addr_copy(ab->mac_addr,
41 fixed_param.ready_event_min.mac_addr.addr);
42 ab->pktlog_defs_checksum = fixed_param.pktlog_defs_checksum;
43 - ab->wmi_ready = true;
44 break;
45 case WMI_TAG_ARRAY_FIXED_STRUCT:
46 addr_list = (struct wmi_mac_addr *)ptr;