eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1b22af2052c8d9bb97e4587ffc85acfc96b06dd6
parent 9b574b593190eb1776c3df1ae33b148443576160
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Sat,  1 Sep 2018 15:48:18 -0500

scan: Add scan_bss_addr_cmp/eq

Diffstat:
Msrc/scan.h | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/scan.h b/src/scan.h @@ -73,6 +73,18 @@ struct scan_parameters { 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, scan_notify_func_t notify, void *userdata, scan_destroy_func_t destroy);