projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b4237
)
hostapd: Add check for the wds sta flag before creating 4addr VLANs
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 23 Sep 2012 10:25:49 +0000
(13:25 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 23 Sep 2012 10:25:49 +0000
(13:25 +0300)
Signed-hostap: Felix Fietkau <nbd@openwrt.org>
src/ap/ieee802_11.c
patch
|
blob
|
history
diff --git
a/src/ap/ieee802_11.c
b/src/ap/ieee802_11.c
index
4b6e9d7
..
ce20e5f
100644
(file)
--- 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)",