]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add QCA vendor event for firmware statistics
authorChaithanya Garrepalli <cgarre@codeaurora.org>
Tue, 18 Aug 2020 16:11:20 +0000 (21:41 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 25 Aug 2020 09:13:12 +0000 (12:13 +0300)
Firmware statistics are received in the driver as opaque data. The host
target needs to send this opaque data to userspace wifistats
application. This new event is used to transfer this opaque data to the
application.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/qca-vendor.h

index b7dc1c7f87c68ebc255abe4c7341cbb0cc7fa02e..ce554fbe31b2bcb9ca48d8494ae844f01ccd69cd 100644 (file)
@@ -683,6 +683,17 @@ enum qca_radiotap_vendor_ids {
  * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is
  *     used to update SSID information in hostapd when it is updated in the
  *     driver. Uses the attribute NL80211_ATTR_SSID.
+ *
+ * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by
+ *     the driver to send opaque data from the firmware to userspace. The
+ *     driver sends an event to userspace whenever such data is received from
+ *     the firmware.
+ *
+ *     QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to
+ *     send this opaque data for this event.
+ *
+ *     The format of the opaque data is specific to the particular firmware
+ *     version and there is no guarantee of the format remaining same.
  */
 enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0,
@@ -867,6 +878,7 @@ enum qca_nl80211_vendor_subcmds {
        QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192,
        QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193,
        QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194,
+       QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195,
 };
 
 enum qca_wlan_vendor_attr {