From 5b89536395b532e594232adf388393cdc8143e06 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 17 Dec 2011 14:28:20 +0000 Subject: hostapd: add missing check for wds stations SVN-Revision: 29559 --- package/hostapd/patches/760-fix_wds_sta_check.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/hostapd/patches/760-fix_wds_sta_check.patch (limited to 'package') diff --git a/package/hostapd/patches/760-fix_wds_sta_check.patch b/package/hostapd/patches/760-fix_wds_sta_check.patch new file mode 100644 index 0000000000..2b808678cf --- /dev/null +++ b/package/hostapd/patches/760-fix_wds_sta_check.patch @@ -0,0 +1,12 @@ +--- a/src/ap/ieee802_11.c ++++ b/src/ap/ieee802_11.c +@@ -1774,6 +1774,9 @@ void ieee802_11_rx_from_unknown(struct h + + 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)", -- cgit v1.2.3