commit 1d4130f41b2ef26b12d117d8e27329e020c25b66
parent 28f5297b7884bd1fe3e2a11058cdc0169ac09787
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 20 Dec 2022 13:43:15 -0800
wiphy: add wiphy_supports_uapsd
Diffstat:
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/wiphy.c b/src/wiphy.c
@@ -137,6 +137,7 @@ struct wiphy {
bool registered : 1;
bool self_managed : 1;
bool ap_probe_resp_offload : 1;
+ bool supports_uapsd : 1;
};
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'));
}
+bool wiphy_supports_uapsd(const struct wiphy *wiphy)
+{
+ return wiphy->supports_uapsd;
+}
+
const uint8_t *wiphy_get_ht_capabilities(const struct wiphy *wiphy,
enum band_freq band,
size_t *size)
@@ -1830,6 +1836,9 @@ static void wiphy_parse_attributes(struct wiphy *wiphy,
case NL80211_ATTR_PROBE_RESP_OFFLOAD:
wiphy->ap_probe_resp_offload = true;
break;
+ case NL80211_ATTR_SUPPORT_AP_UAPSD:
+ wiphy->supports_uapsd = true;
+ break;
}
}
}
diff --git a/src/wiphy.h b/src/wiphy.h
@@ -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);
void wiphy_get_reg_domain_country(struct wiphy *wiphy, char *out);
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,
enum band_freq band,