hostapd: Add check for the wds sta flag before creating 4addr VLANs
Signed-hostap: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
22b42372d0
commit
9974381109
1 changed files with 3 additions and 0 deletions
|
@ -1831,6 +1831,9 @@ void ieee802_11_rx_from_unknown(struct hostapd_data *hapd, const u8 *src,
|
||||||
|
|
||||||
sta = ap_get_sta(hapd, src);
|
sta = ap_get_sta(hapd, src);
|
||||||
if (sta && (sta->flags & WLAN_STA_ASSOC)) {
|
if (sta && (sta->flags & WLAN_STA_ASSOC)) {
|
||||||
|
if (!hapd->conf->wds_sta)
|
||||||
|
return;
|
||||||
|
|
||||||
if (wds && !(sta->flags & WLAN_STA_WDS)) {
|
if (wds && !(sta->flags & WLAN_STA_WDS)) {
|
||||||
wpa_printf(MSG_DEBUG, "Enable 4-address WDS mode for "
|
wpa_printf(MSG_DEBUG, "Enable 4-address WDS mode for "
|
||||||
"STA " MACSTR " (aid %u)",
|
"STA " MACSTR " (aid %u)",
|
||||||
|
|
Loading…
Reference in a new issue