]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix rx link assignment for non-MLO stations
authorHari Chandrakanthan <quic_haric@quicinc.com>
Mon, 30 Jun 2025 08:41:19 +0000 (14:11 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Jul 2025 09:11:06 +0000 (11:11 +0200)
commitcc2b722132893164bcb3cee4f08ed056e126eb6c
treed89c35f8f798258fbe0cc8595674cbee7d87fe52
parentf440a12d264de3c960aa7b78286c1c350b196bc5
wifi: mac80211: fix rx link assignment for non-MLO stations

Currently, ieee80211_rx_data_set_sta() does not correctly handle the
case where the interface supports multiple links (MLO), but the station
does not (non-MLO). This can lead to incorrect link assignment or
unexpected warnings when accessing link information.

Hence, add a fix to check if the station lacks valid link support and
use its default link ID for rx->link assignment. If the station
unexpectedly has valid links, fall back to the default link.

This ensures correct link association and prevents potential issues
in mixed MLO/non-MLO environments.

Signed-off-by: Hari Chandrakanthan <quic_haric@quicinc.com>
Signed-off-by: Sarika Sharma <quic_sarishar@quicinc.com>
Link: https://patch.msgid.link/20250630084119.3583593-1-quic_sarishar@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c