qcacmn: Add a vendor command for medium assessment
Introduce a vendor command for medium assessment through QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS. Change-Id: Iacce974c862a9899de853be70858a47ae719b541 CRs-Fixed: 2766103
This commit is contained in:
@@ -437,6 +437,10 @@
|
||||
* the host driver. The band configurations obtained are referred through
|
||||
* QCA_WLAN_VENDOR_ATTR_SETBAND_MASK.
|
||||
*
|
||||
* @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium
|
||||
* assessment.
|
||||
* Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess.
|
||||
*
|
||||
* @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.
|
||||
@@ -683,6 +687,7 @@ enum qca_nl80211_vendor_subcmds {
|
||||
QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190,
|
||||
QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191,
|
||||
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,
|
||||
QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196,
|
||||
@@ -9844,6 +9849,99 @@ enum qca_wlan_vendor_attr_config_tspec {
|
||||
QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum qca_wlan_medium_assess_type - Type of medium assess request
|
||||
*
|
||||
* Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE.
|
||||
*/
|
||||
enum qca_wlan_medium_assess_type {
|
||||
QCA_WLAN_MEDIUM_ASSESS_CCA = 0,
|
||||
QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum qca_wlan_vendor_attr_medium_assess - Attributes used by
|
||||
* %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE:
|
||||
* u8 attribute. Mandatory in all kinds of medium assess requests/responses.
|
||||
* Specify the type of medium assess request and indicate its type in response.
|
||||
* Possible values are defined in enum qca_wlan_medium_assess_type.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD:
|
||||
* u32 attribute. Mandatory in CCA request.
|
||||
* Specify the assessment period in terms of seconds. Assessment result will be
|
||||
* sent as the response to the CCA request after the assessment period.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT:
|
||||
* u32 attribute. Mandatory in response to CCA request.
|
||||
* Total timer tick count of the assessment cycle.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT:
|
||||
* u32 attribute. Mandatory in response to CCA request.
|
||||
* Timer tick count of idle time in the assessment cycle.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT:
|
||||
* u32 attribute. Mandatory in response to CCA request.
|
||||
* Timer tick count of Intra BSS traffic RX time in the assessment cycle.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT:
|
||||
* u32 attribute. Mandatory in response to CCA request.
|
||||
* Timer tick count of Overlapping BSS traffic RX time in the assessment cycle.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI:
|
||||
* s32 attribute. Mandatory in response to CCA request.
|
||||
* Maximum RSSI of Intra BSS traffic in the assessment cycle.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI:
|
||||
* s32 attribute. Mandatory in response to CCA request.
|
||||
* Minimum RSSI of Intra BSS traffic in the assessment cycle.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE:
|
||||
* u8 attribute. Mandatory in congestion report request.
|
||||
* 1-enable 0-disable.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD:
|
||||
* u8 attribute. Mandatory in congestion report enable request and will be
|
||||
* ignored if present in congestion report disable request. Possible values are
|
||||
* 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type
|
||||
* QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if
|
||||
* congestion percentage reaches the configured threshold.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL:
|
||||
* u8 attribute. Optional in congestion report enable request and will be
|
||||
* ignored if present in congestion report disable request.
|
||||
* Specify the interval of congestion report event in terms of seconds. Possible
|
||||
* values are 1-255. Default value 1 will be used if this attribute is omitted
|
||||
* or using invalid values.
|
||||
*
|
||||
* @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE:
|
||||
* u8 attribute. Mandatory in congestion report event.
|
||||
* Indicate the actual congestion percentage. Possible values are 0-100.
|
||||
*/
|
||||
enum qca_wlan_vendor_attr_medium_assess {
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1,
|
||||
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8,
|
||||
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12,
|
||||
|
||||
/* keep last */
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST,
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX =
|
||||
QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes
|
||||
* used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command.
|
||||
|
@@ -226,6 +226,7 @@ enum qca_nl80211_vendor_subcmds_index {
|
||||
QCA_NL80211_VENDOR_SUBCMD_OEM_DATA_INDEX,
|
||||
QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_INDEX,
|
||||
QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO_INDEX,
|
||||
QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS_INDEX,
|
||||
QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID_INDEX,
|
||||
QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS_INDEX,
|
||||
QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS_INDEX,
|
||||
|
Reference in New Issue
Block a user