]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Skip STA MLO link channel switch handling in AP mode
authorManaswini Paluri <quic_mpaluri@quicinc.com>
Thu, 22 Jun 2023 08:49:36 +0000 (14:19 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 19 Jul 2023 16:43:00 +0000 (19:43 +0300)
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 <quic_mpaluri@quicinc.com>
src/drivers/driver_nl80211_event.c

index b58eb80d5c098ddb5dca76c7b170bd19ea307499..d6e15053979ebdc44737448c6e4c0dcab045f50f 100644 (file)
@@ -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 &&