From 47900d34bcca5948518b9a9c78be9667c889d22f Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Fri, 22 Mar 2019 14:17:39 -0700 Subject: [PATCH] scan: Add scan_freq_set param into scan_passive --- src/scan.c | 8 ++++---- src/scan.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) 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,