Commit ebca4264 authored by Muna Sinada's avatar Muna Sinada Committed by Greg Kroah-Hartman
Browse files

wifi: mac80211: Add link iteration macro for link data



[ Upstream commit f61c7b3d ]

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: default avatarMuna Sinada <muna.sinada@oss.qualcomm.com>
Link: https://patch.msgid.link/20250325213125.1509362-2-muna.sinada@oss.qualcomm.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Stable-dep-of: d87c3ca0 ("wifi: mac80211: finish link init before RCU publish")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 32d0b580
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment