mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
scan: add scan_passive_full variant
Just like active scans, add an API for passive scans which take in the full scan_parameters structure.
This commit is contained in:
parent
5528403d77
commit
4cee10ec50
10
src/scan.c
10
src/scan.c
@ -556,6 +556,16 @@ uint32_t scan_passive(uint64_t wdev_id, struct scan_freq_set *freqs,
|
||||
userdata, destroy);
|
||||
}
|
||||
|
||||
uint32_t scan_passive_full(uint64_t wdev_id,
|
||||
const struct scan_parameters *params,
|
||||
scan_trigger_func_t trigger,
|
||||
scan_notify_func_t notify, void *userdata,
|
||||
scan_destroy_func_t destroy)
|
||||
{
|
||||
return scan_common(wdev_id, true, params, trigger,
|
||||
notify, userdata, destroy);
|
||||
}
|
||||
|
||||
uint32_t scan_active(uint64_t wdev_id, uint8_t *extra_ie, size_t extra_ie_size,
|
||||
scan_trigger_func_t trigger,
|
||||
scan_notify_func_t notify, void *userdata,
|
||||
|
@ -102,6 +102,11 @@ static inline bool scan_bss_addr_eq(const struct scan_bss *a1,
|
||||
uint32_t scan_passive(uint64_t wdev_id, 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_passive_full(uint64_t wdev_id,
|
||||
const struct scan_parameters *params,
|
||||
scan_trigger_func_t trigger,
|
||||
scan_notify_func_t notify, void *userdata,
|
||||
scan_destroy_func_t destroy);
|
||||
uint32_t scan_active(uint64_t wdev_id, uint8_t *extra_ie, size_t extra_ie_size,
|
||||
scan_trigger_func_t trigger,
|
||||
scan_notify_func_t notify, void *userdata,
|
||||
|
Loading…
Reference in New Issue
Block a user