]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: Add link iteration macro for link data
authorMuna Sinada <muna.sinada@oss.qualcomm.com>
Tue, 25 Mar 2025 21:31:23 +0000 (14:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:13 +0000 (16:03 +0200)
commitebca4264c648dc69f0b5a8deb8d797bca4be33d9
tree8718cbc235c6a576482ec4febddc9fef96b49643
parent32d0b58079eda1019c0c6d012d8a13f74852b532
wifi: mac80211: Add link iteration macro for link data

[ Upstream commit f61c7b3d442bef91dd432d468d08f72eadcc3209 ]

Currently before iterating through valid links we are utilizing
open-coding when checking if vif valid_links is a non-zero value.

Add new macro, for_each_link_data(), which iterates through link_id
and checks if it is set on vif valid_links. If it is a valid link then
access link data for that link id.

Signed-off-by: Muna Sinada <muna.sinada@oss.qualcomm.com>
Link: https://patch.msgid.link/20250325213125.1509362-2-muna.sinada@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Stable-dep-of: d87c3ca0f8f1 ("wifi: mac80211: finish link init before RCU publish")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/ieee80211_i.h