3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 11:28:38 +02:00

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.
This commit is contained in:
James Prestwood 2022-09-28 12:48:51 -07:00 committed by Denis Kenzior
parent 59d36cf24f
commit 06ec89d6b8
2 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,7 @@ struct wiphy {
bool blacklisted : 1; bool blacklisted : 1;
bool registered : 1; bool registered : 1;
bool self_managed : 1; bool self_managed : 1;
bool ap_probe_resp_offload : 1;
}; };
static struct l_queue *wiphy_list = NULL; 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; 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) 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: case NL80211_ATTR_WIPHY_SELF_MANAGED_REG:
wiphy->self_managed = true; wiphy->self_managed = true;
break; break;
case NL80211_ATTR_PROBE_RESP_OFFLOAD:
wiphy->ap_probe_resp_offload = true;
break;
} }
} }
} }

View File

@ -97,6 +97,7 @@ uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
const struct scan_freq_set *wiphy_get_supported_freqs( const struct scan_freq_set *wiphy_get_supported_freqs(
const struct wiphy *wiphy); const struct wiphy *wiphy);
const struct scan_freq_set *wiphy_get_disabled_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_transition_disable(struct wiphy *wiphy);
bool wiphy_can_offload(struct wiphy *wiphy); bool wiphy_can_offload(struct wiphy *wiphy);
bool wiphy_supports_cmds_auth_assoc(struct wiphy *wiphy); bool wiphy_supports_cmds_auth_assoc(struct wiphy *wiphy);