mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
scan: Add scan_bss_addr_cmp/eq
This commit is contained in:
parent
9b574b5931
commit
1b22af2052
12
src/scan.h
12
src/scan.h
@ -73,6 +73,18 @@ struct scan_parameters {
|
|||||||
const char *ssid; /* Used for direct probe request */
|
const char *ssid; /* Used for direct probe request */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static inline int scan_bss_addr_cmp(const struct scan_bss *a1,
|
||||||
|
const struct scan_bss *a2)
|
||||||
|
{
|
||||||
|
return memcmp(a1->addr, a2->addr, sizeof(a1->addr));
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline bool scan_bss_addr_eq(const struct scan_bss *a1,
|
||||||
|
const struct scan_bss *a2)
|
||||||
|
{
|
||||||
|
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, scan_trigger_func_t trigger,
|
||||||
scan_notify_func_t notify, void *userdata,
|
scan_notify_func_t notify, void *userdata,
|
||||||
scan_destroy_func_t destroy);
|
scan_destroy_func_t destroy);
|
||||||
|
Loading…
Reference in New Issue
Block a user