3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-18 18:29:29 +01:00

scan: Add scan_freq_set param into scan_passive

This commit is contained in:
Tim Kourt 2019-03-22 14:17:39 -07:00 committed by Denis Kenzior
parent 0d3eb7d27b
commit 47900d34bc
2 changed files with 7 additions and 7 deletions

View File

@ -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, &params, trigger, notify,
userdata, destroy);

View File

@ -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,