From 877d9a02b021ef4ced6afe2008ea0185d9aa31ad Mon Sep 17 00:00:00 2001 From: Sunil Dutt Date: Thu, 13 Feb 2020 20:33:11 +0530 Subject: [PATCH] Additional get_sta_info attrs for Beacon/Probe Response/disconnect reasons This commit adds new attributes for getting the Probe Response frame IEs, Beacon frame IEs and the disconnection reason codes through get_sta_info vendor command. The host driver shall give this driver specific reason code through the disconnection reason code attribute QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 6be377e35..44d4e6902 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -8383,6 +8383,22 @@ enum qca_vendor_wlan_sta_guard_interval { * when queried in the connected state. When queried in the disconnected * state, this corresponds to the latest ANI level at the instance of * disconnection. + * + * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing + * the raw information elements from Beacon frames. Represents the Beacon frames + * of the current BSS in the connected state. When queried in the disconnected + * state, these IEs correspond to the last connected BSSID. + * + * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute + * containing the raw information elements from Probe Response frames. + * Represents the Probe Response frames of the current BSS in the connected + * state. When queried in the disconnected state, these IEs correspond to the + * last connected BSSID. + * + * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver + * disconnect reason for the last disconnection if the disconnection is + * triggered from the host driver. The values are referred from + * enum qca_disconnect_reason_codes. */ enum qca_wlan_vendor_attr_get_sta_info { QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, @@ -8421,6 +8437,9 @@ enum qca_wlan_vendor_attr_get_sta_info { QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, + QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36, + QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37, + QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38, /* keep last */ QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST,