summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-30 16:08:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-30 16:08:02 +0000
commitd780bbd5ffc492f8e065d44fb51aa50fe123904e (patch)
tree12574ebaa31fe92edb438e896578c7ec040d79c7 /package
parent4ba4a22b87b623ebb75eb7c9ec958bb5d675af3f (diff)
downloadmtk-20170518-d780bbd5ffc492f8e065d44fb51aa50fe123904e.zip
mtk-20170518-d780bbd5ffc492f8e065d44fb51aa50fe123904e.tar.gz
mtk-20170518-d780bbd5ffc492f8e065d44fb51aa50fe123904e.tar.bz2
hostapd: fix segfault in mac80211 wds ap handling
SVN-Revision: 19420
Diffstat (limited to 'package')
-rw-r--r--package/hostapd/patches/150-mbss_driver_handling.patch7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/hostapd/patches/150-mbss_driver_handling.patch b/package/hostapd/patches/150-mbss_driver_handling.patch
index ccae4e6..412dc1c 100644
--- a/package/hostapd/patches/150-mbss_driver_handling.patch
+++ b/package/hostapd/patches/150-mbss_driver_handling.patch
@@ -735,7 +735,7 @@
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, addr);
NLA_PUT_U32(msg, NL80211_ATTR_STA_VLAN,
if_nametoindex(ifname));
-@@ -4181,10 +4174,11 @@ static int i802_set_sta_vlan(void *priv,
+@@ -4181,18 +4174,19 @@ static int i802_set_sta_vlan(void *priv,
static int i802_set_wds_sta(void *priv, const u8 *addr, int aid, int val)
{
@@ -747,9 +747,10 @@
- os_snprintf(name, sizeof(name), "%s.sta%d", drv->ifname, aid);
+ os_snprintf(name, sizeof(name), "%s.sta%d", bss->ifname, aid);
if (val) {
- if (nl80211_create_iface(priv, name, NL80211_IFTYPE_AP_VLAN,
+- if (nl80211_create_iface(priv, name, NL80211_IFTYPE_AP_VLAN,
++ if (nl80211_create_iface(drv, name, NL80211_IFTYPE_AP_VLAN,
NULL, 1) < 0)
-@@ -4192,7 +4186,7 @@ static int i802_set_wds_sta(void *priv,
+ return -1;
linux_set_iface_flags(drv->ioctl_sock, name, 1);
return i802_set_sta_vlan(priv, addr, name, 0);
} else {