hostapd: Propagate ACS errors to iface setup
Otherwise hostapd might hang doing nothing anymore. Propagate ACS errors so we can fail gracefully. Signed-hostap: Helmut Schaa <helmut.schaa@googlemail.com>
This commit is contained in:
parent
0e1d0b370f
commit
3645fd5aae
3 changed files with 12 additions and 12 deletions
|
@ -758,10 +758,13 @@ static void hostapd_notify_bad_chans(struct hostapd_iface *iface)
|
|||
}
|
||||
|
||||
|
||||
int hostapd_acs_completed(struct hostapd_iface *iface)
|
||||
int hostapd_acs_completed(struct hostapd_iface *iface, int err)
|
||||
{
|
||||
int ret = -1;
|
||||
|
||||
if (err)
|
||||
goto out;
|
||||
|
||||
switch (hostapd_check_chans(iface)) {
|
||||
case HOSTAPD_CHAN_VALID:
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue