diff --git a/src/scan.c b/src/scan.c index e81bc343..42d120ce 100644 --- a/src/scan.c +++ b/src/scan.c @@ -485,11 +485,11 @@ done: return sr->id; } -uint32_t scan_passive(uint32_t ifindex, scan_trigger_func_t trigger, - scan_notify_func_t notify, void *userdata, - scan_destroy_func_t destroy) +uint32_t scan_passive(uint32_t ifindex, struct scan_freq_set *freqs, + scan_trigger_func_t trigger, scan_notify_func_t notify, + void *userdata, scan_destroy_func_t destroy) { - struct scan_parameters params = {}; + struct scan_parameters params = { .freqs = freqs }; return scan_common(ifindex, true, ¶ms, trigger, notify, userdata, destroy); diff --git a/src/scan.h b/src/scan.h index 1b4021ac..23c52ac0 100644 --- a/src/scan.h +++ b/src/scan.h @@ -89,9 +89,9 @@ static inline bool scan_bss_addr_eq(const struct scan_bss *a1, return !memcmp(a1->addr, a2->addr, sizeof(a1->addr)); } -uint32_t scan_passive(uint32_t ifindex, scan_trigger_func_t trigger, - scan_notify_func_t notify, void *userdata, - scan_destroy_func_t destroy); +uint32_t scan_passive(uint32_t ifindex, struct scan_freq_set *freqs, + scan_trigger_func_t trigger, scan_notify_func_t notify, + void *userdata, scan_destroy_func_t destroy); uint32_t scan_active(uint32_t ifindex, uint8_t *extra_ie, size_t extra_ie_size, scan_trigger_func_t trigger, scan_notify_func_t notify, void *userdata,