summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiny Kumari <quic_ainykuma@quicinc.com>2023-03-15 15:19:33 +0530
committerJouni Malinen <j@w1.fi>2023-04-03 23:04:13 +0300
commit44c38af04f635eca31fbba3744553d2c796a6d25 (patch)
tree48ab0e50e535b4b7a6c81fbce4cef2fd996cee32
parentbb4560252d2f3c2d152094bfaf6a96bdb8f35776 (diff)
downloadhostap-44c38af04f635eca31fbba3744553d2c796a6d25.tar.gz
Add QCA vendor interface to get connected channels utilization
Add a new vendor command to trigger computation of connected channel statistics such as channel utilization in STA mode. Signed-off-by: Ainy Kumari <quic_ainykuma@quicinc.com> Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
-rw-r--r--src/common/qca-vendor.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h
index 83cb21eef..3b1abccbd 100644
--- a/src/common/qca-vendor.h
+++ b/src/common/qca-vendor.h
@@ -899,6 +899,22 @@ enum qca_radiotap_vendor_ids {
* configure and fetch the state information of the MLO links affiliated
* with the STA interface. The attributes used with this command are
* defined in enum qca_wlan_vendor_attr_mlo_link_state.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this
+ * vendor subcommand to trigger channel utilization measurement on entire
+ * channel width of the connected channel(s). For MLO connection, connected
+ * channel utilization measurement shall be done on all the MLO links.
+ * The driver may use regular scan or wideband energy detection feature
+ * based on the hardware capability for connected channel(s) utilization
+ * measurement. The driver indicates the connected channel(s) utilization
+ * measurement completion as an asynchronous event with this command ID to
+ * userspace. Upon receiving this event, userspace can use
+ * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current
+ * connected channel(s) and can derive the channel utilization percentage
+ * (CU) of each 20 MHz sub-channel of the entire connected channel using
+ * %NL80211_CMD_GET_SURVEY response.
+ * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME.
+ * This command is only used for STA mode.
*/
enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -1110,6 +1126,7 @@ enum qca_nl80211_vendor_subcmds {
QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225,
QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226,
QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227,
+ QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228,
};
/* Compatibility defines for previously used subcmd names.