Root/
| 1 | --- a/src/ap/ieee802_11.c |
| 2 | +++ b/src/ap/ieee802_11.c |
| 3 | @@ -1774,6 +1774,9 @@ void ieee802_11_rx_from_unknown(struct h |
| 4 | |
| 5 | sta = ap_get_sta(hapd, src); |
| 6 | if (sta && (sta->flags & WLAN_STA_ASSOC)) { |
| 7 | + if (!hapd->conf->wds_sta) |
| 8 | + return; |
| 9 | + |
| 10 | if (wds && !(sta->flags & WLAN_STA_WDS)) { |
| 11 | wpa_printf(MSG_DEBUG, "Enable 4-address WDS mode for " |
| 12 | "STA " MACSTR " (aid %u)", |
| 13 |
