eiwd

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

commit 68257215351910c7629776517d6f96b14c76881c
parent fcdddf2b726439e049992878f90da607414a1a47
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Mon,  3 Feb 2020 17:37:08 -0600

wiphy: Add wiphy_get_id

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 @@ -283,6 +283,11 @@ const char *wiphy_get_path(struct wiphy *wiphy) return path; } +uint32_t wiphy_get_id(struct wiphy *wiphy) +{ + return wiphy->id; +} + uint32_t wiphy_get_supported_bands(struct wiphy *wiphy) { if (!wiphy->supported_freqs) diff --git a/src/wiphy.h b/src/wiphy.h @@ -54,6 +54,7 @@ void wiphy_update_from_genl(struct wiphy *wiphy, const char *name, bool wiphy_constrain_freq_set(const struct wiphy *wiphy, struct scan_freq_set *set); +uint32_t wiphy_get_id(struct wiphy *wiphy); const char *wiphy_get_path(struct wiphy *wiphy); uint32_t wiphy_get_supported_bands(struct wiphy *wiphy); const struct scan_freq_set *wiphy_get_supported_freqs(