netifd: update to 2012-03-23, fixes route/address tracking issues and adds more statu...
[openwrt.git] / package / hostapd / patches / 760-fix_wds_sta_check.patch
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)",