[4/5] hostap: add check for the wds sta flag before creating 4addr VLANs

Submitted by Felix Fietkau on Sept. 14, 2012, 1:12 p.m.

Details

Message ID 1347628349-34362-4-git-send-email-nbd@openwrt.org
State Accepted
Commit 99743811091dfe99728538b5526a268902fe73ca
Headers show

Commit Message

Felix Fietkau Sept. 14, 2012, 1:12 p.m.
Signed-hostap: Felix Fietkau <nbd@openwrt.org>
---
 src/ap/ieee802_11.c |    3 +++
 1 file changed, 3 insertions(+)

Comments

Jouni Malinen Sept. 23, 2012, 10:26 a.m.
Thanks, applied.

Patch hide | download patch | download mbox

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 4b6e9d7..ce20e5f 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -1831,6 +1831,9 @@  void ieee802_11_rx_from_unknown(struct hostapd_data *hapd, const u8 *src,
 
 	sta = ap_get_sta(hapd, src);
 	if (sta && (sta->flags & WLAN_STA_ASSOC)) {
+		if (!hapd->conf->wds_sta)
+			return;
+
 		if (wds && !(sta->flags & WLAN_STA_WDS)) {
 			wpa_printf(MSG_DEBUG, "Enable 4-address WDS mode for "
 				   "STA " MACSTR " (aid %u)",