summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-05-02 23:38:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-05-02 23:38:15 +0000
commit4c1eacdd5aa4bbe4829c037d873b3e6d519be005 (patch)
tree061a380ec76a129f160c925784587dc58d0ea9cd /package
parent99757d3336cbbee1533268ffba158bccdd4e31ee (diff)
downloadmtk-20170518-4c1eacdd5aa4bbe4829c037d873b3e6d519be005.zip
mtk-20170518-4c1eacdd5aa4bbe4829c037d873b3e6d519be005.tar.gz
mtk-20170518-4c1eacdd5aa4bbe4829c037d873b3e6d519be005.tar.bz2
hostapd: fix line reordering leading to segfaults
SVN-Revision: 21323
Diffstat (limited to 'package')
-rw-r--r--package/hostapd/patches/390-nl80211_fixes.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/hostapd/patches/390-nl80211_fixes.patch b/package/hostapd/patches/390-nl80211_fixes.patch
index 2413a12..fdac284 100644
--- a/package/hostapd/patches/390-nl80211_fixes.patch
+++ b/package/hostapd/patches/390-nl80211_fixes.patch
@@ -99,11 +99,11 @@
#endif /* HOSTAPD */
if (addr && iftype != NL80211_IFTYPE_MONITOR &&
-@@ -4765,6 +4761,7 @@ static void *i802_init(struct hostapd_da
- if (bss == NULL)
+@@ -4766,6 +4762,7 @@ static void *i802_init(struct hostapd_da
return NULL;
-+ drv->nlmode = NL80211_IFTYPE_AP;
drv = bss->drv;
++ drv->nlmode = NL80211_IFTYPE_AP;
if (linux_br_get(brname, params->ifname) == 0) {
wpa_printf(MSG_DEBUG, "nl80211: Interface %s is in bridge %s",
+ params->ifname, brname);