kernel-aes67/drivers/net/wireless/ath
Kalle Valo feafe59c89 wifi: ath11k: use RCU when accessing struct inet6_dev::ac_list
Commit c3718936ec ("ipv6: anycast: complete RCU handling of struct
ifacaddr6") converted struct inet6_dev::ac_list to use RCU but missed that
ath11k also accesses this list. Now sparse warns:

drivers/net/wireless/ath/ath11k/mac.c:9145:21: warning: incorrect type in assignment (different address spaces)
drivers/net/wireless/ath/ath11k/mac.c:9145:21:    expected struct ifacaddr6 *ifaca6
drivers/net/wireless/ath/ath11k/mac.c:9145:21:    got struct ifacaddr6 [noderef] __rcu *ac_list
drivers/net/wireless/ath/ath11k/mac.c:9145:53: warning: incorrect type in assignment (different address spaces)
drivers/net/wireless/ath/ath11k/mac.c:9145:53:    expected struct ifacaddr6 *ifaca6
drivers/net/wireless/ath/ath11k/mac.c:9145:53:    got struct ifacaddr6 [noderef] __rcu *aca_next

Fix it by using rtnl_dereference(). Also add a note that read_lock_bh() calls
rcu_read_lock() which I was not aware of.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37

Fixes: c3718936ec ("ipv6: anycast: complete RCU handling of struct ifacaddr6")
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240411165516.4070649-2-kvalo@kernel.org
2024-04-16 18:25:20 +03:00
..
ar5523 wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
ath5k wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
ath6kl wifi: cfg80211/mac80211: move puncturing into chandef 2024-02-08 15:00:39 +01:00
ath9k ath.git patches for v6.9 2024-02-22 12:41:45 +02:00
ath10k wifi: mac80211: check beacon countdown is complete on per link basis 2024-02-21 15:19:03 +01:00
ath11k wifi: ath11k: use RCU when accessing struct inet6_dev::ac_list 2024-04-16 18:25:20 +03:00
ath12k wifi: ath12k: fix license in p2p.c and p2p.h 2024-02-28 16:09:29 +02:00
carl9170 ath.git patches for v6.9 2024-02-22 12:41:45 +02:00
wcn36xx wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
wil6210 wifi: cfg80211: split struct cfg80211_ap_settings 2023-09-25 09:00:39 +02:00
Kconfig wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices 2022-11-29 12:49:06 +02:00
Makefile wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices 2022-11-29 12:49:06 +02:00
ath.h wifi: ath: Silence memcpy run-time false positive warning 2023-02-17 18:24:16 +02:00
debug.c
dfs_pattern_detector.c wifi: ath: dfs_pattern_detector: Use flex array to simplify code 2023-10-02 19:58:33 +03:00
dfs_pattern_detector.h ath: add support to get the detected radar specifications 2018-05-25 13:15:21 +03:00
dfs_pri_detector.c
dfs_pri_detector.h ath: add support to get the detected radar specifications 2018-05-25 13:15:21 +03:00
hw.c wifi: ath: fix repeated words in comments 2022-07-18 13:04:50 +03:00
key.c wifi: ath: Use is_multicast_ether_addr() to check multicast Ether address 2023-08-25 10:39:28 +03:00
main.c
reg.h
regd.c Revert "ath: add support for special 0x0 regulatory domain" 2022-03-07 19:45:08 +02:00
regd.h ath: regdom: extend South Korea regulatory domain support 2021-12-08 10:37:38 +02:00
regd_common.h ath: regdom: extend South Korea regulatory domain support 2021-12-08 10:37:38 +02:00
spectral_common.h ath: Replace zero-length arrays with flexible-array members 2022-02-21 12:26:28 +02:00
trace.c
trace.h tracing/ath: Use the new __vstring() helper 2022-07-15 17:44:40 -04:00