123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- /*
- * Copyright (c) 2018 The Linux Foundation. All rights reserved.
- *
- * 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.
- */
- /*
- * DOC: contains mlme structure definations
- */
- #ifndef _WLAN_MLME_STRUCT_H_
- #define _WLAN_MLME_STRUCT_H_
- #include <wlan_cmn.h>
- /**
- * struct mlme_ht_capabilities_info - HT Capabilities Info
- * @l_sig_tx_op_protection: L-SIG TXOP Protection Mechanism support
- * @stbc_control_frame: STBC Control frame support
- * @psmp: PSMP Support
- * @dsss_cck_mode_40_mhz: To indicate use of DSSS/CCK in 40Mhz
- * @maximal_amsdu_size: Maximum AMSDU Size - 0:3839 octes, 1:7935 octets
- * @delayed_ba: Support of Delayed Block Ack
- * @rx_stbc: Rx STBC Support - 0:Not Supported, 1: 1SS, 2: 1,2SS, 3: 1,2,3SS
- * @tx_stbc: Tx STBC Support
- * @short_gi_40_mhz: Short GI Support for HT40
- * @short_gi_20_mhz: Short GI support for HT20
- * @green_field: Support for HT Greenfield PPDUs
- * @mimo_power_save: SM Power Save Mode - 0:Static, 1:Dynamic, 3:Disabled, 2:Res
- * @supported_channel_width_set: Supported Chan Width - 0:20Mhz, 1:20Mhz & 40Mhz
- * @adv_coding_cap: Rx LDPC support
- */
- #ifndef ANI_LITTLE_BIT_ENDIAN
- struct mlme_ht_capabilities_info {
- uint16_t l_sig_tx_op_protection:1;
- uint16_t stbc_control_frame:1;
- uint16_t psmp:1;
- uint16_t dsss_cck_mode_40_mhz:1;
- uint16_t maximal_amsdu_size:1;
- uint16_t delayed_ba:1;
- uint16_t rx_stbc:2;
- uint16_t tx_stbc:1;
- uint16_t short_gi_40_mhz:1;
- uint16_t short_gi_20_mhz:1;
- uint16_t green_field:1;
- uint16_t mimo_power_save:2;
- uint16_t supported_channel_width_set:1;
- uint16_t adv_coding_cap:1;
- } qdf_packed;
- #else
- struct mlme_ht_capabilities_info {
- uint16_t adv_coding_cap:1;
- uint16_t supported_channel_width_set:1;
- uint16_t mimo_power_save:2;
- uint16_t green_field:1;
- uint16_t short_gi_20_mhz:1;
- uint16_t short_gi_40_mhz:1;
- uint16_t tx_stbc:1;
- uint16_t rx_stbc:2;
- uint16_t delayed_ba:1;
- uint16_t maximal_amsdu_size:1;
- uint16_t dsss_cck_mode_40_mhz:1;
- uint16_t psmp:1;
- uint16_t stbc_control_frame:1;
- uint16_t l_sig_tx_op_protection:1;
- } qdf_packed;
- #endif
- /**
- * struct wlan_mlme_ht_caps - HT Capabilities related config items
- * @ht_cap_info: HT capabilities Info Structure
- */
- struct wlan_mlme_ht_caps {
- struct mlme_ht_capabilities_info ht_cap_info;
- };
- struct wlan_mlme_vht_caps {
- /* VHT related configs */
- };
- /**
- * struct wlan_mlme_rates - RATES related config items
- * @cfpPeriod: cfp period info
- * @cfpMaxDuration: cfp Max duration info
- * @max_htmcs_txdata: max HT mcs info for Tx
- * @disable_abg_rate_txdata: disable abg rate info for tx data
- * @sap_max_mcs_txdata: sap max mcs info
- * @disable_high_ht_mcs_2x2: disable high mcs for 2x2 info
- */
- struct wlan_mlme_rates {
- uint8_t cfp_period;
- uint16_t cfp_max_duration;
- uint16_t max_htmcs_txdata;
- bool disable_abg_rate_txdata;
- uint16_t sap_max_mcs_txdata;
- uint8_t disable_high_ht_mcs_2x2;
- };
- /**
- * struct wlan_mlme_cfg - MLME config items
- * @ht_cfg: HT related CFG Items
- * @vht_cfg: VHT related CFG Items
- * @rates: Rates related cfg items
- */
- struct wlan_mlme_cfg {
- struct wlan_mlme_ht_caps ht_caps;
- struct wlan_mlme_vht_caps vht_caps;
- struct wlan_mlme_rates rates;
- };
- #endif
|