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 &&