diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 4ec410df6..2defe6c91 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -6471,7 +6471,7 @@ static void handle_assoc_cb(struct hostapd_data *hapd, /* WPS not supported on backhaul BSS. Disable 4addr mode on fronthaul */ if ((sta->flags & WLAN_STA_WDS) || (sta->flags & WLAN_STA_MULTI_AP && - !(hapd->conf->multi_ap & FRONTHAUL_BSS) && + (hapd->conf->multi_ap & BACKHAUL_BSS) && !(sta->flags & WLAN_STA_WPS))) { int ret; char ifname_wds[IFNAMSIZ + 1]; diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index d87214ec7..4f84839e3 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -199,7 +199,7 @@ void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) if ((sta->flags & WLAN_STA_WDS) || (sta->flags & WLAN_STA_MULTI_AP && - !(hapd->conf->multi_ap & FRONTHAUL_BSS) && + (hapd->conf->multi_ap & BACKHAUL_BSS) && !(sta->flags & WLAN_STA_WPS))) hostapd_set_wds_sta(hapd, NULL, sta->addr, sta->aid, 0);