linux/net/mac80211
Yuyang Huang 778a262a6c net: change netdev_hw_addr_list count through helpers
The count of a netdev_hw_addr_list is changed in several places of
dev_addr_lists.c and a few drivers read it directly. The next patch
needs to account every change of the count of dev->mc.

Add __hw_addr_count_add(), __hw_addr_count_inc(), __hw_addr_count_dec()
and __hw_addr_count_reset(), use them for every change of the count
and rename the field to _count so that a direct write stands out.
Readers keep using netdev_hw_addr_list_count() and the netdev_uc_count()
and netdev_mc_count() helpers, the few that read the field directly
are converted. No functional change.

Signed-off-by: Yuyang Huang <sigefriedhyy@gmail.com>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Link: https://patch.msgid.link/20261012011707.3378-3-sigefriedhyy@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-10-21 10:51:26 +02:00
..
tests wifi: mac80211: tests: fix stack variable bug 2026-10-14 12:19:00 +02:00
aead_api.c
aead_api.h
aes_ccm.h
aes_cmac.c wifi: mac80211: Use AES-CMAC library in ieee80211_aes_cmac() 2026-03-09 13:27:21 -07:00
aes_cmac.h wifi: mac80211: Use AES-CMAC library in ieee80211_aes_cmac() 2026-03-09 13:27:21 -07:00
aes_gcm.h
aes_gmac.c wifi: mac80211: utilize the newly defined CMAC constants 2025-11-20 11:56:19 +01:00
aes_gmac.h wifi: mac80211: utilize the newly defined CMAC constants 2025-11-20 11:56:19 +01:00
agg-rx.c wifi: mac80211: shut down RX BA session timer on teardown 2026-09-22 10:47:51 +02:00
agg-tx.c wifi: mac80211: use assign_bit() where applicable 2026-09-21 10:49:36 +02:00
airtime.c wifi: mac80211: don't estimate airtime for unsupported rate widths 2026-10-07 12:46:15 +02:00
ap.c wifi: mac80211: refactor RX link_id and station handling 2026-09-16 10:42:39 +02:00
cfg.c wifi: mac80211: implement unlocked STA statistics 2026-10-13 13:58:15 +02:00
chan.c wifi: mac80211: keep paired old chanctx alive 2026-09-21 14:37:36 +02:00
debug.h
debugfs_key.c wifi: mac80211: add key link_id to debugfs 2026-09-28 11:13:39 +02:00
debugfs_key.h
debugfs_netdev.c More changes, including drivers: 2026-09-21 18:17:53 -07:00
debugfs_netdev.h
debugfs_sta.c wifi: mac80211: Remove redundant rcu_read_lock/unlock() in spin_lock 2025-09-19 11:48:14 +02:00
debugfs_sta.h
debugfs.c wifi: mac80211: Pin module for hwflags debugfs file operations 2026-10-09 16:10:20 +02:00
debugfs.h
driver-ops.c wifi: mac80211: implement unlocked STA statistics 2026-10-13 13:58:15 +02:00
driver-ops.h net: change netdev_hw_addr_list count through helpers 2026-10-21 10:51:26 +02:00
drop.h wifi: mac80211: drop oversized fragments to avoid extra_len overflow 2026-09-21 16:30:08 +02:00
eht.c wifi: mac80211: move frame RX handling to type files 2026-05-05 14:49:01 +02:00
ethtool.c
fils_aead.c wifi: mac80211: handle empty FILS association request payload 2026-09-21 16:30:25 +02:00
fils_aead.h
he.c wifi: mac80211: refactor link STA bandwidth update 2026-06-03 14:11:58 +02:00
ht.c wifi: mac80211: pass station to ieee80211_tx_skb_tid 2026-09-16 10:42:40 +02:00
ibss.c Mostly driver changes this time: 2026-07-27 16:03:40 -07:00
ieee80211_i.h wifi: mac80211: fix encryption tailroom 2026-10-13 13:59:06 +02:00
iface.c wifi: mac80211: acquire wiphy lock for unlisted sdata teardown 2026-10-06 18:45:09 +02:00
Kconfig wifi: mac80211: Use AES-CMAC library in aes_s2v() 2026-03-09 13:27:21 -07:00
key.c wifi: mac80211: add Control Integrity Protocol handling 2026-09-28 11:13:39 +02:00
key.h wifi: mac80211: add Control Integrity Protocol handling 2026-09-28 11:13:39 +02:00
led.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
led.h
link.c wifi: mac80211: protect AP template pointers with a spinlock 2026-10-13 13:58:12 +02:00
main.c wifi: mac80211: fix interface registration error path order 2026-10-13 13:58:36 +02:00
Makefile wifi: mac80211: move frame RX handling to type files 2026-05-05 14:49:01 +02:00
mesh_hwmp.c wifi: mac80211: Fix -Wc23-extensions in hwmp_route_info_get() 2026-06-05 09:55:08 +02:00
mesh_pathtbl.c wifi: mac80211: mesh: fix path table generation counters 2026-10-09 15:59:22 +02:00
mesh_plink.c wifi: mac80211: mesh: don't send peering close in listen 2026-09-28 11:19:03 +02:00
mesh_ps.c
mesh_sync.c wifi: mac80211: export ieee80211_calculate_rx_timestamp 2026-04-07 15:36:02 +02:00
mesh.c wifi: mac80211: mesh: reset the CSA state when leaving 2026-09-09 14:51:31 +02:00
mesh.h
mlme.c wifi: mac80211: fix and clean up protected TWT support 2026-10-05 15:18:11 +02:00
nan.c wifi: mac80211: implement NAN non-evacuable channels 2026-09-28 11:13:44 +02:00
ocb.c wifi: mac80211: clean up initial STA NSS/bandwidth handling 2026-04-28 09:27:46 +02:00
offchannel.c wifi: mac80211: implement mgmt_tx_unlocked() 2026-10-13 13:58:14 +02:00
parse.c wifi: mac80211: handle shorter S1G TIM when parsing elements 2026-10-09 16:08:32 +02:00
pm.c wifi: mac80211: suppress chanctx warning for debugfs reset 2026-09-09 14:51:28 +02:00
rate.c wifi: mac80211: don't hold RTNL for rate control algo 2026-10-13 13:58:36 +02:00
rate.h
rc80211_minstrel_ht_debugfs.c
rc80211_minstrel_ht.c wifi: mac80211: validate TX status rate metadata 2026-09-22 10:47:47 +02:00
rc80211_minstrel_ht.h
rx.c wifi: mac80211: clear fragment cache entry 'is_protected' 2026-10-09 15:59:21 +02:00
s1g.c wifi: mac80211: don't seed an S1G sta's last_rate 2026-09-04 09:52:24 +02:00
scan.c wifi: mac80211: set conn mode prior to parsing elements in beacon 2026-10-09 16:08:32 +02:00
spectmgmt.c wifi: mac80211: reject invalid 320 MHz CSA bandwidth 2026-09-28 11:10:01 +02:00
sta_info.c wifi: mac80211: implement unlocked STA statistics 2026-10-13 13:58:15 +02:00
sta_info.h wifi: mac80211: implement unlocked STA statistics 2026-10-13 13:58:15 +02:00
status.c wifi: mac80211: validate TX status rate metadata 2026-09-22 10:47:47 +02:00
tdls.c More changes, including drivers: 2026-09-21 18:17:53 -07:00
tkip.c
tkip.h
trace_msg.h
trace.c
trace.h wifi: mac80211: implement lockless beacon updates 2026-10-13 13:58:13 +02:00
tx.c wifi: mac80211: reserve MME tailroom for protected beacons 2026-10-13 13:59:06 +02:00
uhr.c wifi: mac80211: update UHR capabilities field order 2026-05-05 14:49:01 +02:00
util.c wifi: mac80211: set SP in reg connectivity with any channel 2026-10-05 15:18:23 +02:00
vht.c wifi: mac80211: clarify per-STA bandwidth handling 2026-04-28 09:29:02 +02:00
wbrf.c
wep.c
wep.h
wme.c
wme.h
wpa.c Networking changes for 7.1. 2026-04-14 18:36:10 -07:00
wpa.h wifi: mac80211: refactor CMAC packet handlers 2025-11-20 11:56:19 +01:00