eiwd

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

commit 81d570572e9b1d670e5c5c8cf88d725143b1f3a4
parent 37cfec01a2930b0a4290ee552a56b1ab6e71133e
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Tue, 15 Jan 2019 19:14:54 -0800

wiphy: Add MAC randomization feature check API

Diffstat:
Msrc/wiphy.c | 5+++++
Msrc/wiphy.h | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/wiphy.c b/src/wiphy.c @@ -275,6 +275,11 @@ bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature) return wiphy->feature_flags & feature; } +bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy) +{ + return wiphy_has_feature(wiphy, NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR); +} + bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature) { return feature < sizeof(wiphy->ext_features) * 8 && diff --git a/src/wiphy.h b/src/wiphy.h @@ -46,6 +46,7 @@ struct wiphy *wiphy_find(int wiphy_id); const char *wiphy_get_path(struct wiphy *wiphy); uint32_t wiphy_get_supported_bands(struct wiphy *wiphy); bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss); +bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy); bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature); bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature); uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy);