mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01: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:
parent
59d36cf24f
commit
06ec89d6b8
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user