From 96deacf5d71022b263a27113de52c1f13efdd6ec Mon Sep 17 00:00:00 2001 From: Manaswini Paluri Date: Thu, 22 Jun 2023 14:19:36 +0530 Subject: [PATCH] nl80211: Skip STA MLO link channel switch handling in AP mode Add check to skip the STA mode specific MLO link channel switch handling in AP mode. Commit 1b6f3b5850a7 ("MLD STA: Indicate per link channel switch") added this indication only for STA mode. Signed-off-by: Manaswini Paluri --- src/drivers/driver_nl80211_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c index b58eb80d5..d6e150539 100644 --- a/src/drivers/driver_nl80211_event.c +++ b/src/drivers/driver_nl80211_event.c @@ -1269,7 +1269,7 @@ static void mlme_event_ch_switch(struct wpa_driver_nl80211_data *drv, if (finished) bss->flink->freq = data.ch_switch.freq; - if (link) { + if (link && is_sta_interface(drv->nlmode)) { u8 link_id = nla_get_u8(link); if (link_id < MAX_NUM_MLD_LINKS &&