Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | * DOC: contains mlme structure definations |
| 21 | */ |
| 22 | |
| 23 | #ifndef _WLAN_MLME_STRUCT_H_ |
| 24 | #define _WLAN_MLME_STRUCT_H_ |
| 25 | |
| 26 | #include <wlan_cmn.h> |
| 27 | |
| 28 | /** |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame^] | 29 | * struct mlme_ht_capabilities_info - HT Capabilities Info |
| 30 | * @lsigTXOPProtection: L-SIG TXOP Protection Mechanism support |
| 31 | * @stbcControlFrame: STBC Control frame support |
| 32 | * @psmp: PSMP Support |
| 33 | * @dsssCckMode40MHz: To indicate use of DSSS/CCK in 40Mhz |
| 34 | * @maximalAMSDUsize: Maximum AMSDU Size - 0:3839 octes, 1:7935 octets |
| 35 | * @delayedBA: Support of Delayed Block Ack |
| 36 | * @rxSTBC: Rx STBC Support - 0:Not Supported, 1: 1SS, 2: 1,2SS, 3: 1,2,3SS |
| 37 | * @txSTBC: Tx STBC Support |
| 38 | * @shortGI40MHz: Short GI Support for HT40 |
| 39 | * @shortGI20MHz: Short GI support for HT20 |
| 40 | * @greenField: Support for HT Greenfield PPDUs |
| 41 | * @mimoPowerSave: SM Power Save Mode - 0:Static, 1:Dynamic, 3:Disabled, 2:Res |
| 42 | * @supportedChannelWidthSet: Supported Channel Width - 0:20Mhz, 1:20Mhz & 40Mhz |
| 43 | * @advCodingCap: Rx LDPC support |
| 44 | */ |
| 45 | #ifndef ANI_LITTLE_BIT_ENDIAN |
| 46 | struct mlme_ht_capabilities_info { |
| 47 | uint16_t lsigTXOPProtection:1; |
| 48 | uint16_t stbcControlFrame:1; |
| 49 | uint16_t psmp:1; |
| 50 | uint16_t dsssCckMode40MHz:1; |
| 51 | uint16_t maximalAMSDUsize:1; |
| 52 | uint16_t delayedBA:1; |
| 53 | uint16_t rxSTBC:2; |
| 54 | uint16_t txSTBC:1; |
| 55 | uint16_t shortGI40MHz:1; |
| 56 | uint16_t shortGI20MHz:1; |
| 57 | uint16_t greenField:1; |
| 58 | uint16_t mimoPowerSave:2; |
| 59 | uint16_t supportedChannelWidthSet:1; |
| 60 | uint16_t advCodingCap:1; |
| 61 | } qdf_packed; |
| 62 | #else |
| 63 | struct mlme_ht_capabilities_info { |
| 64 | uint16_t advCodingCap:1; |
| 65 | uint16_t supportedChannelWidthSet:1; |
| 66 | uint16_t mimoPowerSave:2; |
| 67 | uint16_t greenField:1; |
| 68 | uint16_t shortGI20MHz:1; |
| 69 | uint16_t shortGI40MHz:1; |
| 70 | uint16_t txSTBC:1; |
| 71 | uint16_t rxSTBC:2; |
| 72 | uint16_t delayedBA:1; |
| 73 | uint16_t maximalAMSDUsize:1; |
| 74 | uint16_t dsssCckMode40MHz:1; |
| 75 | uint16_t psmp:1; |
| 76 | uint16_t stbcControlFrame:1; |
| 77 | uint16_t lsigTXOPProtection:1; |
| 78 | } qdf_packed; |
| 79 | #endif |
| 80 | |
| 81 | /** |
| 82 | * struct wlan_mlme_ht_caps - HT Capabilities related config items |
| 83 | * @ht_cap_info: HT capabilities Info Structure |
| 84 | */ |
| 85 | struct wlan_mlme_ht_caps { |
| 86 | struct mlme_ht_capabilities_info ht_cap_info; |
| 87 | }; |
| 88 | |
| 89 | struct wlan_mlme_vht_caps { |
| 90 | /* VHT related configs */ |
| 91 | }; |
| 92 | |
| 93 | /** |
| 94 | * struct wlan_mlme_cfg - MLME config items |
| 95 | * @ht_cfg: HT related CFG Items |
| 96 | * @vht_cfg: VHT related CFG Items |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 97 | */ |
| 98 | struct wlan_mlme_cfg { |
Vignesh Viswanathan | 21c58cb | 2018-05-24 15:53:58 +0530 | [diff] [blame^] | 99 | struct wlan_mlme_ht_caps ht_caps; |
| 100 | struct wlan_mlme_vht_caps vht_caps; |
Sandeep Puligilla | c5609d5 | 2018-05-17 19:23:41 -0700 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | #endif |