diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-12-17 14:28:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-12-17 14:28:20 +0000 |
commit | 41900226bc410254e891754a6ce61c720aebc63f (patch) | |
tree | f76d1da314e195776742ac7fe73ce4036bf033d8 /package/hostapd | |
parent | 15f4ea544ba011397f83e77e0570d8a4f1f2a99d (diff) | |
download | master-187ad058-41900226bc410254e891754a6ce61c720aebc63f.tar.gz master-187ad058-41900226bc410254e891754a6ce61c720aebc63f.tar.bz2 master-187ad058-41900226bc410254e891754a6ce61c720aebc63f.zip |
hostapd: add missing check for wds stations
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29559 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd')
-rw-r--r-- | package/hostapd/patches/760-fix_wds_sta_check.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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)", |