mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 14:47:46 +01:00
hostapd: fix line reordering leading to segfaults
SVN-Revision: 21323
This commit is contained in:
parent
99757d3336
commit
4c1eacdd5a
@ -99,11 +99,11 @@
|
|||||||
#endif /* HOSTAPD */
|
#endif /* HOSTAPD */
|
||||||
|
|
||||||
if (addr && iftype != NL80211_IFTYPE_MONITOR &&
|
if (addr && iftype != NL80211_IFTYPE_MONITOR &&
|
||||||
@@ -4765,6 +4761,7 @@ static void *i802_init(struct hostapd_da
|
@@ -4766,6 +4762,7 @@ static void *i802_init(struct hostapd_da
|
||||||
if (bss == NULL)
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
+ drv->nlmode = NL80211_IFTYPE_AP;
|
|
||||||
drv = bss->drv;
|
drv = bss->drv;
|
||||||
|
+ drv->nlmode = NL80211_IFTYPE_AP;
|
||||||
if (linux_br_get(brname, params->ifname) == 0) {
|
if (linux_br_get(brname, params->ifname) == 0) {
|
||||||
wpa_printf(MSG_DEBUG, "nl80211: Interface %s is in bridge %s",
|
wpa_printf(MSG_DEBUG, "nl80211: Interface %s is in bridge %s",
|
||||||
|
params->ifname, brname);
|
||||||
|
Loading…
Reference in New Issue
Block a user