Lines Matching +full:ieee80211 +full:- +full:freq +full:- +full:limit

1 /* SPDX-License-Identifier: ISC */
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
12 #include <linux/ieee80211.h>
28 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff
44 * variable is already 4-byte aligned by virtue of being a u32
525 /* This extension is required to accommodate new services, current limit
526 * for wmi_services is 64 as target is using only 4-bits of each 32-bit
532 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \
533 BIT(((((svc_id) - (len)) % 28) & 0x1f) + 4))
1159 /** DFS-specific commands */
1186 /* Rate-control specific commands */
1411 /* DFS-specific commands */
1438 /* Rate-control specific commands */
1479 WMI_10X_PDEV_UTF_CMDID = WMI_10X_END_CMDID - 1,
1542 WMI_10X_PDEV_UTF_EVENTID = WMI_10X_END_EVENTID - 1,
1665 WMI_10_2_PDEV_UTF_CMDID = WMI_10_2_END_CMDID - 1,
1710 WMI_10_2_PDEV_UTF_EVENTID = WMI_10_2_END_EVENTID - 1,
1891 WMI_10_4_PDEV_UTF_CMDID = WMI_10_4_END_CMDID - 1,
1969 WMI_10_4_PDEV_UTF_EVENTID = WMI_10_4_END_EVENTID - 1,
2006 return "11na-ht20"; in ath10k_wmi_phymode_str()
2008 return "11ng-ht20"; in ath10k_wmi_phymode_str()
2010 return "11na-ht40"; in ath10k_wmi_phymode_str()
2012 return "11ng-ht40"; in ath10k_wmi_phymode_str()
2014 return "11ac-vht20"; in ath10k_wmi_phymode_str()
2016 return "11ac-vht40"; in ath10k_wmi_phymode_str()
2018 return "11ac-vht80"; in ath10k_wmi_phymode_str()
2020 return "11ac-vht160"; in ath10k_wmi_phymode_str()
2022 return "11ac-vht80+80"; in ath10k_wmi_phymode_str()
2024 return "11ac-vht20-2g"; in ath10k_wmi_phymode_str()
2026 return "11ac-vht40-2g"; in ath10k_wmi_phymode_str()
2028 return "11ac-vht80-2g"; in ath10k_wmi_phymode_str()
2076 u32 freq; member
2119 #define WMI_HT_CAP_RX_STBC 0x0030 /* B4-B5 RX STBC */
2122 #define WMI_HT_CAP_L_SIG_TXOP_PROT 0x0080 /* L-SIG TXOP Protection */
2181 #define WMI_VHT_MAX_MCS_4_SS_MASK(r, ss) ((3 & (r)) << (((ss) - 1) << 1))
2187 REGDMN_MODE_TURBO = 0x00002, /* 11a turbo-only channels */
2196 REGDMN_MODE_11NG_HT20 = 0x00800, /* 11N-G HT20 channels */
2197 REGDMN_MODE_11NA_HT20 = 0x01000, /* 11N-A HT20 channels */
2198 REGDMN_MODE_11NG_HT40PLUS = 0x02000, /* 11N-G HT40 + channels */
2199 REGDMN_MODE_11NG_HT40MINUS = 0x04000, /* 11N-G HT40 - channels */
2200 REGDMN_MODE_11NA_HT40PLUS = 0x08000, /* 11N-A HT40 + channels */
2201 REGDMN_MODE_11NA_HT40MINUS = 0x10000, /* 11N-A HT40 - channels */
2204 REGDMN_MODE_11AC_VHT40MINUS = 0x80000, /* 5Ghz VHT40 - channels */
2374 /* For target-based RX reordering */
2400 * This configuration parameter specifies the nominal chain-mask that
2412 * This configuration parameter specifies the nominal chain-mask that
2420 * Each WMM access class (voice, video, best-effort, background) will
2454 * how many groups to use for mcast->ucast conversion
2458 * multicast->unicast conversion is enabled, the target can convert
2479 * whether/how to do multicast->unicast conversion
2482 * perform multicast --> unicast conversion on transmit, and if so,
2486 * 0 -> Do not perform multicast to unicast conversion.
2487 * 1 -> Convert multicast frames to unicast, if the IP multicast
2491 * 2 -> Convert multicast frames to unicast, if the IP multicast
2502 * to store a log of tx PPDU meta-information (how large the PPDU
2511 * MAC DMA burst size, e.g., For target PCI limit can be
2512 * 0 -default, 1 256B
2524 * non-aggregate MPDU and timing out stale fragments.
2526 * A-MPDU reordering is always performed on the target.
2585 * This configuration parameter specifies the nominal chain-mask that
2597 * This configuration parameter specifies the nominal chain-mask that
2605 * Each WMM access class (voice, video, best-effort, background) will
2639 * how many groups to use for mcast->ucast conversion
2643 * multicast->unicast conversion is enabled, the target can convert
2664 * whether/how to do multicast->unicast conversion
2667 * perform multicast --> unicast conversion on transmit, and if so,
2671 * 0 -> Do not perform multicast to unicast conversion.
2672 * 1 -> Convert multicast frames to unicast, if the IP multicast
2676 * 2 -> Convert multicast frames to unicast, if the IP multicast
2687 * to store a log of tx PPDU meta-information (how large the PPDU
2696 * MAC DMA burst size, e.g., For target PCI limit can be
2697 * 0 -default, 1 256B
2709 * non-aggregate MPDU and timing out stale fragments.
2711 * A-MPDU reordering is always performed on the target.
2748 __le32 smart_ant_cap; /* 0-disable, 1-enable */
2802 * This configuration parameter specifies the nominal chain-mask that
2812 * chain-mask that should be used when not operating with a reduced
2818 * Each WMM access class (voice, video, best-effort, background) will
2841 /* How many groups to use for mcast->ucast conversion.
2844 * multicast->unicast conversion is enabled, the target can convert
2861 /* Whether/how to do multicast->unicast conversion.
2863 * perform multicast --> unicast conversion on transmit, and if so,
2867 * 0 -> Do not perform multicast to unicast conversion.
2868 * 1 -> Convert multicast frames to unicast, if the IP multicast address
2871 * 2 -> Convert multicast frames to unicast, if the IP multicast address
2880 * store a log of tx PPDU meta-information (how large the PPDU was,
2888 /* MAC DMA burst size. 0 -default, 1 -256B */
2897 * non-aggregate MPDU and timing out stale fragments. A-MPDU reordering
2930 * 1 - Smart antenna is enabled
2931 * 0 - Smart antenna is disabled
2945 * 1 - Rx batch mode enabled
2946 * 0 - Rx batch mode disabled
2951 * 1 - Capable of thermal throttling
2952 * 0 - Not capable of thermal throttling
2957 * 1 - Enable ATF
2958 * 0 - Disable ATF
2962 /* Configure padding to manage IP header un-alignment
2963 * 1 - Enable padding
2964 * 0 - Disable padding
2968 /* qwrap configuration (bits 15-0)
2969 * 1 - This is qwrap configuration
2970 * 0 - This is not qwrap
2972 * Bits 31-16 is alloc_frag_desc_for_data_pkt (1 enables, 0 disables)
2973 * In order to get ack-RSSI reporting and to specify the tx-rate for
2975 * 4 bytes per tx-msdu descriptor, so don't enable it unless you need it.
2993 * enum wmi_10_4_feature_mask - WMI 10.4 feature enable/disable flags
3093 __le16 freq; member
3352 /* possibly by high-prio scan */
3673 ATH10K_PROT_RTSCTS = 2, /* RTS-CTS */
3704 /* Bit 0-15: FC */
3705 /* Bit 16-31: DUR */
3825 /* TX power limit for 2G Radio */
3827 /* TX power limit for 5G Radio */
3842 * 0: no protection 1:use CTS-to-self 2: use RTS/CTS
3846 * Dynamic bandwidth - 0: disable, 1: enable
3852 /* Non aggregrate/ 11g sw retry threshold.0-disable */
3854 /* aggregrate sw retry threshold. 0-disable*/
3856 /* Station kickout threshold (non of consecutive failures).0-disable */
3874 /* LTR-RX override, in us */
3929 /* TX power limit for 2G Radio */
3931 /* TX power limit for 5G Radio */
3946 * 0: no protection 1:use CTS-to-self 2: use RTS/CTS
3951 /* Non aggregrate/ 11g sw retry threshold.0-disable */
3953 /* aggregrate sw retry threshold. 0-disable*/
3955 /* Station kickout threshold (non of consecutive failures).0-disable */
3973 /* LTR-RX override, in us */
4198 WMI_TP_SCALE_50 = 1, /* 50% of max (-3 dBm) */
4199 WMI_TP_SCALE_25 = 2, /* 25% of max (-6 dBm) */
4200 WMI_TP_SCALE_12 = 3, /* 12% of max (-9 dBm) */
4283 /* idnore power , only use flags , mode and freq */
4291 /* Customize the DSCP (bit) to TID (0-7) mapping for QOS */
4353 /* Num MSDUs dropped by WMM limit */
4401 /* frames dropped due to non-availability of stateless TIDs */
4406 /* MPDU is more than txop limit */
4423 /* Num MSDUs dropped by WMM limit */
4474 /* frames dropped due to non-availability of stateless TIDs */
4479 /* MPDU is more than txop limit */
4516 /* Cnts any change in ring routing mid-ppdu */
4522 /* Extra frags on rings 0-3 */
4545 /* Number of mpdu errors - FCS, MIC, ENC etc. */
4666 __le32 cycle_count; /* Total on-channel time */
5001 #define WMI_KEY_TX_USAGE 0x02 /* default tx key - static wep */
5066 * - preamble - b7:b6 - see WMI_RATE_PREMABLE_
5067 * - nss - b5:b4 - ss number (0 mean 1ss)
5068 * - rate_mcs - b3:b0 - as below
5069 * CCK: 0 - 11Mbps, 1 - 5,5Mbps, 2 - 2Mbps, 3 - 1Mbps,
5070 * 4 - 11Mbps (s), 5 - 5,5Mbps (s), 6 - 2Mbps (s)
5071 * OFDM: 0 - 48Mbps, 1 - 24Mbps, 2 - 12Mbps, 3 - 6Mbps,
5072 * 4 - 54Mbps, 5 - 36Mbps, 6 - 18Mbps, 7 - 9Mbps
5234 * scheduler air time limit for this VDEV. used by off chan
5280 /* Set the custom rate (rate-code) for multicast data frames */
5296 * 802.11 data-null as a keep alive to verify the STA is still
5297 * associated. If the STA does ACK the data-null, or if the data-null
5314 /* Enable/Disable RTS-CTS */
5323 * Drops un-encrypted packets if eceived in an encrypted connection
5366 * scheduler air time limit for this VDEV. used by off chan
5408 /* Set the custom rate (rate-code) for multicast data frames */
5424 * 802.11 data-null as a keep alive to verify the STA is still
5425 * associated. If the STA does ACK the data-null, or if the data-null
5444 /* Enable/Disable RTS-CTS */
5617 /* TODO: please add more comments if you have in-depth information */
5626 /* number of bins in the FFT: 2^(fft_size - bin_scale) */
5642 * 1: 2-dword summary of metrics for each completed FFT + spectral
5644 * 2: 2-dword summary of metrics for each completed FFT +
5645 * 1x- oversampled bins(in-band) per FFT + spectral scan summary
5647 * 3: 2-dword summary of metrics for each completed FFT +
5648 * 2x- oversampled bins (all) per FFT + spectral scan summary
5685 #define WMI_SPECTRAL_NOISE_FLOOR_REF_DEFAULT -96
5743 /* physical address of the frame - dma pointer */
5765 /* Filter type - wmi_bcn_filter */
5866 * access categories are delivery-enabled, the station will send a
5867 * UAPSD trigger frame, otherwise it will send a PS-Poll.
5891 * The maximum number of PS-Poll frames the FW will send in response to
5894 * will send as many PS-Poll as are necessary to retrieve buffered BU. This
5902 * Values greater than 0 indicate the maximum numer of PS-Poll frames
5906 /* When u-APSD is enabled the firmware will be very reluctant to exit
5908 * PS-Poll for each and every buffered frame. This value is a bit
5977 * Number of PS-Poll to send before STA wakes up
6021 /* U-APSD configuration of peer station from (re)assoc request and TSPECs */
6033 /* U-APSD maximum service period of peer station */
6113 /* Bit 0 - Flag to indicate an update in NOA schedule
6114 * Bits 7-1 - Reserved
6119 /* Bit 0 - Opp PS state of the AP
6120 * Bits 1-7 - Ctwindow in TUs
6163 /* Bit 0 - Flag to indicate an update in NOA schedule
6164 * Bits 7-1 - Reserved
6169 /* Bit 0 - Opp PS state of the AP
6170 * Bits 1-7 - Ctwindow in TUs
6587 __le32 freq; member
6596 __le32 freq; member
6642 /* Firmware crashes if keepalive interval exceeds this limit */
6836 __le32 freq; member
6950 __le32 freq; member
7025 WOW_REASON_UNSPECIFIED = -1,
7109 #define WOW_MAX_REDUCE (WOW_HDR_LEN - sizeof(struct ethhdr) - \