mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-19 02:39:29 +01:00
scan: Add scan_freq_set param into scan_passive
This commit is contained in:
parent
0d3eb7d27b
commit
47900d34bc
@ -485,11 +485,11 @@ done:
|
|||||||
return sr->id;
|
return sr->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t scan_passive(uint32_t ifindex, scan_trigger_func_t trigger,
|
uint32_t scan_passive(uint32_t ifindex, struct scan_freq_set *freqs,
|
||||||
scan_notify_func_t notify, void *userdata,
|
scan_trigger_func_t trigger, scan_notify_func_t notify,
|
||||||
scan_destroy_func_t destroy)
|
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,
|
return scan_common(ifindex, true, ¶ms, trigger, notify,
|
||||||
userdata, destroy);
|
userdata, destroy);
|
||||||
|
@ -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));
|
return !memcmp(a1->addr, a2->addr, sizeof(a1->addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t scan_passive(uint32_t ifindex, scan_trigger_func_t trigger,
|
uint32_t scan_passive(uint32_t ifindex, struct scan_freq_set *freqs,
|
||||||
scan_notify_func_t notify, void *userdata,
|
scan_trigger_func_t trigger, scan_notify_func_t notify,
|
||||||
scan_destroy_func_t destroy);
|
void *userdata, scan_destroy_func_t destroy);
|
||||||
uint32_t scan_active(uint32_t ifindex, uint8_t *extra_ie, size_t extra_ie_size,
|
uint32_t scan_active(uint32_t ifindex, uint8_t *extra_ie, size_t extra_ie_size,
|
||||||
scan_trigger_func_t trigger,
|
scan_trigger_func_t trigger,
|
||||||
scan_notify_func_t notify, void *userdata,
|
scan_notify_func_t notify, void *userdata,
|
||||||
|
Loading…
Reference in New Issue
Block a user