diff options
| author | Nazar Mokrynskyi <nazar@mokrynskyi.com> | 2023-11-14 05:49:28 +0200 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2023-11-19 19:10:42 +0100 |
| commit | 684d1a5c359f6bf022b7f526672373d69967bced (patch) | |
| tree | 83b1f086d2263d7eb6d2cf6beac29437c7e48624 /package/network | |
| parent | b10768476f9dc5178d0038e3877b14f95184e46e (diff) | |
| download | upstream-684d1a5c359f6bf022b7f526672373d69967bced.tar.gz upstream-684d1a5c359f6bf022b7f526672373d69967bced.tar.bz2 upstream-684d1a5c359f6bf022b7f526672373d69967bced.zip | |
hostapd: fix undeclared variable iface_name
Signed-off-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
Diffstat (limited to 'package/network')
| -rw-r--r-- | package/network/services/hostapd/files/hostapd.uc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index 593840cca88..750fd535a4a 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -278,12 +278,12 @@ function iface_reload_config(phydev, config, old_config) return false; let iface = hostapd.interfaces[phy]; + let iface_name = old_config.bss[0].ifname; if (!iface) { hostapd.printf(`Could not find previous interface ${iface_name}`); return false; } - let iface_name = old_config.bss[0].ifname; let first_bss = hostapd.bss[iface_name]; if (!first_bss) { hostapd.printf(`Could not find bss of previous interface ${iface_name}`); |
