123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813 |
- /*
- * Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
- *
- * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
- *
- *
- * Permission to use, copy, modify, and/or distribute this software for
- * any purpose with or without fee is hereby granted, provided that the
- * above copyright notice and this permission notice appear in all
- * copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
- * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
- * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
- * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- */
- /*
- * This file was originally distributed by Qualcomm Atheros, Inc.
- * under proprietary terms before Copyright ownership was assigned
- * to the Linux Foundation.
- */
- #ifndef _WMI_SERVICES_H_
- #define _WMI_SERVICES_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef enum {
- WMI_SERVICE_BEACON_OFFLOAD=0, /* beacon offload */
- WMI_SERVICE_SCAN_OFFLOAD=1, /* scan offload */
- WMI_SERVICE_ROAM_SCAN_OFFLOAD=2, /* roam scan offload */
- WMI_SERVICE_BCN_MISS_OFFLOAD=3, /* beacon miss offload */
- WMI_SERVICE_STA_PWRSAVE=4, /* fake sleep + basic power save */
- WMI_SERVICE_STA_ADVANCED_PWRSAVE=5, /* uapsd, pspoll, force sleep */
- WMI_SERVICE_AP_UAPSD=6, /* uapsd on AP */
- WMI_SERVICE_AP_DFS=7, /* DFS on AP */
- WMI_SERVICE_11AC=8, /* supports 11ac */
- WMI_SERVICE_BLOCKACK=9, /* Supports triggering ADDBA/DELBA from host*/
- WMI_SERVICE_PHYERR=10, /* PHY error */
- WMI_SERVICE_BCN_FILTER=11, /* Beacon filter support */
- WMI_SERVICE_RTT=12, /* RTT (round trip time) support */
- WMI_SERVICE_WOW=13, /* WOW Support */
- WMI_SERVICE_RATECTRL_CACHE=14, /* Rate-control caching */
- WMI_SERVICE_IRAM_TIDS=15, /* TIDs in IRAM */
- WMI_SERVICE_ARPNS_OFFLOAD=16, /* ARP NS Offload support for STA vdev */
- WMI_SERVICE_NLO=17, /* Network list offload service */
- WMI_SERVICE_GTK_OFFLOAD=18, /* GTK offload */
- WMI_SERVICE_SCAN_SCH=19, /* Scan Scheduler Service */
- WMI_SERVICE_CSA_OFFLOAD=20, /* CSA offload service */
- WMI_SERVICE_CHATTER=21, /* Chatter service */
- WMI_SERVICE_COEX_FREQAVOID=22, /* FW report freq range to avoid */
- WMI_SERVICE_PACKET_POWER_SAVE=23, /* packet power save service */
- WMI_SERVICE_FORCE_FW_HANG=24, /* Service to test the firmware recovery mechanism */
- WMI_SERVICE_GPIO=25, /* GPIO service */
- WMI_SERVICE_STA_DTIM_PS_MODULATED_DTIM=26, /* Modulated DTIM support */
- WMI_STA_UAPSD_BASIC_AUTO_TRIG=27, /* Basic version of station UAPSD AC Trigger Generation Method with
- * variable trigger periods (service, delay, and suspend intervals) */
- WMI_STA_UAPSD_VAR_AUTO_TRIG=28, /* Station UAPSD AC Trigger Generation Method with variable
- * trigger periods (service, delay, and suspend intervals) */
- WMI_SERVICE_STA_KEEP_ALIVE=29, /* Service to support the STA KEEP ALIVE mechanism */
- WMI_SERVICE_TX_ENCAP=30, /* Packet type for TX encapsulation */
- WMI_SERVICE_AP_PS_DETECT_OUT_OF_SYNC=31, /* detect out-of-sync sleeping stations */
- WMI_SERVICE_EARLY_RX=32, /* adaptive early-rx feature */
- WMI_SERVICE_STA_SMPS=33, /* STA MIMO-PS */
- WMI_SERVICE_FWTEST=34, /* Firmware test service */
- WMI_SERVICE_STA_WMMAC=35, /* STA WMMAC */
- WMI_SERVICE_TDLS=36, /* TDLS support */
- WMI_SERVICE_BURST=37, /* SIFS spaced burst support */
- WMI_SERVICE_MCC_BCN_INTERVAL_CHANGE=38, /* Dynamic beaocn interval change for SAP/P2p GO in MCC scenario */
- WMI_SERVICE_ADAPTIVE_OCS=39, /* Service to support adaptive off-channel scheduler */
- WMI_SERVICE_BA_SSN_SUPPORT=40, /* target will provide Sequence number for the peer/tid combo */
- WMI_SERVICE_FILTER_IPSEC_NATKEEPALIVE=41,
- WMI_SERVICE_WLAN_HB=42, /* wlan HB service */
- WMI_SERVICE_LTE_ANT_SHARE_SUPPORT=43, /* support LTE/WLAN antenna sharing */
- WMI_SERVICE_BATCH_SCAN=44, /* Service to support batch scan */
- WMI_SERVICE_QPOWER=45, /* QPower service */
- WMI_SERVICE_PLMREQ=46,
- WMI_SERVICE_THERMAL_MGMT=47, /* thermal throttling support,
- * compared with
- * WMI_SERVICE_THERM_THROT,
- * this service only reports
- * current temperature to host,
- * and host will do the thermal
- * throttling. */
- WMI_SERVICE_RMC=48, /* RMC support */
- WMI_SERVICE_MHF_OFFLOAD=49, /* multi-hop forwarding offload */
- WMI_SERVICE_COEX_SAR=50, /* target support SAR tx limit from WMI_PDEV_PARAM_TXPOWER_LIMITxG */
- WMI_SERVICE_BCN_TXRATE_OVERRIDE=51, /* Will support the bcn/prb rsp rate override */
- WMI_SERVICE_NAN=52, /* Neighbor Awareness Network */
- WMI_SERVICE_L1SS_STAT=53, /* L1SS statistics counter report */
- WMI_SERVICE_ESTIMATE_LINKSPEED=54, /* Linkspeed Estimation per peer */
- WMI_SERVICE_OBSS_SCAN=55, /* Service to support OBSS scan */
- WMI_SERVICE_TDLS_OFFCHAN=56, /* TDLS off channel support */
- WMI_SERVICE_TDLS_UAPSD_BUFFER_STA=57, /* TDLS UAPSD Buffer STA support */
- WMI_SERVICE_TDLS_UAPSD_SLEEP_STA=58, /* TDLS UAPSD Sleep STA support */
- WMI_SERVICE_IBSS_PWRSAVE=59, /* IBSS power save support */
- WMI_SERVICE_LPASS=60, /* Service to support LPASS */
- WMI_SERVICE_EXTSCAN=61, /* Extended Scans */
- WMI_SERVICE_D0WOW=62, /* D0-WOW Support */
- WMI_SERVICE_HSOFFLOAD=63, /* Hotspot offload feature Support */
- WMI_SERVICE_ROAM_HO_OFFLOAD=64, /* roam handover offload */
- WMI_SERVICE_RX_FULL_REORDER=65, /* target-based Rx full reorder */
- WMI_SERVICE_DHCP_OFFLOAD=66, /* DHCP offload support */
- WMI_SERVICE_STA_RX_IPA_OFFLOAD_SUPPORT=67, /* STA RX DATA offload to IPA support */
- WMI_SERVICE_MDNS_OFFLOAD=68, /* mDNS responder offload support */
- WMI_SERVICE_SAP_AUTH_OFFLOAD=69, /* softap auth offload */
- WMI_SERVICE_DUAL_BAND_SIMULTANEOUS_SUPPORT=70, /* Dual Band Simultaneous support */
- WMI_SERVICE_OCB=71, /* OCB mode support */
- WMI_SERVICE_AP_ARPNS_OFFLOAD=72, /* arp offload support for ap mode vdev */
- WMI_SERVICE_PER_BAND_CHAINMASK_SUPPORT=73, /* Per band chainmask support */
- WMI_SERVICE_PACKET_FILTER_OFFLOAD=74, /* Per vdev packet filters */
- WMI_SERVICE_MGMT_TX_HTT=75, /* Mgmt Tx via HTT interface */
- WMI_SERVICE_MGMT_TX_WMI=76, /* Mgmt Tx via WMI interface */
- WMI_SERVICE_EXT_MSG=77, /* WMI_SERVICE_READY_EXT msg follows */
- WMI_SERVICE_MAWC=78, /* Motion Aided WiFi Connectivity (MAWC)*/
- WMI_SERVICE_PEER_ASSOC_CONF=79, /* target will send ASSOC_CONF after ASSOC_CMD is processed */
- WMI_SERVICE_EGAP=80, /* enhanced green ap support */
- WMI_SERVICE_STA_PMF_OFFLOAD=81, /* FW supports 11W PMF Offload for STA */
- WMI_SERVICE_UNIFIED_WOW_CAPABILITY=82, /* FW supports unified D0 and D3 wow */
- WMI_SERVICE_ENHANCED_PROXY_STA=83, /* Enhanced ProxySTA mode support */
- WMI_SERVICE_ATF=84, /* Air Time Fairness support */
- WMI_SERVICE_COEX_GPIO=85, /* BTCOEX GPIO support */
- WMI_SERVICE_AUX_SPECTRAL_INTF=86, /* Aux Radio enhancement support for ignoring spectral scan intf from main radios */
- WMI_SERVICE_AUX_CHAN_LOAD_INTF=87, /* Aux Radio enhancement support for ignoring chan load intf from main radios*/
- WMI_SERVICE_BSS_CHANNEL_INFO_64=88, /* BSS channel info (freq, noise floor, 64-bit counters) event support */
- WMI_SERVICE_ENTERPRISE_MESH=89, /* Enterprise MESH Service Support */
- WMI_SERVICE_RESTRT_CHNL_SUPPORT=90, /* Restricted Channel Support */
- WMI_SERVICE_BPF_OFFLOAD=91, /* FW supports bpf offload */
- WMI_SERVICE_SYNC_DELETE_CMDS=92, /* FW sends response event for Peer, Vdev delete commands */
- WMI_SERVICE_SMART_ANTENNA_SW_SUPPORT=93,
- WMI_SERVICE_SMART_ANTENNA_HW_SUPPORT=94,
- WMI_SERVICE_RATECTRL_LIMIT_MAX_MIN_RATES=95, /* allow per-peer tx MCS min/max limits by host */
- WMI_SERVICE_NAN_DATA=96, /* FW supports NAN data */
- WMI_SERVICE_NAN_RTT=97, /* FW supports NAN RTT */
- WMI_SERVICE_11AX=98, /* FW supports 802.11ax */
- /* WMI_SERVICE_DEPRECATED_REPLACE
- * FW supports these new WMI commands, to be used rather than
- * deprecated matching commands:
- * - WMI_PDEV_SET_PCL_CMDID (vs. WMI_SOC_SET_PCL_CMDID)
- * - WMI_PDEV_SET_HW_MODE_CMDID (vs. WMI_SOC_SET_HW_MODE_CMDID)
- * - WMI_PDEV_SET_MAC_CONFIG_CMDID (vs. WMI_SOC_SET_DUAL_MAC_CONFIG_CMDID)
- * - WMI_PDEV_SET_ANTENNA_MODE_CMDID (vs. WMI_SOC_SET_ANTENNA_MODE_CMDID)
- * - WMI_VDEV_SET_DSCP_TID_MAP_CMDID (vs. WMI_VDEV_SET_WMM_PARAMS_CMDID)
- */
- WMI_SERVICE_DEPRECATED_REPLACE=99,
- WMI_SERVICE_TDLS_CONN_TRACKER_IN_HOST_MODE=100, /* FW supports a new mode that allows to run connection tracker in host */
- WMI_SERVICE_ENHANCED_MCAST_FILTER=101, /* FW supports enhanced multicast filtering (of mcast IP inside ucast WLAN) */
- WMI_SERVICE_PERIODIC_CHAN_STAT_SUPPORT=102, /* periodic channel stats service */
- WMI_SERVICE_MESH_11S=103, /* 11s mesh service support */
- WMI_SERVICE_HALF_RATE_QUARTER_RATE_SUPPORT=104, /* FW+HW supports 10 MHz (half rate) and 5 MHz (quarter rate) channel bandwidth */
- WMI_SERVICE_VDEV_RX_FILTER=105, /* Support per-vdev specs of which rx frames to filter out */
- WMI_SERVICE_P2P_LISTEN_OFFLOAD_SUPPORT=106,
- WMI_SERVICE_MARK_FIRST_WAKEUP_PACKET=107, /* FW supports marking the first data packet which wakes the host from suspend */
- WMI_SERVICE_MULTIPLE_MCAST_FILTER_SET=108, /* FW supports command that can add/delete multiple mcast filters */
- /* WMI_SERVICE_HOST_MANAGED_RX_REORDER -
- * FW supports host-managed RX reorder.
- * Host managed RX reorder involves RX BA state machine handling
- * on peer/TID basis, REO configuration for HW based reordering/PN
- * check and processing reorder exceptions generated by HW.
- */
- WMI_SERVICE_HOST_MANAGED_RX_REORDER=109,
- /* Specify whether the target supports the following WMI messages for
- * reading / writing its flash memory:
- * WMI_READ_DATA_FROM_FLASH_CMDID,
- * WMI_READ_DATA_FROM_FLASH_EVENTID,
- * WMI_TRANSFER_DATA_TO_FLASH_CMDID,
- * WMI_TRANSFER_DATA_TO_FLASH_COMPLETE_EVENTID,
- */
- WMI_SERVICE_FLASH_RDWR_SUPPORT=110,
- WMI_SERVICE_WLAN_STATS_REPORT=111, /* support WLAN stats report */
- /* WMI_SERVICE_TX_MSDU_ID_NEW_PARTITION_SUPPORT -
- * FW supports bigger MSDU ID partition which is defined as HTT_TX_IPA_NEW_MSDU_ID_SPACE_BEGIN
- * When both host and FW support new partition, FW uses HTT_TX_IPA_NEW_MSDU_ID_SPACE_BEGIN
- * If host doesn't support, FW falls back to HTT_TX_IPA_MSDU_ID_SPACE_BEGIN
- * Handshaking is done through WMI_INIT and WMI service ready
- */
- WMI_SERVICE_TX_MSDU_ID_NEW_PARTITION_SUPPORT=112, /* support bigger MSDU ID partition */
- WMI_SERVICE_DFS_PHYERR_OFFLOAD=113,
- WMI_SERVICE_RCPI_SUPPORT=114,
- WMI_SERVICE_FW_MEM_DUMP_SUPPORT=115, /* Support FW Memory dump */
- WMI_SERVICE_PEER_STATS_INFO=116, /* support per peer stats info */
- WMI_SERVICE_REGULATORY_DB=117, /* support regulatory database in FW */
- WMI_SERVICE_11D_OFFLOAD=118, /* support 11D scan offload in FW */
- WMI_SERVICE_HW_DATA_FILTERING=119,
- WMI_SERVICE_MULTIPLE_VDEV_RESTART=120, /* Support for single command for multiple vdev restart */
- WMI_SERVICE_PKT_ROUTING=121, /* Support for routing specific data packets to selected destination rings */
- WMI_SERVICE_CHECK_CAL_VERSION=122, /* Support cal version check */
- WMI_SERVICE_OFFCHAN_TX_WMI=123, /* Support offchan data/mgmt tx over wmi */
- WMI_SERVICE_8SS_TX_BFEE = 124, /* support for 8Ant Bfee */
- WMI_SERVICE_EXTENDED_NSS_SUPPORT=125, /* Extend NSS support for 80Mhz and 160Mhz */
- WMI_SERVICE_ACK_TIMEOUT=126, /* Support TX ack timeout configurations */
- WMI_SERVICE_PDEV_BSS_CHANNEL_INFO_64 = 127, /* BSS channel info (freq, noise floor, rx clear, cycles 64-bit counters) event support */
- WMI_MAX_SERVICE=128, /* max service */
- /* NOTE:
- * The above service flags are delivered in the wmi_service_bitmap field
- * of the WMI_SERVICE_READY_EVENT message.
- * The below service flags are not delivered in the
- * WMI_SERVICE_READY_EVENT message's wmi_service_bitmap field,
- * but instead are delivered in the
- * fixed_param.wmi_service_segment_bitmap portion
- * of the WMI_SERVICE_AVAILABLE_EVENT message, with
- * fixed_param.wmi_service_segment_offset
- * set to 128.
- * The WMI_SERVICE_AVAILABLE_EVENT message immediately precedes the
- * WMI_SERVICE_READY_EVENT message.
- */
- WMI_SERVICE_CHAN_LOAD_INFO=128, /* The values in WMI_CHAN_INFO_EVENTID is the difference in cycle counters */
- WMI_SERVICE_TX_PPDU_INFO_STATS_SUPPORT=129, /* support to report tx ppdu info stats via htt events */
- WMI_SERVICE_VDEV_LIMIT_OFFCHAN_SUPPORT=130, /* support to report the offchannel duration limiting capability on connected interface */
- WMI_SERVICE_FILS_SUPPORT=131, /* support for FILS */
- WMI_SERVICE_WLAN_OIC_PING_OFFLOAD=132, /* Support for wlan OIC ping service */
- WMI_SERVICE_WLAN_DHCP_RENEW=133, /* Support for wlan DHCP Renew service */
- WMI_SERVICE_MAWC_SUPPORT = 134, /* Support for MAWC service */
- WMI_SERVICE_VDEV_LATENCY_CONFIG=135, /* support for vdev latency config */
- WMI_SERVICE_PDEV_UPDATE_CTLTABLE_SUPPORT=136, /* support for pdev update ctl table */
- WMI_SERVICE_PKTLOG_SUPPORT_OVER_HTT=137, /* upload pktlog data over HTT communication channel */
- WMI_SERVICE_VDEV_MULTI_GROUP_KEY_SUPPORT=138, /* Support for vdev level multi group key */
- WMI_SERVICE_SCAN_PHYMODE_SUPPORT=139, /* Support for phymode also with channel in offchan WMI_START_SCAN_CMDID */
- WMI_SERVICE_THERM_THROT = 140, /* Support thermal cfg and indication on AP.
- * Compared with WMI_SERVICE_THERMAL_MGMT,
- * this service is to allow thermal tool to
- * configure thermal throttling threshold
- * for different levels and pass down duty
- * cycle value. FW will also report thermal
- * throttling status to host through this
- * service. */
- WMI_SERVICE_BCN_OFFLOAD_START_STOP_SUPPORT=141, /* support dynamically enabling / disabling beacon tx offload */
- WMI_SERVICE_WOW_WAKEUP_BY_TIMER_PATTERN=142, /* fw to support waking up host from wow pattern timer */
- WMI_SERVICE_PEER_MAP_UNMAP_V2_SUPPORT=143, /* Support for HTT peer map/unmap V2 */
- WMI_SERVICE_OFFCHAN_DATA_TID_SUPPORT=144, /* Support new tid for offchan data/mgmt tx over wmi */
- WMI_SERVICE_RX_PROMISC_ENABLE_SUPPORT=145, /* Support enabling/disabling rx promiscuous mode as directed by a WMI message from the host */
- WMI_SERVICE_SUPPORT_DIRECT_DMA=146, /* indicates target supports direct DMA,
- * host will rely on WMI_DMA_RING_CAPABILITIES to get supported modules */
- WMI_SERVICE_AP_OBSS_DETECTION_OFFLOAD=147, /* Support SAP mode OBSS detection offload */
- WMI_SERVICE_11K_NEIGHBOUR_REPORT_SUPPORT=148, /* Support for 11k neighbor report */
- WMI_SERVICE_LISTEN_INTERVAL_OFFLOAD_SUPPORT=149, /* Support listen interval offload */
- WMI_SERVICE_BSS_COLOR_OFFLOAD=150, /* Support BSS color change for STA, OBSS color collision detection in FW for AP and STA */
- WMI_SERVICE_RUNTIME_DPD_RECAL=151, /* Runtime DPD recalibration support */
- WMI_SERVICE_STA_TWT=152, /* support for TWT (Target Wake Time) of STA */
- WMI_SERVICE_AP_TWT=153, /* support for TWT (Target Wake Time) on AP */
- WMI_SERVICE_GMAC_OFFLOAD_SUPPORT=154, /* Support for GMAC */
- WMI_SERVICE_SPOOF_MAC_SUPPORT=155, /* support for SERVICE_SPOOF_MAC */
- WMI_SERVICE_PEER_TID_CONFIGS_SUPPORT=156, /* Support TID specific configurations per peer (ack,aggr,retry,rate) */
- WMI_SERVICE_VDEV_SWRETRY_PER_AC_CONFIG_SUPPORT=157, /* Support vdev software retries configuration per AC (non aggr retry/aggr retry) */
- WMI_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_SCC_SUPPORT=158, /* Support dual beacon on same channel on single MAC */
- WMI_SERVICE_DUAL_BEACON_ON_SINGLE_MAC_MCC_SUPPORT=159, /* Support dual beacon on different channel on single MAC */
- WMI_SERVICE_MOTION_DET=160, /* support for motion detection config */
- WMI_SERVICE_INFRA_MBSSID=161, /* support infra multi-BSSID feature */
- WMI_SERVICE_OBSS_SPATIAL_REUSE=162, /* support spatial reuse feature */
- WMI_SERVICE_VDEV_DIFFERENT_BEACON_INTERVAL_SUPPORT=163, /* Support different beacon intervals on different VDEVs */
- WMI_SERVICE_NAN_DBS_SUPPORT=164, /* Support DBS for NAN discovery interface */
- WMI_SERVICE_NDI_DBS_SUPPORT=165, /* Support DBS for NAN data interface */
- WMI_SERVICE_NAN_SAP_SUPPORT=166, /* Support SAP Concurrency for NAN Discovery interface */
- WMI_SERVICE_NDI_SAP_SUPPORT=167, /* Support SAP Concurrency for NAN Data interface */
- WMI_SERVICE_CFR_CAPTURE_SUPPORT=168, /* Support to capture uncompressed Channel Frequency Response (CFR) */
- WMI_SERVICE_CFR_CAPTURE_IND_MSG_TYPE_1=169, /* Message type HTT_PEER_CFR_CAPTURE_MSG_TYPE_1 in HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND */
- WMI_SERVICE_ESP_SUPPORT=170, /* Support for Estimated Service Params IE */
- WMI_SERVICE_PEER_CHWIDTH_CHANGE = 171, /* Support for host to update/re-intersect the node capability */
- WMI_SERVICE_WLAN_HPCS_PULSE=172, /* Support for High Precision Clock Synchronization feature */
- WMI_SERVICE_PER_VDEV_CHAINMASK_CONFIG_SUPPORT=173, /* Support for configuring chainmask per VDEV */
- WMI_SERVICE_TX_DATA_MGMT_ACK_RSSI=174, /* ACK RSSI indication to host for host TX data and mgmt frame */
- WMI_SERVICE_NAN_DISABLE_SUPPORT=175, /* indicates firmware is dependent on host to disable NAN incase of concurrencies */
- WMI_SERVICE_NAN_DISABLE_SUPPORT__prototype = WMI_SERVICE_NAN_DISABLE_SUPPORT, /* alias, to clarify that NAN_DISABLE_SUPPORT is for prototype testing purposes */
- WMI_SERVICE_HTT_H2T_NO_HTC_HDR_LEN_IN_MSG_LEN=176, /* indicates FW supports uniformly excluding the HTC header length from the HTT H2T message length */
- WMI_SERVICE_COEX_SUPPORT_UNEQUAL_ISOLATION=177, /* indicates FW supports FDD coex with unequal isolation between BT and each of the WLAN chains */
- /* WMI_SERVICE_HW_DB2DBM_CONVERSION_SUPPORT:
- * Support HW+FW db2dbm conversion for RSSI fields in rx descriptors
- * and host/target messages.
- * If enabled, HW and FW will convert SNR to RSSI by adding noise floor
- * and rssi_offset from BDF to RSSI values that formerly had units of
- * dB w.r.t. noise floor to convert the units to dBm.
- * MAC beacon RSSI average register return a signed value for RSSI,
- * as well as hw descriptors.
- *-------------------------------------------------------------------------
- * The RSSI field of below WMI messages will be changed to dBm units:
- * WMI_MGMT_RX_EVENTID:
- * wmi_mgmt_rx_hdr.rssi_ctl;
- * WMI_UPDATE_STATS_EVENTID:
- * wmi_rssi_stats.rssi_avg_beacon;
- * wmi_rssi_stats.rssi_avg_data;
- * wmi_snr_info.bcn_snr;
- * wmi_snr_info.dat_snr;
- * wmi_vdev_stats.bcn_rssi_history; (NOT USED IN FW)
- * wmi_peer_stats.peer_rssi;
- * WMI_WOW_WAKEUP_HOST_EVENTID:
- * wmi_rssi_breach_event_fixed_param.rssi;
- * wmi_roam_event_fixed_param.rssi;
- * WMI_PEER_STA_KICKOUT_EVENTID:
- * wmi_peer_sta_kickout_event_fixed_param.rssi;
- * WMI_PASSPOINT_MATCH_EVENTID:
- * wmi_passpoint_event_hdr.rssi;(NOT USED IN FW)
- * WMI_PEER_INFO_EVENTID:
- * wmi_peer_info.rssi;
- * WMI_ROAM_SYNCH_EVENTID:
- * wmi_roam_synch_event_fixed_param.rssi;
- * WMI_ROAM_SCAN_STATS_EVENTID:
- * wmi_roam_scan_stats_event_fixed_param.rssi;
- * wmi_pdev_div_rssi_antid_event_id:
- * wmi_pdev_div_rssi_antid_event_fixed_param.chain_rssi;
- * wmi_rssi_breach_event_id
- * WMI_INST_RSSI_STATS_EVENTID:
- * wmi_inst_rssi_stats_resp_fixed_param.iRSSI;
- * RSSI thresholds configured by host
- * WMI_ROAM_SCAN_RSSI_THRESHOLD
- * roam_scan_rssi_thresh snr
- * boost_threshold_5g snr
- * penalty_threshold_5g snr
- * good_rssi_threshold snr
- * roam_bg_scan_bad_rssi_thresh snr
- * roam_earlystop_thres_min snr
- * roam_earlystop_thres_max snr
- * WMI_ROAM_AP_PROFILE
- * rssi_abs_thresh snr
- * WMI_ROAM_CONFIGURE_MAWC_CMDID:
- * best_ap_rssi_threshold Snr
- * wmi_ap_profile.rssi_abs_thresh;
- * WMI_ROAM_SCAN_RSSI_THRESHOLD:
- * wmi_roam_scan_extended_threshold_param.boost_threshold_5g;
- * wmi_roam_scan_extended_threshold_param.penalty_threshold_5g;
- * wmi_roam_scan_extended_threshold_param.good_rssi_threshold;
- * wmi_roam_scan_rssi_threshold_fixed_param.roam_scan_rssi_thresh;
- * wmi_roam_bg_scan_roaming_param.roam_bg_scan_bad_rssi_thresh;
- * WMI_VDEV_SPECTRAL_SCAN_CONFIGURE_CMDID:
- * wmi_vdev_spectral_configure_cmd_fixed_param.spectral_scan_rssi_rpt_mode;
- * wmi_vdev_spectral_configure_cmd_fixed_param.spectral_scan_rssi_thr;
- * WMI_RSSI_BREACH_MONITOR_CONFIG_CMDID:
- * wmi_rssi_breach_monitor_config_fixed_param.low_rssi_breach_threshold;
- * wmi_rssi_breach_monitor_config_fixed_param.hi_rssi_breach_threshold;
- * WMI_STA_SMPS_PARAM_CMDID:
- * wmi_sta_smps_param.value of below cmd IDs:
- * // RSSI threshold to enter Dynamic SMPS mode from inactive mode
- * WMI_STA_SMPS_PARAM_UPPER_RSSI_THRESH = 0,
- * // RSSI threshold to enter Stalled-D-SMPS mode from D-SMPS mode
- * // or to enter D-SMPS mode from Stalled-D-SMPS mode
- * WMI_STA_SMPS_PARAM_STALL_RSSI_THRESH = 1,
- * // RSSI threshold to disable SMPS modes
- * WMI_STA_SMPS_PARAM_LOWER_RSSI_THRESH = 2,
- * // Upper threshold for beacon-RSSI. Used to reduce RX chainmask.
- * WMI_STA_SMPS_PARAM_UPPER_BRSSI_THRESH = 3,
- * // Lower threshold for beacon-RSSI. Used to increase RX chainmask
- * WMI_STA_SMPS_PARAM_LOWER_BRSSI_THRESH = 4,
- * // Enable/Disable DTIM 1chRx feature
- * WMI_STA_SMPS_PARAM_DTIM_1CHRX_ENABLE = 5
- * WMI_TDLS_SET_STATE_CMDID:
- * wmi_tdls_set_state_cmd_fixed_param.rssi_teardown_threshold;
- * wmi_tdls_set_state_cmd_fixed_param.rssi_delta;
- *-------------------------------------------------------------------------
- * The RSSI fields of below HTT data type will change to dBm units:
- * PREPACK struct htt_tx_wbm_completion.ack_frame_rssi;
- * PREPACK struct htt_tx_wbm_transmit_status.ack_frame_rssi;
- * htt_ppdu_stats_user_cmpltn_common_tlv.ack_rssi;
- */
- WMI_SERVICE_HW_DB2DBM_CONVERSION_SUPPORT = 178,
- WMI_SERVICE_SUPPORT_EXTEND_ADDRESS=179, /* indicates firmware supports host memory addresses larger than 32 bit */
- WMI_SERVICE_BEACON_RECEPTION_STATS=180, /* Support per vdev beacon stats info */
- WMI_SERVICE_FETCH_TX_PN=181,
- WMI_SERVICE_PEER_UNMAP_RESPONSE_SUPPORT = 182, /* support peer ids unmap response from host */
- WMI_SERVICE_TX_PER_PEER_AMPDU_SIZE = 183, /* indicate FW support per peer TX AMPDU size */
- WMI_SERVICE_BSS_COLOR_SWITCH_COUNT = 184, /* Firmware supports bss-color switch count handling */
- WMI_SERVICE_HTT_PEER_STATS_SUPPORT = 185, /* Supports the feature where FW sends peer stats autonomously to Host via the HTT_T2H PEER_STATS_IND message */
- WMI_SERVICE_UL_RU26_ALLOWED = 186, /* indicates support for RU26 in UL OFDMA */
- WMI_SERVICE_GET_MWS_COEX_STATE = 187, /* FW provides MWS Coex info */
- WMI_SERVICE_GET_MWS_DPWB_STATE = 188, /* FW provides LTE-Coex Dynamic Power Back-off info */
- WMI_SERVICE_GET_MWS_TDM_STATE = 189, /* FW provides LTE-Coex TDM info */
- WMI_SERVICE_GET_MWS_IDRX_STATE = 190, /* FW provides LTE-Coex IDRx info */
- WMI_SERVICE_GET_MWS_ANTENNA_SHARING_STATE = 191, /* FW provides LTE-Coex Antenna sharing info */
- WMI_SERVICE_ENHANCED_TPC_CONFIG_EVENT = 192, /* FW provides enhanced tx power control configuration dump */
- WMI_SERVICE_WLM_STATS_REQUEST = 193, /* FW supports WLAN latency manager stats request */
- WMI_SERVICE_EXT_PEER_TID_CONFIGS_SUPPORT = 194, /* Extended Peer Tid configuration support for QoS related settings */
- WMI_SERVICE_WPA3_FT_SAE_SUPPORT = 195, /* FW roaming support for WPA3_FT_SAE */
- WMI_SERVICE_WPA3_FT_SUITE_B_SUPPORT = 196, /* FW roaming support for WPA3_FT_SUITE_B */
- WMI_SERVICE_VOW_ENABLE=197, /* FW supports a set of features to optimize VoW performance */
- WMI_SERVICE_CFR_CAPTURE_IND_EVT_TYPE_1 = 198, /* support WMI_PEER_CFR_CAPTURE_EVENT msg */
- WMI_SERVICE_BROADCAST_TWT = 199, /* support of Broadcast TWT (Target Wake Time) for STA/AP */
- WMI_SERVICE_RAP_DETECTION_SUPPORT = 200, /* indicate FW supports rogue AP detection */
- WMI_SERVICE_PS_TDCC = 201, /* FW support tx_duty_cycle_control powersave */
- WMI_SERVICE_THREE_WAY_COEX_CONFIG_LEGACY = 202, /* BTCOEX Three-way CoEx Config Legacy Feature support */
- WMI_SERVICE_THREE_WAY_COEX_CONFIG_OVERRIDE = 203, /* BTCOEX Three-way CoEx Config Override Feature support */
- WMI_SERVICE_TX_PWR_PER_PEER = 204, /* target supports per-peer tx pwr spec via WMI_PEER_USE_FIXED_PWR */
- WMI_SERVICE_STA_PLUS_STA_SUPPORT = 205, /* indicates target supports STA + STA concurrency */
- WMI_SERVICE_WPA3_FT_FILS = 206,
- WMI_SERVICE_ADAPTIVE_11R_ROAM = 207, /* Indicates FW supports adaptive 11r roaming */
- WMI_SERVICE_CHAN_RF_CHARACTERIZATION_INFO = 208, /* FW provides RF scores for chans in the service ready extension msg */
- WMI_SERVICE_FW_IFACE_COMBINATION_SUPPORT = 209, /* FW sends WMI_IFACE_COMBINATION_IND_EVENT msg immediately after WMI_SERVICE_READY_EXT_EVENT msg */
- WMI_SERVICE_TX_COMPL_TSF64 = 210, /* FW supports 64-bit tx TSF in HTT_T2H TX_COMPL_IND msg */
- WMI_SERVICE_DSM_ROAM_FILTER = 211, /* FW supports data stall AP mitigation while roaming */
- WMI_SERVICE_PACKET_CAPTURE_SUPPORT = 212, /* target supports packet capture Mode (SMART MU) */
- WMI_SERVICE_PER_PEER_HTT_STATS_RESET = 213, /* FW supports HTT per peer stats reset facility */
- WMI_SERVICE_DELETE_ALL_PEER_SUPPORT = 214, /* target supports cmd to delete all peers within a vdev */
- WMI_SERVICE_DYNAMIC_HW_MODE_SWITCH_SUPPORT = 215, /* target supports Dynamic HW mode switch */
- WMI_SERVICE_MSDU_FLOW_OVERRIDE_BY_HOST = 216, /* target supports flow override feature */
- WMI_SERVICE_WMI_CHAN_RF_CHARACTERIZATION_INFO_EVENT= 217, /* target will send WMI_CHAN_RF_CHARACTERIZATION_INFO_EVENT */
- WMI_SERVICE_RX_FSE_SUPPORT = 218, /* target supports flow search through RxOLE FSE hw block */
- WMI_SERVICE_FREQINFO_IN_METADATA = 219, /* FW provides freq_info during spectral scan */
- WMI_SERVICE_EXT2_MSG = 220, /* WMI_SERVICE_READY_EXT2 msg is sent by target */
- WMI_SERVICE_WPA3_SAE_ROAM_SUPPORT = 221, /* Indicates FW supports WPA3 SAE roaming */
- WMI_SERVICE_WPA3_OWE_ROAM_SUPPORT = 222, /* Indicates FW supports WPA3 OWE roaming */
- WMI_SERVICE_AUDIO_AGGR = 223, /* Indicates FW supports audio frame aggregation */
- WMI_SERVICE_6GHZ_SUPPORT = 224, /* Indicates FW supports 6GHZ (scan, connection and so on) */
- /* WMI_SERVICE_QMI_STATS_SUPPORT
- * Indicates FW supports stat request command WMI_REQUEST_LINK_STATS_CMDID
- * and WMI_REQUEST_STATS_CMDID coming from QMI which will be used in
- * runtime PM suspend.
- */
- WMI_SERVICE_QMI_STATS_SUPPORT = 225,
- WMI_SERVICE_CFR_CAPTURE_FILTER_SUPPORT = 226, /* Indicate FW Supports Channel Frequency Response (CFR) via WMI_CFR_CAPTURE_FILTER_CMDID */
- WMI_SERVICE_STA_BSS_MAX_IDLE_TIME = 227, /* Indicate FW supports BSS Max Idle time feature via WMI_VDEV_BSS_MAX_IDLE_TIME_CMDID */
- WMI_SERVICE_BIP_CIPHER_SUPPORT = 228, /* FW supports new BIP_CIPHER suites (WMI_CIPHER_BIP_xxx) */
- WMI_SERVICE_BW_165MHZ_SUPPORT = 229, /* Indicate FW supports bandwidth 165MHz (i.e. 6 GHz in addition to 2.4 and 5) */
- WMI_SERVICE_BW_RESTRICTED_80P80_SUPPORT = WMI_SERVICE_BW_165MHZ_SUPPORT,
- WMI_SERVICE_NAN_NDI_SAP_SAP_SCC_SUPPORT = 230, /* Support SAP + SAP + NAN discovery + NDI concurrency in SCC mode */
- WMI_SERVICE_NAN_VDEV_SUPPORT = 231, /* indicates firmware is dependent on host to create NAN vdev */
- WMI_SERVICE_AUDIO_SYNC_SUPPORT = 232, /* Indicate FW supports Audio sync feature */
- WMI_SERVICE_DUAL_STA_ROAM_SUPPORT = 233, /* Indidate FW support dual STA roaming */
- WMI_SERVICE_PEER_CREATE_CONF = 234, /* Target will send WMI_PEER_CREATE_CONF_EVENTID after WMI_PEER_CREATE_CMDID is processed */
- WMI_SERVICE_MULTIPLE_VDEV_RESTART_RESPONSE_SUPPORT = 235, /* indicates firmware supports Multiple vdev restart response */
- WMI_SERVICE_ROAM_SCAN_CHANNEL_LIST_TO_HOST_SUPPORT = 236, /* Indicates firmware supports sending roam scan channel list to host */
- WMI_SERVICE_PEER_DELETE_NO_PEER_FLUSH_TIDS_CMD = 237, /* Host should not send WMI_PEER_FLUSH_TIDS_CMD as part of peer delete */
- WMI_SERVICE_NSS_RATIO_TO_HOST_SUPPORT = 238, /* Indicates firmware supports sending NSS ratio info to host */
- WMI_SERVICE_WPA3_SUITEB_ROAM_SUPPORT = 239, /* Indicates FW supports WPA3 SUITE B roaming */
- WMI_SERVICE_PERIODIC_FRAME_INJECT_SUPPORT = 240, /* Indicates FW supports periodic frame injection */
- WMI_SERVICE_NDI_NDI_STA_SUPPORT = 241, /* Indicates FW support for STA+NDI+NDI */
- WMI_SERVICE_BW_TRUE_160_SUPPORT = 242, /* Indicates FW supports true 160 BW */
- WMI_SERVICE_HOST_SCAN_STOP_VDEV_ALL_SUPPORT = 243, /* Indicates FW supports scan stop mode WMI_SCN_STOP_HOST_VAP_ALL */
- WMI_SERVICE_BEACON_PROTECTION_SUPPORT = 244, /* Indicates FW supports WPA3 Beacon protection */
- WMI_SERVICE_EMA_AP_SUPPORT = 245, /* FW supports EMA AP feature */
- WMI_SERVICE_PEER_POWER_SAVE_DURATION_SUPPORT = 246, /* Support for adding Power save duration per client */
- WMI_SERVICE_5_DOT_9GHZ_SUPPORT = 247, /* Indicates FW supports new 5.9GHZ (scan, connection and so on) */
- WMI_SERVICE_MU_PREAMBLE_PUNCTURE_SUPPORT = 248, /* Indicates FW supports MU preamble puncture */
- WMI_SERVICE_SRG_SRP_SPATIAL_REUSE_SUPPORT = 249, /* Support for SRG, SRP based spatial reuse support */
- WMI_REQUEST_CTRL_PATH_STATS_REQUEST = 250, /* FW supports control path stats */
- WMI_SERVICE_TPC_STATS_EVENT = 251, /* FW support to dump the TPC tables */
- WMI_SERVICE_NO_INTERBAND_MCC_SUPPORT = 252, /* Indicates FW doesn't support interband MCC */
- WMI_SERVICE_MBSS_PARAM_IN_VDEV_START_SUPPORT = 253, /* FW supports VDEV's MBSS param exchange in VDEV start command */
- WMI_SERVICE_CONFIGURE_ROAM_TRIGGER_PARAM_SUPPORT = 254, /* FW supports ROAM trigger configuration param TLV */
- WMI_SERVICE_CFR_TA_RA_AS_FP_SUPPORT = 255, /* indicates FW support to program CFR TA/RA filtered packets as Filter pass */
- /******* ADD NEW SERVICES UP TO 256 HERE *******/
- WMI_MAX_EXT_SERVICE = 256,
- /* NOTE:
- * The above service flags are delivered in the
- * fixed_param.wmi_service_segment_bitmap portion
- * of the WMI_SERVICE_AVAILABLE_EVENT message, with
- * fixed_param.wmi_service_segment_offset
- * set to 128.
- * The below service flags can be delivered in one of two ways:
- * 1. The target can deliver a 2nd SERVICE_AVAILABLE message, with
- * fixed_param.wmi_service_segment_offset
- * set to 256.
- * (This method is acceptable, but not recommended.)
- * 2. The target can populate the wmi_service_ext_bitmap[] TLV array
- * within the WMI_SERVICE_AVAILABLE_EVENT message.
- * (This method is recommended.)
- */
- /******* ADD NEW SERVICES 256 AND BEYOND HERE *******/
- WMI_SERVICE_CFR_CAPTURE_COUNT_SUPPORT = 256, /* indicates FW support to program CFR capture mode and capture count */
- WMI_SERVICE_OCV_SUPPORT = 257, /* FW supports OCV (Operating Channel Validation) */
- WMI_SERVICE_LL_STATS_PER_CHAN_RX_TX_TIME_SUPPORT = 258, /* Indicates firmware support sending per channel own tx & rx time in radio stats of LL stats. */
- WMI_SERVICE_THERMAL_MULTI_CLIENT_SUPPORT = 259, /* Indicates FW Thermal Mgr will support multiple clients for mitigation */
- WMI_SERVICE_NAN_SEND_NAN_ENABLE_RESPONSE_TO_HOST = 260, /* Indicates FW will include an additional TLV in nan enable response for Host driver to parse */
- WMI_SERVICE_UNIFIED_LL_GET_STA_CMD_SUPPORT = 261, /* Indicates that FW supports handling Link Layer and Get Station stats Commands together (WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID) */
- WMI_SERVICE_FSE_CMEM_ALLOC_SUPPORT = 262, /* Indicates that FW supports non-secure CMEM allocation for FSE table */
- WMI_SERVICE_PASSIVE_SCAN_START_TIME_ENHANCE = 263, /* Indicates FW support to not skip beacon if passive scan dwell time + channel switch delay is lesser than beacon interval */
- WMI_SERVICE_QOS_NULL_FRAME_TX_OVER_WMI = 264, /* Indicates that FW supports tx of QoS null frame downloaded through WMI interface */
- WMI_SERVICE_SCAN_CONFIG_PER_CHANNEL = 265, /* Indicates that FW supports per channel configuration support in the scan start command */
- WMI_SERVICE_CSA_BEACON_TEMPLATE = 266, /* Indicates that FW supports updating CSA count in beacon template */
- WMI_SERVICE_BROADCAST_TWT_REQUESTER = 267, /* Indicates FW supports Broadcast TWT REQUESTER */
- WMI_SERVICE_BROADCAST_TWT_RESPONDER = 268, /* Indicates FW supports Broadcast TWT RESPONDER */
- WMI_SERVICE_TWT_NUDGE = 269, /* Indicates that FW supports TWT Nudge command and event */
- WMI_SERVICE_TWT_STATS = 270, /* Indicates that FW supports TWT Get_stats command and event */
- WMI_SERVICE_TWT_ALL_DIALOG_ID = 271, /* Indicates that FW supports TWT ALL dialog ID(255) for all commands and events, except for TWT add dialog and TWT get stats */
- WMI_SERVICE_SPLIT_AST_SUPPORT = 272, /* Indicate that FW supports SPLIT AST table */
- WMI_SERVICE_SPECTRAL_SCAN_DISABLED = 273, /* Indicates that SKU does not support normal spectral scan capabilities */
- /* WMI_SERVICE_UNIFIED_LL_GET_STA_OVER_QMI_SUPPORT:
- * This service flag indicates that FW can support receiving a
- * WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID command request from the host
- * over the QMI communication link.
- * If the target receives WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID over QMI,
- * any of the event messages sent in response (WMI_UPDATE_STATS_EVENTID,
- * WMI_IFACE_LINK_STATS_EVENTID, WMI_PEER_LINK_STATS_EVENTID,
- * WMI_RADIO_LINK_STATS_EVENTID, WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID)
- * will be delivered over the QMI communication link.
- * Any such messages delivered over QMI will use the same message format
- * as if they had been delivered over the usual WMI communication link.
- * This service flag indicates QMI is supported for these stats messages
- * in addition to WMI, not instead of WMI - if the host sends the
- * WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID over the usual WMI communication
- * link, the stats event messages sent by the target in response will
- * be sent on the WMI communication link.
- */
- WMI_SERVICE_UNIFIED_LL_GET_STA_OVER_QMI_SUPPORT = 274,
- /*
- * Indicates FW supports EAPOL offload for SAE roaming if PMK of
- * candidate AP is present in FW.
- */
- WMI_SERVICE_SAE_EAPOL_OFFLOAD_SUPPORT = 275,
- /*
- * Indicates FW supports sending events to host during Thermal Throttling
- * every duty cycle on detecting temperature change when dc_per_event is 0.
- */
- WMI_SERVICE_THERM_THROT_TEMP_CHANGE_DYNAMIC_EVENT_SUPPORT = 276,
- WMI_SERVICE_WAPI_CONCURRENCY_SUPPORTED = 277, /* Indicates FW support for WAPI concurrency */
- WMI_SERVICE_SAP_CONNECTED_D3WOW = 278, /* Indicates FW support for D3WoW for SAP connected case */
- WMI_SERVICE_GO_CONNECTED_D3WOW = 279, /* Indicates FW support for D3WoW for P2P GO connected case */
- WMI_SERVICE_EXT_TPC_REG_SUPPORT = 280, /* Support for new 6 GHz TPC power limits */
- WMI_SERVICE_REG_CC_EXT_EVENT_SUPPORT = 281, /* Support for Extended REG_CC Event with additional params for 6 GHz */
- WMI_SERVICE_NDI_TXBF_SUPPORT = 282, /* Indicates FW support for Tx beamforming with NDI VDEV */
- WMI_SERVICE_ENABLE_LOWER_6G_EDGE_CH_SUPP = 283, /* Indicates FW support for enabling lower 6 GHz edge channel 5935 */
- WMI_SERVICE_DISABLE_UPPER_6G_EDGE_CH_SUPP = 284, /* Indicates FW support for disabling upper 6 GHz edge channel 7115 */
- WMI_SERVICE_FORCED_DTIM_SUPP = 285, /* Indicates FW supports forced DTIM configuration */
- WMI_SERVICE_DCS_AWGN_INT_SUPPORT = 286, /* Indicates FW supports AWGN Int */
- WMI_SERVICE_IGMP_OFFLOAD_SUPPORT = 287, /* FW supports igmp offload during APPS suspend */
- WMI_SERVICE_11AX_TDLS_SUPPORT = 288, /* Indicates FW supports 11ax TDLS. Host should enable 11ax on TDLS only when FW indicates the support. */
- WMI_SERVICE_11BE = 289, /* Indicates FW supports 11be */
- WMI_SERVICE_BIG_DATA_SUPPORT = 290, /* Indicates FW supports Big Data feature */
- WMI_SERVICE_EAPOL_OVER_NWIFI = 291, /* Indicates FW supports sending eapol frames in native wifi mode even when the vdev is brought up in raw ethernet mode */
- WMI_SERVICE_AMPDU_TX_BUF_SIZE_256_SUPPORT = 292, /* Indicates FW supports MAX 256 MPDUs in A-MPDU instead of 64 */
- WMI_SERVICE_HALPHY_CAL_STATUS = 293, /* Indicates FW supports sending online HALPHY Calibration status to host */
- WMI_SERVICE_HALPHY_CAL_ENABLE_DISABLE_SUPPORT = 294, /* Indicates Calibraton enable/disable support by FW */
- WMI_SERVICE_AFC_SUPPORT = 295, /* Indicates FW supports AFC_CMD,AFC_EVENT */
- WMI_SERVICE_RTT_AP_INITIATOR_STAGGERED_MODE_SUPPORTED = 296, /* FW supports RTT in AP Initiator for Staggered beacon mode */
- WMI_SERVICE_RTT_AP_INITIATOR_BURSTED_MODE_SUPPORTED = 297, /* FW supports RTT in AP Initiator for BURSTED beacon mode */
- WMI_SERVICE_P2P_P2P_CONCURRENCY_SUPPORT = 298, /* Indicates FW supports P2P + P2P conncurency both in SCC, MCC, SBS and DBS */
- WMI_SERVICE_MGMT_RX_REO_SUPPORTED = 299, /* Indicates FW supports Management RX Reorder */
- WMI_SERVICE_EMA_MULTIPLE_GROUP_SUPPORT = 300, /* FW support for EMA multi group support */
- WMI_SERVICE_LARGE_BEACON_SUPPORT = 301, /* FW support for Large beacon support greater then 1.5K */
- WMI_SERVICE_AOA_FOR_RCC_SUPPORTED = 302,
- WMI_SERVICE_DYN_NSS_MASK_SUPPORT = 303, /* Indicates FW support for DYN NSS feature */
- WMI_SERVICE_HW_MODE_POLICY_OFFLOAD_SUPPORT = 304, /* FW supports HW mode selection offload */
- WMI_SERVICE_THERMAL_THROT_STATS_TEMP_RANGE_SUPPORT = 305, /* FW supports thermal throttling temperature range stats based on wmi_thermal_stats_action */
- /*
- * Indicates FW support for spatial reuse enhancements.
- * Below commands are added for the enhancements:
- * WMI_PDEV_PARAM_OBSS_MIN_DURATION_CHECK_FOR_SR,
- * WMI_PDEV_PARAM_TRUNCATE_SR,
- * WMI_PDEV_PARAM_CTRL_FRAME_OBSS_PD_THRESHOLD
- */
- WMI_SERVICE_SPATIAL_REUSE_ENHANCEMENT_SUPPORT = 306,
- WMI_SERVICE_MU_SNIF = 307, /* FW support MU sniffer */
- WMI_SERVICE_ICMP_OFFLOAD = 308, /* FW supports ping offload during APPS suspend */
- WMI_SERVICE_RTSCTS_FOR_UNICAST_MGMT_SUPPORT = 309, /* Indicates FW support RTSCTS for unicast management */
- WMI_SERVICE_DYNAMIC_VDEV_MAC_ADDR_UPDATE_SUPPORT = 310, /* FW supports dynamic vdev mac address updating */
- WMI_SERVICE_SAWF_LEVEL0 = 311, /* FW supports WMI_SAWF_SVC_CLASS CFG_CMD + DISABLE_CMD msgs */
- WMI_SERVICE_RTT_11AZ_NTB_SUPPORT = 312, /* FW support for 11AZ non trigger based ranging */
- WMI_SERVICE_RTT_11AZ_TB_SUPPORT = 313, /* FW support for 11AZ trigger based ranging ISTA role */
- WMI_SERVICE_RTT_11AZ_MAC_SEC_SUPPORT = 314, /* FW support for 11AZ secure FTM */
- WMI_SERVICE_RTT_11AZ_MAC_PHY_SEC_SUPPORT = 315, /* FW support for 11AZ secure LTF + FTM */
- WMI_SERVICE_SPECTRAL_SESSION_INFO_SUPPORT = 316, /* Information corresponding to each Spectral scan session will be sent by the FW before the reports corresponding to that session are sent */
- WMI_SERVICE_PDEV_RATE_CONFIG_SUPPORT = 317, /* Support rate configurations per PDEV */
- WMI_SERVICE_MLO_STA_NAN_NDI_SUPPORT = 318, /* FW support for NAN and NDP support with MLO STA */
- WMI_SERVICE_PROBE_ALL_BW_SUPPORT = 319, /* FW support to probe on higher BW even if the probe fails on lower BW - IOT issue */
- WMI_SERVICE_PKTLOG_DECODE_INFO_SUPPORT = 320, /* FW supports embedding Pktlog decode info in the Pktlog trace file level header */
- WMI_SERVICE_PNO_SCAN_CONFIG_PER_CHANNEL = 321, /* Indicates that FW supports per channel configuration support in the PNO scan start command */
- WMI_SERVICE_MULTIPLE_PEER_GROUP_CMD_SUPPORT = 322, /* FW support for multiple peer group command */
- WMI_SERVICE_AFC_RESET_SUPPORT = 323, /* Indicates FW supports AFC reset */
- WMI_SERVICE_FP_PHY_ERR_FILTER_SUPPORT = 324, /* FW supports monitor ring configurations for filtering in PHY error packets */
- WMI_IS_RADAR_FOUND_CHAN_FREQ_IS_CENTER_FREQ = 325, /* FW Supporting radar event on the actual center frequency radar was detected */
- WMI_SERVICE_BIOS_SAR_SUPPORT = 326, /* FW support for SAR parameter stored in BIOS */
- WMI_SERVICE_REO_QREF_SUPPORT = 327, /* FW supports REO QREF */
- WMI_SERVICE_DELETE_ALL_PEER_BITMAP_SUPPORT = 328, /* target supports cmd to delete all specific peer type within a vdev */
- WMI_SERVICE_PN_REPLAY_CHECK_SUPPORT = 329, /* FW support to check RX mgmt frames has invalid PN in packets */
- WMI_SERVICE_COMBINED_SET_PARAM_SUPPORT = 330, /* FW Supporting set param cmd combined for multiple params */
- WMI_SERVICE_PDEV_RSSI_DBM_CONV_EVENT_SUPPORT = 331, /* FW supports advertising RSSI dB to dBm conversion params to host via WMI_PDEV_RSSI_DBM_CONVERSION_PARAMS_INFO_EVENTID */
- WMI_SERVICE_PDEV_TELEMETRY_STATS_SUPPORT = 332,
- WMI_SERVICE_ROAM_STAT_PER_CANDIDATE_FRAME_INFO_SUPPORT = 333, /* FW supports to send frame info for each candidate in roam stat */
- WMI_SERVICE_HW_TX_POWER_CAPS_SIGNED_SUPPORT = 334, /* Indicates FW supports updating of Tx power capabilities as signed value */
- WMI_SERVICE_MULTI_CLIENT_LL_SUPPORT = 335, /* FW supports set param cmd combined for multiple params */
- WMI_SERVICE_AFC_PAYLOAD_CLEAR_SUPPORT = 336, /* FW supports clearing the AFC response payload in proxy mode */
- WMI_SERVICE_FW_INI_PARSE_SUPPORT = 337, /* FW supports parsing ini configuration file */
- WMI_SERVICE_TDLS_6GHZ_SUPPORT = 338, /* FW supports 6GHz TDLS both on base channel and offchannel */
- WMI_SERVICE_LINKSPEED_ROAM_TRIGGER_SUPPORT = 339, /* FW supports linkspeed trigger roam */
- WMI_SERVICE_UMAC_HANG_RECOVERY_SUPPORT = 340, /* FW supports recovering system from UMAC hang condition */
- WMI_SERVICE_COAP_OFFLOAD_SUPPORT = 341, /* FW supports CoAP (the Constrained Application Protocol) offload */
- WMI_SERVICE_TDLS_WIDEBAND_SUPPORT = 342, /* FW supports Wideband TDLS */
- WMI_SERVICE_FEATURE_SET_EVENT_SUPPORT = 343, /* FW supports sending of supported feature set event during init time */
- WMI_SERVICE_HALPHY_CTRL_PATH_STATS = 344, /* HALPHY STATS through control path */
- WMI_SERVICE_PEER_CHWIDTH_PUNCTURE_BITMAP_SUPPORT = 345, /* FW supports puncture bitmap change with channel width switch */
- WMI_SERVICE_BANG_RADAR_320_SUPPORT = 346, /* Host to send frequency offset for bang radar in extended field for 320M support */
- WMI_SERVICE_XGAP_SUPPORT = 347, /* FW support for XGAP */
- WMI_SERVICE_OBSS_PER_PACKET_SR_SUPPORT = 348, /* Spatial Reuse support for per PPDU setting */
- WMI_SERVICE_MULTIPLE_VDEV_RESTART_BITMAP_SUPPORT = 349, /* Extended Multiple VDEV Restart with Bitmap Support */
- WMI_SERVICE_WMI_SERVICE_WPA3_SHA384_ROAM_SUPPORT = 350, /* Indicates FW supports WPA3 SHA384 roaming */
- WMI_SERVICE_ODD_LIVEDUMP_SUPPORT = 351, /* Support for ODD Livedump from the FW */
- WMI_SERVICE_EIRP_PREFERRED_SUPPORT = 352, /* Support for OOBE feature where only EIRP powers will be sent in 6 GHz TPC WMI */
- WMI_SERVICE_RTT_TX_RX_CHAIN_IDX_SUPPORT = 353, /* FW Supports configuring Tx and Rx Chainmask in intiator and Responder */
- WMI_SERVICE_RESTRICTED_TWT = 354, /* Support for R-TWT feature */
- WMI_SERVICE_SLO_SUPPORTED = 355, /* Support for Single Link 11BE */
- WMI_SERVICE_RTT_11AZ_TB_RSTA_SUPPORT = 356, /* FW support for 11AZ trigger based ranging Responder (RSTA) role */
- WMI_SERVICE_SUPPORT_11D_FOR_HOST_SCAN = 357,
- WMI_SERVICE_DETERMINISTIC_SCHEDULER_LEVEL0 = 358, /* FW supports 12.2 level scheduler mode disable commands and stats */
- WMI_SERVICE_COORDINATED_AP_TDMA = 359, /* Support for Coordinated-AP TDMA feature */
- WMI_SERVICE_HPA_SUPPORT = 360, /* Support for Host Platform Authentication */
- WMI_SERVICE_WMSK_COMPACTION_RX_TLVS = 361, /* Support word mask subscription for rx tlv compaction */
- WMI_SERVICE_PRE_RX_TO = 362, /* Support for Pre RX timeout */
- WMI_SERVICE_TDLS_CONCURRENCY_SUPPORT = 363, /* Support for TDLS concurrency in FW */
- WMI_SERVICE_SELF_MLD_ROAM_BETWEEN_DBS_AND_HBS = 364, /* Suppport roam between DBS(2G+5G/6G) to HBS(5G+6G) with self AP MLD. */
- WMI_SERVICE_PEER_METADATA_V1A_V1B_SUPPORT = 365, /* Support rx peer meta data v1a and v1b */
- WMI_SERVICE_CFR_CAPTURE_PDEV_ID_SOC = 366, /* Host can send PDEV_ID_SOC with CFR capture request and FW can derive pdev_id from TA address */
- WMI_SERVICE_11BE_MLO_TDLS_SUPPORT = 367, /* Indicates FW supports 11be MLO TDLS. Host should enable 11be on TDLS only when FW indicates the support. */
- WMI_SERVICE_MANUAL_ULOFDMA_TRIGGER_SUPPORT = 368, /* Support for Host triggered Manual UL OFDMA trigger frame feature */
- WMI_SERVICE_STANDALONE_SOUND = 369, /* FW supports standalone sounding */
- WMI_SERVICE_AFC_RESP_BINARY_FORMAT_SUPPORTED = 370, /* Service bit to indicate the supported AFC payload response format */
- WMI_SERVICE_CCA_BUSY_INFO_FOREACH_20MHZ = 371, /* FW supports reporting of CCA busy info for each 20Mhz subband of wideband scan channel */
- WMI_SERVICE_MLO_TSF_SYNC = 372, /* FW supports TSF sync across multiple chips */
- WMI_SERVICE_RF_PATH_SEL_INIT_SUPPORT = 373, /* FW supports RF Path selection using WMI Init command field */
- WMI_SERVICE_VDEV_PARAM_CHWIDTH_WITH_NOTIFY_SUPPORT = 374, /* FW supports VDEV param channel width switch with OMN/OMI notification */
- WMI_SERVICE_RESTRICTED_TWT_REQUESTER = 375, /* Indicates FW supports Restricted TWT REQUESTER */
- WMI_SERVICE_RESTRICTED_TWT_RESPONDER = 376, /* Indicates FW supports Restricted TWT RESPONDER */
- WMI_SERVICE_AUX_MAC_SUPPORT = 377,
- WMI_SERVICE_NAN_PAIRING_PEER_CREATE_BY_HOST = 378, /* Indicate FW supports creation of PASN Peer by Host for NAN pairing usecase */
- WMI_SERVICE_MLO_TID_TO_LINK_MAPPING_SUPPORT = 379, /* Indicates FW supports TID-TO-LINK mapping */
- WMI_SERVICE_PER_LINK_STATS_SUPPORT = 380, /* Indicates FW supports per link stats for MLO */
- WMI_SERVICE_N_LINK_MLO_SUPPORT = 381, /* Indicate FW supports N MLO link & vdev re-purpose between links */
- WMI_SERVICE_ATF_MAX_CLIENT_512_SUPPORT = 382, /* Indicates FW supports maximum of 512 clients when ATF is enabled */
- WMI_SERVICE_FISA_DYNAMIC_MSDU_AGGR_SIZE_SUPPORT = 383, /* Indicates FW support for FISA aggregation size up to 64 instead of only 16 */
- WMI_SERVICE_BRIDGE_VDEV_SUPPORT = 384, /* Indicated FW supports Bridge VDEV */
- WMI_SERVICE_MLO_MODE1_RECOVERY_SUPPORTED = 385, /* Indicate fw support for mlo mode1 recovery */
- WMI_SERVICE_TX_PWR_PER_PPDU_STATS_SUPPORT = 386, /* FW support to check tx power stats per PPDU */
- WMI_SERVICE_DISABLE_WDS_PEER_MAP_UNMAP_EVENT_SUPPORT = 387, /* Indicate FW support to disable wds peer map/unmap events */
- WMI_SERVICE_PDEV_WSI_STATS_INFO_SUPPORT = 388, /* Support for WSI Stats Info. */
- WMI_SERVICE_MULTIPLE_RF_PATH_SOC_SUPPORT = 389, /* Indicates FW supports Multiple RF Path on SOC Level */
- WMI_SERVICE_RADAR_FLAGS_SUPPORT = 390, /* Indicates FW supports radar flags, such as full bandwidth need put to NOL */
- WMI_SERVICE_XPAN_SUPPORT = 391, /* Indicate FW support XPAN configuration */
- WMI_SERVICE_5GHZ_HI_RSSI_ROAM_SUPPORT = 392, /* Indicate FW supports High RSSI Roam from 5 GHz Band to 6 GHz Band */
- WMI_SERVICE_BOTH_PSD_EIRP_FOR_AP_SP_CLIENT_SP_SUPPORT = 393, /* Support for CTL regeneration where both PSD and EIRP will be sent in 6GHZ SET_TPC WMI for SP and SP_CLIENT power modes */
- WMI_SERVICE_PDEV_PARAM_IN_UTF_WMI = 394, /* FW supports receiving and sending pdev_id parameter in WMI_PDEV_UTF_(CMD/EVENT) */
- WMI_SERVICE_SW_PROG_DFS_SUPPORT = 395, /* Indicate FW support SW progressive DFS */
- WMI_SERVICE_MULTIPLE_REORDER_QUEUE_SETUP_SUPPORT = 396, /* Indicate FW supports multiple TID reorder queues setup in one cmd */
- WMI_SERVICE_MULTIPLE_COEX_CONFIG_SUPPORT = 397, /* FW supports mutiple coex configs in one cmd */
- WMI_SERVICE_PCIE_DATA_RATE_LED_BLINK_SUPPORT = 398, /* FW supports Data Rate based LED blinking for PCI chips */
- WMI_SERVICE_VDEV_DCS_STATS_SUPPORT = 399, /* FW supports VDEV level DCS stats reporting */
- WMI_SERVICE_WIFI_RADAR_SUPPORT = 400, /* FW supports wifi radar */
- WMI_SERVICE_P2P_DEVICE_UPDATE_MAC_ADDR_SUPPORT = 401, /* indicate FW support dynamic update mac address for P2P device */
- WMI_SERVICE_DCS_OBSS_INT_SUPPORT = 402, /* Indicates FW supports OBSS Interference detection */
- WMI_SERVICE_DYNAMIC_WSI_REMAP_SUPPORT = 403, /* WSI bypass remap is supported by Firmware */
- WMI_SERVICE_QMS_DLKM_SUPPORT = 404, /* DEPRECATED */
- WMI_SERVICE_SMEM_MAILBOX_SUPPORT = 404, /* FW code has smem_mailbox support enabled */
- WMI_SERVICE_REG_CC_EXT2_EVENT_SUPPORT = 405, /* DEPRECATED */
- WMI_SERVICE_MLO_MODE2_RECOVERY_SUPPORTED = 406, /* Indicate FW support for MLO mode2 recovery */
- WMI_SERVICE_MSDUQ_RECFG = 407, /* FW support the HTT MSDUQ_RECFG_REQ + MSDUQ_CFG_IND messages */
- WMI_SERVICE_TRAFFIC_CONTEXT_SUPPORT = 408, /* FW supports traffic context aware manager */
- WMI_SERVICE_STA_SAP_NDP_CONCURRENCY_SUPPORT = 409, /* FW supports STA + SAP + NDP concurrency */
- WMI_SERVICE_THERM_THROT_POUT_REDUCTION = 410, /* FW supports thermal throttling Pout reduction */
- WMI_SERVICE_E2E_SDWF_SUPPORT = 411, /* FW supports end-to-end SDWF features like SDWF scheduler */
- WMI_SERVICE_EPM = 412, /* FW supports enhanced power management */
- WMI_SERVICE_CHIPSET_LOGGING_SUPPORT = 413, /* FW supports chipset logging feature */
- WMI_SERVICE_SUPPORT_AP_SUSPEND_RESUME = 414, /* FW supports SAP suspend feature */
- WMI_SERVICE_STA_P2P_NDP_CONCURRENCY_SUPPORT = 415, /* FW supports STA + P2P + NAN concurrency */
- WMI_SERVICE_USE_STA_VDEV_FOR_P2P_DEVICE = 416, /* FW supports use of sta vdev to be repurposed for p2p device */
- WMI_SERVICE_AP_ASSISTED_DFS_CHAN_P2P_SESSION = 417, /* FW supports P2P session on DFS chan enabled by DFS master AP */
- WMI_SERVICE_MLO_SAP_EMLSR_SUPPORT = 418, /* Indicates FW MLO SAP supports EMLSR Mode */
- WMI_SERVICE_PKTLOG_ML_TSTMP_SUPPORT = 419, /* Indicates ML timestamp for pktlog */
- WMI_SERVICE_MGMT_SRNG_SUPPORT = 420, /* FW supports MGMT frame forwarding via host provided SRNG instead of WMI */
- WMI_SERVICE_WDS_NULL_FRAME_SUPPORT = 421,
- WMI_SERVICE_MLO_SAP_CONCURRENCY_SUPPORT = 422, /* Indicates FW supports MLO SAP+STA Concurrency */
- WMI_SERVICE_MEC_AGING_TIMER_SUPPORT = 423, /* FW supports multicast echo check aging timer */
- WMI_SERVICE_MULTI_RSNO_SUPPORT = 424, /* FW supports parsing of multiple RSN override IEs */
- /* WMI_SERVICE_IS_TARGET_IPA:
- * FW indicates to host whether the target is IPA or xFEM.
- * If this flag is 0, the target is XFEM or unspecified.
- * If this flag is 1, the target is IPA.
- */
- WMI_SERVICE_IS_TARGET_IPA = 425,
- WMI_SERVICE_THERM_THROT_TX_CHAIN_MASK = 426, /*FW supports thermal throttling dynamic Tx ChainMask update */
- WMI_SERVICE_SPLIT_PHY_PDEV_SUSPEND_RESUME_SUPPORT = 427, /* Indicates FW support pdev suspend/resume in split-phy radio */
- WMI_MAX_EXT2_SERVICE
- } WMI_SERVICE;
- #define WMI_SERVICE_BM_SIZE ((WMI_MAX_SERVICE + sizeof(A_UINT32)- 1)/sizeof(A_UINT32))
- #define WMI_NUM_EXT_SERVICES (WMI_MAX_EXT_SERVICE - WMI_MAX_SERVICE)
- #define WMI_NUM_EXT2_SERVICES (WMI_MAX_EXT2_SERVICE - WMI_MAX_EXT_SERVICE)
- /*
- * TEMPORARY WORKAROUND
- * Virtually all branches of the target utilize an incorrect check on
- * the value of WMI_SERVICE_EXT_BM_SIZE32, checking that
- * WMI_SERVICE_EXT_BM_SIZE32 < 4, rather than WMI_SERVICE_EXT_BM_SIZE32 <= 4.
- * Until all target branches are fixed, this check is being disabled
- * by artificially setting WMI_SERVICE_EXT_BM_SIZE32 to 0, rather than
- * the number of 4-byte words required for holding the WMI extension
- * service flags.
- */
- #if 0
- #define WMI_SERVICE_EXT_BM_SIZE32 ((WMI_NUM_EXT_SERVICES + 31) / 32)
- #else
- #define WMI_SERVICE_EXT_BM_SIZE32 0
- #endif
- #define WMI_SERVICE_ROAM_OFFLOAD WMI_SERVICE_ROAM_SCAN_OFFLOAD /* depreciated the name WMI_SERVICE_ROAM_OFFLOAD, but here to help compiling with old host driver */
- /*
- * turn on the WMI service bit corresponding to the WMI service.
- */
- #define WMI_SERVICE_ENABLE(pwmi_svc_bmap,svc_id) \
- ( (pwmi_svc_bmap)[(svc_id)/(sizeof(A_UINT32))] |= \
- ((A_UINT32) 1 << ((svc_id)%(sizeof(A_UINT32)))) )
- #define WMI_SERVICE_DISABLE(pwmi_svc_bmap,svc_id) \
- ( (pwmi_svc_bmap)[(svc_id)/(sizeof(A_UINT32))] &= \
- ( ~((A_UINT32) 1 << ((svc_id)%(sizeof(A_UINT32)))) ) )
- #define WMI_SERVICE_IS_ENABLED(pwmi_svc_bmap,svc_id) \
- ( ((pwmi_svc_bmap)[(svc_id)/(sizeof(A_UINT32))] & \
- ((A_UINT32) 1 << ((svc_id)%(sizeof(A_UINT32)))) ) != 0)
- #define WMI_SERVICE_EXT_ENABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) \
- do { \
- if (svc_id < WMI_MAX_SERVICE) { \
- WMI_SERVICE_ENABLE(pwmi_svc_bmap, svc_id); \
- } else { \
- int word = ((svc_id) - WMI_MAX_SERVICE) / 32; \
- int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
- (pwmi_svc_ext_bmap)[word] |= ((A_UINT32) 1 << bit); \
- } \
- } while (0)
- #define WMI_SERVICE_EXT_DISABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) \
- do { \
- if (svc_id < WMI_MAX_SERVICE) { \
- WMI_SERVICE_DISABLE(pwmi_svc_bmap, svc_id); \
- } else { \
- int word = ((svc_id) - WMI_MAX_SERVICE) / 32; \
- int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
- (pwmi_svc_ext_bmap)[word] &= ~((A_UINT32) 1 << bit); \
- } \
- } while (0)
- #define WMI_SERVICE_EXT_IS_ENABLED(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) \
- /* If the service ID is beyond the known limit, treat it as disabled */ \
- ((svc_id) >= WMI_MAX_EXT_SERVICE ? 0 : \
- /* If service ID is in the non-extension range, use the old check */ \
- (svc_id) < WMI_MAX_SERVICE ? \
- WMI_SERVICE_IS_ENABLED(pwmi_svc_bmap, svc_id) : \
- /* If service ID is in the extended range, check ext_bmap */ \
- (((pwmi_svc_ext_bmap)[((svc_id) - WMI_MAX_SERVICE) / 32] >> \
- ((svc_id) & 0x1f)) & 0x1))
- #define WMI_SERVICE_EXT2_ENABLE( \
- pwmi_svc_bmap, pwmi_svc_ext_bmap, pwmi_svc_ext2_bmap, svc_id) \
- do { \
- if (svc_id < WMI_MAX_SERVICE) { \
- WMI_SERVICE_ENABLE(pwmi_svc_bmap, svc_id); \
- } else if (svc_id < WMI_MAX_EXT_SERVICE) { \
- WMI_SERVICE_EXT_ENABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id); \
- } else { \
- int word = ((svc_id) - WMI_MAX_EXT_SERVICE) / 32; \
- int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
- (pwmi_svc_ext2_bmap)[word] |= ((A_UINT32) 1 << bit); \
- } \
- } while (0)
- #define WMI_SERVICE_EXT2_DISABLE( \
- pwmi_svc_bmap, pwmi_svc_ext_bmap, pwmi_svc_ext2_bmap, svc_id) \
- do { \
- if (svc_id < WMI_MAX_SERVICE) { \
- WMI_SERVICE_DISABLE(pwmi_svc_bmap, svc_id); \
- } else if (svc_id < WMI_MAX_EXT_SERVICE) { \
- WMI_SERVICE_EXT_DISABLE(pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id); \
- } else { \
- int word = ((svc_id) - WMI_MAX_EXT_SERVICE) / 32; \
- int bit = (svc_id) & 0x1f; /* svc_id mod 32 */ \
- (pwmi_svc_ext2_bmap)[word] &= ~((A_UINT32) 1 << bit); \
- } \
- } while (0)
- #define WMI_SERVICE_EXT2_IS_ENABLED( \
- pwmi_svc_bmap, pwmi_svc_ext_bmap, pwmi_svc_ext2_bmap, svc_id) \
- /* If the service ID is beyond the known limit, treat it as disabled */ \
- ((svc_id) >= WMI_MAX_EXT2_SERVICE ? 0 : \
- /* If service ID is in the non-extension range, use the old check */ \
- (svc_id) < WMI_MAX_SERVICE ? \
- WMI_SERVICE_IS_ENABLED(pwmi_svc_bmap, svc_id) : \
- /* If service ID is in the 1st extended range, check ext_bmap */ \
- (svc_id) < WMI_MAX_EXT_SERVICE ? \
- WMI_SERVICE_EXT_IS_ENABLED( \
- pwmi_svc_bmap, pwmi_svc_ext_bmap, svc_id) : \
- /* \
- * If service ID is in the 2nd extended range, check ext2_bmap \
- */ \
- (((pwmi_svc_ext2_bmap)[((svc_id) - WMI_MAX_EXT_SERVICE) / 32] >> \
- ((svc_id) & 0x1f)) & 0x1))
- #ifdef __cplusplus
- }
- #endif
- #endif /*_WMI_SERVICES_H_*/
|