eiwd

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

commit 06ec89d6b83c51b3335e69cb879be0786c7fe401
parent 59d36cf24f7698ed936c9b23ee559715870c7a45
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 28 Sep 2022 12:48:51 -0700

wiphy: add wiphy_supports_probe_resp_offload

Parse the AP probe response offload attribute during the dump. If
set this indicates the driver expects the probe response attribute
to be included with START_AP.

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

diff --git a/src/wiphy.c b/src/wiphy.c @@ -138,6 +138,7 @@ struct wiphy { bool blacklisted : 1; bool registered : 1; bool self_managed : 1; + bool ap_probe_resp_offload : 1; }; static struct l_queue *wiphy_list = NULL; @@ -473,6 +474,11 @@ const struct scan_freq_set *wiphy_get_disabled_freqs(const struct wiphy *wiphy) return wiphy->disabled_freqs; } +bool wiphy_supports_probe_resp_offload(struct wiphy *wiphy) +{ + return wiphy->ap_probe_resp_offload; +} + bool wiphy_can_transition_disable(struct wiphy *wiphy) { /* @@ -1644,6 +1650,9 @@ static void wiphy_parse_attributes(struct wiphy *wiphy, case NL80211_ATTR_WIPHY_SELF_MANAGED_REG: wiphy->self_managed = true; break; + case NL80211_ATTR_PROBE_RESP_OFFLOAD: + wiphy->ap_probe_resp_offload = true; + break; } } } diff --git a/src/wiphy.h b/src/wiphy.h @@ -97,6 +97,7 @@ uint32_t wiphy_get_supported_bands(struct wiphy *wiphy); const struct scan_freq_set *wiphy_get_supported_freqs( const struct wiphy *wiphy); const struct scan_freq_set *wiphy_get_disabled_freqs(const struct wiphy *wiphy); +bool wiphy_supports_probe_resp_offload(struct wiphy *wiphy); bool wiphy_can_transition_disable(struct wiphy *wiphy); bool wiphy_can_offload(struct wiphy *wiphy); bool wiphy_supports_cmds_auth_assoc(struct wiphy *wiphy);