3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

wiphy: add wiphy_supports_uapsd

This commit is contained in:
James Prestwood 2022-12-20 13:43:15 -08:00 committed by Denis Kenzior
parent 28f5297b78
commit 1d4130f41b
2 changed files with 10 additions and 0 deletions

View File

@ -137,6 +137,7 @@ struct wiphy {
bool registered : 1; bool registered : 1;
bool self_managed : 1; bool self_managed : 1;
bool ap_probe_resp_offload : 1; bool ap_probe_resp_offload : 1;
bool supports_uapsd : 1;
}; };
static struct l_queue *wiphy_list = NULL; static struct l_queue *wiphy_list = NULL;
@ -910,6 +911,11 @@ bool wiphy_country_is_unknown(struct wiphy *wiphy)
(cc[0] == 'X' && cc[1] == 'X')); (cc[0] == 'X' && cc[1] == 'X'));
} }
bool wiphy_supports_uapsd(const struct wiphy *wiphy)
{
return wiphy->supports_uapsd;
}
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy, const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
enum band_freq band, enum band_freq band,
size_t *size) size_t *size)
@ -1830,6 +1836,9 @@ static void wiphy_parse_attributes(struct wiphy *wiphy,
case NL80211_ATTR_PROBE_RESP_OFFLOAD: case NL80211_ATTR_PROBE_RESP_OFFLOAD:
wiphy->ap_probe_resp_offload = true; wiphy->ap_probe_resp_offload = true;
break; break;
case NL80211_ATTR_SUPPORT_AP_UAPSD:
wiphy->supports_uapsd = true;
break;
} }
} }
} }

View File

@ -137,6 +137,7 @@ const uint8_t *wiphy_get_rm_enabled_capabilities(struct wiphy *wiphy);
bool wiphy_get_rsnxe(const struct wiphy *wiphy, uint8_t *buf, size_t len); bool wiphy_get_rsnxe(const struct wiphy *wiphy, uint8_t *buf, size_t len);
void wiphy_get_reg_domain_country(struct wiphy *wiphy, char *out); void wiphy_get_reg_domain_country(struct wiphy *wiphy, char *out);
bool wiphy_country_is_unknown(struct wiphy *wiphy); bool wiphy_country_is_unknown(struct wiphy *wiphy);
bool wiphy_supports_uapsd(const struct wiphy *wiphy);
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy, const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
enum band_freq band, enum band_freq band,