diff --git a/src/ap/acs.c b/src/ap/acs.c index 11178a1f0..f12539fcd 100644 --- a/src/ap/acs.c +++ b/src/ap/acs.c @@ -942,6 +942,12 @@ static int acs_request_scan(struct hostapd_iface *iface) } *freq = 0; + if (params.freqs == freq) { + wpa_printf(MSG_ERROR, "ACS: No available channels found"); + os_free(params.freqs); + return -1; + } + iface->scan_cb = acs_scan_complete; wpa_printf(MSG_DEBUG, "ACS: Scanning %d / %d",