eiwd

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

commit c972684e1ac7c1818c0ecf98be0fdc5f3e38d122
parent 06ed56e78f35f76d284ff7bfcf2684a4ed3598ab
Author: James Prestwood <prestwoj@gmail.com>
Date:   Fri, 29 Sep 2023 09:19:59 -0700

wiphy: remove wiphy_get_allowed_freqs

This was recently added but with the modifications to
wiphy_band_is_disabled() its no longer needed.

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

diff --git a/src/wiphy.c b/src/wiphy.c @@ -500,21 +500,6 @@ const struct scan_freq_set *wiphy_get_supported_freqs( return wiphy->supported_freqs; } -struct scan_freq_set *wiphy_get_allowed_freqs(const struct wiphy *wiphy, - uint32_t band_mask) -{ - struct scan_freq_set *allowed = scan_freq_set_clone( - wiphy->supported_freqs, - band_mask); - - if (!wiphy_constrain_freq_set(wiphy, allowed)) { - scan_freq_set_free(allowed); - allowed = NULL; - } - - return allowed; -} - static struct band *wiphy_get_band(const struct wiphy *wiphy, enum band_freq band) { switch (band) { diff --git a/src/wiphy.h b/src/wiphy.h @@ -100,8 +100,6 @@ 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( const struct wiphy *wiphy); -struct scan_freq_set *wiphy_get_allowed_freqs(const struct wiphy *wiphy, - uint32_t band_mask); const struct band_freq_attrs *wiphy_get_frequency_info( const struct wiphy *wiphy,