diff options
| author | Benjamin Berg <benjamin.berg@intel.com> | 2026-10-27 14:45:59 +0100 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-11-10 10:17:06 +0100 |
| commit | f43b50535ff960992c04665c5a91850b3e78c942 (patch) | |
| tree | 9515ba46da605a335334f8f432b9cf7c5ad01f04 /tools/perf/scripts/python | |
| parent | a155ef2ef79531c139244289c5b8f15c05d16a0e (diff) | |
wifi: mac80211: do not switch to invalid link
Set the link_id in the SKB status to the invalid value of 0xf when the
link ID is not valid. Also update the test in ieee80211_rx_handlers to
correctly check this case. This avoids switching to an invalid link
during RX of a single frame (when updating the link is not needed).
It also means that the SKB link_id now has a more reasonable value as it
is possible to differentiate the non-valid case from the case where the
value is set to 0.
Add back the appropriate checks before trying to use the link_id for
access to arrays. These were removed in commit 4db13371e217 ("wifi:
mac80211: refactor RX link_id and station handling").
Finally, this also fixes the link_sta lookup to use the correct link ID,
rather than an old value from rx->link_id.
Fixes: 2d03b83ef762 ("wifi: mac80211: fix non-MLD link ID handling")
Fixes: 4db13371e217 ("wifi: mac80211: refactor RX link_id and station handling")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20261027144558.7d7ed492e70a.Iaa63d80b6f13f871d1ee3cf1ce27118f72850ac0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
