summaryrefslogtreecommitdiff
path: root/package/network/services/hostapd/patches/130-wds_sta_del_fix.patch
blob: 06b69069e7514fecc41e3f7082148fb188d68ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
 	}
 }