diff --git a/src/wiphy.c b/src/wiphy.c index 28d4b66e..6fdd3df5 100644 --- 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 index 9cd18451..2c6bf86b 100644 --- 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);