hostapd: fix deletion of wds sta interfaces in AP mode
authorFelix Fietkau <nbd@openwrt.org>
Fri, 28 Feb 2014 14:43:53 +0000 (14:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 28 Feb 2014 14:43:53 +0000 (14:43 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39765

package/network/services/hostapd/patches/130-wds_sta_del_fix.patch [new file with mode: 0644]

diff --git a/package/network/services/hostapd/patches/130-wds_sta_del_fix.patch b/package/network/services/hostapd/patches/130-wds_sta_del_fix.patch
new file mode 100644 (file)
index 0000000..06b6906
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/src/drivers/driver_nl80211.c
++++ b/src/drivers/driver_nl80211.c
+@@ -9083,8 +9083,8 @@ static int i802_set_wds_sta(void *priv, 
+                                       name);
+               i802_set_sta_vlan(priv, addr, bss->ifname, 0);
+-              return wpa_driver_nl80211_if_remove(priv, WPA_IF_AP_VLAN,
+-                                                  name);
++              nl80211_remove_iface(drv, if_nametoindex(name));
++              return 0;
+       }
+ }