12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709 |
- /*
- * 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>
- #include <reg_services_public_struct.h>
- #include <wmi_unified_param.h>
- #include <sir_api.h>
- #define CFG_PMKID_MODES_OKC (0x1)
- #define CFG_PMKID_MODES_PMKSA_CACHING (0x2)
- #define CFG_VHT_BASIC_MCS_SET_STADEF 0xFFFE
- #define CFG_VHT_RX_MCS_MAP_STAMIN 0
- #define CFG_VHT_RX_MCS_MAP_STAMAX 0xFFFF
- #define CFG_VHT_RX_MCS_MAP_STADEF 0xFFFE
- #define CFG_VHT_TX_MCS_MAP_STAMIN 0
- #define CFG_VHT_TX_MCS_MAP_STAMAX 0xFFFF
- #define CFG_VHT_TX_MCS_MAP_STADEF 0xFFFE
- #define CFG_STR_DATA_LEN 17
- #define CFG_EDCA_DATA_LEN 17
- #define CFG_MAX_TX_POWER_2_4_LEN 128
- #define CFG_MAX_TX_POWER_5_LEN 128
- #define CFG_POWER_USAGE_MAX_LEN 4
- #define CFG_VALID_CHANNEL_LIST_LEN 100
- #define CFG_VALID_CHANNEL_LIST_STRING_LEN (CFG_VALID_CHANNEL_LIST_LEN * 4)
- /**
- * struct mlme_cfg_str - generic structure for all mlme CFG string items
- *
- * @max_len: maximum data length allowed
- * @len: valid no. of elements of the data
- * @data: uint8_t array to store values
- */
- struct mlme_cfg_str {
- qdf_size_t max_len;
- qdf_size_t len;
- uint8_t data[CFG_STR_DATA_LEN];
- };
- /**
- * enum e_edca_type - to index edca params for edca profile
- * EDCA profile AC unicast/bcast
- * @edca_ani_acbe_local: ani BE unicast
- * @edca_ani_acbk_local: ani BK unicast
- * @edca_ani_acvi_local: ani VI unicast
- * @edca_ani_acvo_local: ani VO unicast
- * @edca_ani_acbe_bcast: ani BE bcast
- * @edca_ani_acbk_bcast: ani BK bcast
- * @edca_ani_acvi_bcast: ani VI bcast
- * @edca_ani_acvo_bcast: ani VO bcast
- * @edca_wme_acbe_local: wme BE unicast
- * @edca_wme_acbk_local: wme BK unicast
- * @edca_wme_acvi_local: wme VI unicast
- * @edca_wme_acvo_local: wme VO unicast
- * @edca_wme_acbe_bcast: wme BE bcast
- * @edca_wme_acbk_bcast: wme BK bcast
- * @edca_wme_acvi_bcast: wme VI bcast
- * @edca_wme_acvo_bcast: wme VO bcast
- * @edca_etsi_acbe_local: etsi BE unicast
- * @edca_etsi_acbk_local: etsi BK unicast
- * @edca_etsi_acvi_local: etsi VI unicast
- * @edca_etsi_acvo_local: etsi VO unicast
- * @edca_etsi_acbe_bcast: etsi BE bcast
- * @edca_etsi_acbk_bcast: etsi BK bcast
- * @edca_etsi_acvi_bcast: etsi VI bcast
- * @edca_etsi_acvo_bcast: etsi VO bcast
- */
- enum e_edca_type {
- edca_ani_acbe_local,
- edca_ani_acbk_local,
- edca_ani_acvi_local,
- edca_ani_acvo_local,
- edca_ani_acbe_bcast,
- edca_ani_acbk_bcast,
- edca_ani_acvi_bcast,
- edca_ani_acvo_bcast,
- edca_wme_acbe_local,
- edca_wme_acbk_local,
- edca_wme_acvi_local,
- edca_wme_acvo_local,
- edca_wme_acbe_bcast,
- edca_wme_acbk_bcast,
- edca_wme_acvi_bcast,
- edca_wme_acvo_bcast,
- edca_etsi_acbe_local,
- edca_etsi_acbk_local,
- edca_etsi_acvi_local,
- edca_etsi_acvo_local,
- edca_etsi_acbe_bcast,
- edca_etsi_acbk_bcast,
- edca_etsi_acvi_bcast,
- edca_etsi_acvo_bcast
- };
- #define CFG_EDCA_PROFILE_ACM_IDX 0
- #define CFG_EDCA_PROFILE_AIFSN_IDX 1
- #define CFG_EDCA_PROFILE_CWMINA_IDX 2
- #define CFG_EDCA_PROFILE_CWMAXA_IDX 4
- #define CFG_EDCA_PROFILE_TXOPA_IDX 6
- #define CFG_EDCA_PROFILE_CWMINB_IDX 7
- #define CFG_EDCA_PROFILE_CWMAXB_IDX 9
- #define CFG_EDCA_PROFILE_TXOPB_IDX 11
- #define CFG_EDCA_PROFILE_CWMING_IDX 12
- #define CFG_EDCA_PROFILE_CWMAXG_IDX 14
- #define CFG_EDCA_PROFILE_TXOPG_IDX 16
- /**
- * struct mlme_edca_ac_vo - cwmin, cwmax and aifs value for edca_ac_vo
- *
- * @vo_cwmin: cwmin value for voice
- * @vo_cwmax: cwmax value for voice
- * @vo_aifs: aifs value for voice
- */
- struct mlme_edca_ac_vo {
- uint32_t vo_cwmin;
- uint32_t vo_cwmax;
- uint32_t vo_aifs;
- };
- /**
- * struct mlme_edca_ac_vi - cwmin, cwmax and aifs value for edca_ac_vi
- *
- * @vi_cwmin: cwmin value for video
- * @vi_cwmax: cwmax value for video
- * @vi_aifs: aifs value for video
- */
- struct mlme_edca_ac_vi {
- uint32_t vi_cwmin;
- uint32_t vi_cwmax;
- uint32_t vi_aifs;
- };
- /**
- * struct mlme_edca_ac_bk - cwmin, cwmax and aifs value for edca_ac_bk
- *
- * @bk_cwmin: cwmin value for background
- * @bk_cwmax: cwmax value for background
- * @bk_aifs: aifs value for background
- */
- struct mlme_edca_ac_bk {
- uint32_t bk_cwmin;
- uint32_t bk_cwmax;
- uint32_t bk_aifs;
- };
- /**
- * struct mlme_edca_ac_be - cwmin, cwmax and aifs value for edca_ac_be
- *
- * @be_cwmin: cwmin value for best effort
- * @be_cwmax: cwmax value for best effort
- * @be_aifs: aifs value for best effort
- */
- struct mlme_edca_ac_be {
- uint32_t be_cwmin;
- uint32_t be_cwmax;
- uint32_t be_aifs;
- };
- /**
- * enum mlme_ts_info_ack_policy - TS Info Ack Policy
- * @TS_INFO_ACK_POLICY_NORMAL_ACK:normal ack
- * @TS_INFO_ACK_POLICY_HT_IMMEDIATE_BLOCK_ACK: HT immediate block ack
- */
- enum mlme_ts_info_ack_policy {
- TS_INFO_ACK_POLICY_NORMAL_ACK = 0,
- TS_INFO_ACK_POLICY_HT_IMMEDIATE_BLOCK_ACK = 1,
- };
- /**
- * struct mlme_edca_params - EDCA pramaters related config items
- *
- * @ani_acbk_l: EDCA parameters for ANI local access category background
- * @ani_acbe_l: EDCA parameters for ANI local access category best effort
- * @ani_acvi_l: EDCA parameters for ANI local access category video
- * @ani_acvo_l: EDCA parameters for ANI local access category voice
- * @ani_acbk_b: EDCA parameters for ANI bcast access category background
- * @ani_acbe_b: EDCA parameters for ANI bcast access category best effort
- * @ani_acvi_b: EDCA parameters for ANI bcast access category video
- * @ani_acvo_b: EDCA parameters for ANI bcast access category voice
- * @wme_acbk_l: EDCA parameters for WME local access category background
- * @wme_acbe_l: EDCA parameters for WME local access category best effort
- * @wme_acvi_l: EDCA parameters for WME local access category video
- * @wme_acvo_l: EDCA parameters for WME local access category voice
- * @wme_acbk_b: EDCA parameters for WME bcast access category background
- * @wme_acbe_b: EDCA parameters for WME bcast access category best effort
- * @wme_acvi_b: EDCA parameters for WME bcast access category video
- * @wme_acvo_b: EDCA parameters for WME bcast access category voice
- * @etsi_acbk_l: EDCA parameters for ETSI local access category background
- * @etsi_acbe_l: EDCA parameters for ETSI local access category best effort
- * @etsi_acvi_l: EDCA parameters for ETSI local access category video
- * @etsi_acvo_l: EDCA parameters for ETSI local access category voice
- * @etsi_acbk_b: EDCA parameters for ETSI bcast access category background
- * @etsi_acbe_b: EDCA parameters for ETSI bcast access category best effort
- * @etsi_acvi_b: EDCA parameters for ETSI bcast access category video
- * @etsi_acvo_b: EDCA parameters for ETSI bcast access category voice
- * @enable_edca_params: Enable edca parameter
- * @mlme_edca_ac_vo: value for edca_ac_vo
- * @mlme_edca_ac_vi: value for edca_ac_vi
- * @mlme_edca_ac_bk: value for edca_ac_bk
- * @mlme_edca_ac_be: value for edca_ac_be
- */
- struct wlan_mlme_edca_params {
- struct mlme_cfg_str ani_acbk_l;
- struct mlme_cfg_str ani_acbe_l;
- struct mlme_cfg_str ani_acvi_l;
- struct mlme_cfg_str ani_acvo_l;
- struct mlme_cfg_str ani_acbk_b;
- struct mlme_cfg_str ani_acbe_b;
- struct mlme_cfg_str ani_acvi_b;
- struct mlme_cfg_str ani_acvo_b;
- struct mlme_cfg_str wme_acbk_l;
- struct mlme_cfg_str wme_acbe_l;
- struct mlme_cfg_str wme_acvi_l;
- struct mlme_cfg_str wme_acvo_l;
- struct mlme_cfg_str wme_acbk_b;
- struct mlme_cfg_str wme_acbe_b;
- struct mlme_cfg_str wme_acvi_b;
- struct mlme_cfg_str wme_acvo_b;
- struct mlme_cfg_str etsi_acbk_l;
- struct mlme_cfg_str etsi_acbe_l;
- struct mlme_cfg_str etsi_acvi_l;
- struct mlme_cfg_str etsi_acvo_l;
- struct mlme_cfg_str etsi_acbk_b;
- struct mlme_cfg_str etsi_acbe_b;
- struct mlme_cfg_str etsi_acvi_b;
- struct mlme_cfg_str etsi_acvo_b;
- bool enable_edca_params;
- struct mlme_edca_ac_vo edca_ac_vo;
- struct mlme_edca_ac_vi edca_ac_vi;
- struct mlme_edca_ac_bk edca_ac_bk;
- struct mlme_edca_ac_be edca_ac_be;
- };
- #define WLAN_CFG_MFR_NAME_LEN (63)
- #define WLAN_CFG_MODEL_NUMBER_LEN (31)
- #define WLAN_CFG_MODEL_NAME_LEN (31)
- #define WLAN_CFG_MFR_PRODUCT_NAME_LEN (31)
- #define WLAN_CFG_MFR_PRODUCT_VERSION_LEN (31)
- /**
- * 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 mlme_ht_param_info - HT AMPDU Parameters Info
- * @reserved: reserved bits
- * @mpdu_density: MPDU Density
- * @max_rx_ampdu_factor: Max Rx AMPDU Factor
- */
- #ifndef ANI_LITTLE_BIT_ENDIAN
- struct mlme_ht_param_info {
- uint8_t reserved:3;
- uint8_t mpdu_density:3;
- uint8_t max_rx_ampdu_factor:2;
- } qdf_packed;
- #else
- struct mlme_ht_param_info {
- uint8_t max_rx_ampdu_factor:2;
- uint8_t mpdu_density:3;
- uint8_t reserved:3;
- #endif
- } qdf_packed;
- /**
- * struct mlme_ht_ext_cap_info - Extended HT Capabilities Info
- * reserved_2: Reserved Bits
- * mcs_feedback: MCS Feedback Capability
- * reserved_1: Reserved Bits
- * transition_time: Time needed for transition between 20Mhz and 40 Mhz
- * pco: PCO (Phased Coexistence Operation) Support
- */
- #ifndef ANI_LITTLE_BIT_ENDIAN
- struct mlme_ht_ext_cap_info {
- uint16_t reserved_2:6;
- uint16_t mcs_feedback:2;
- uint16_t reserved_1:5;
- uint16_t transition_time:2;
- uint16_t pco:1;
- } qdf_packed;
- #else
- struct mlme_ht_ext_cap_info {
- uint16_t pco:1;
- uint16_t transition_time:2;
- uint16_t reserved1:5;
- uint16_t mcs_feedback:2;
- uint16_t reserved2:6;
- } qdf_packed;
- #endif
- /**
- * struct mlme_ht_info_field_1 - Additional HT IE Field1
- * @service_interval_granularity: Shortest Service Interval
- * @controlled_access_only: Access Control for assoc requests
- * @rifs_mode: Reduced Interframe Spacing mode
- * @recommended_tx_width_set: Recommended Tx Channel Width
- * @secondary_channel_offset: Secondary Channel Offset
- */
- #ifndef ANI_LITTLE_BIT_ENDIAN
- struct mlme_ht_info_field_1 {
- uint8_t service_interval_granularity:3;
- uint8_t controlled_access_only:1;
- uint8_t rifs_mode:1;
- uint8_t recommended_tx_width_set:1;
- uint8_t secondary_channel_offset:2;
- } qdf_packed;
- #else
- struct mlme_ht_info_field_1 {
- uint8_t secondary_channel_offset:2;
- uint8_t recommended_tx_width_set:1;
- uint8_t rifs_mode:1;
- uint8_t controlled_access_only:1;
- uint8_t service_interval_granularity:3;
- } qdf_packed;
- #endif
- /* struct mlme_ht_info_field_2 - Additional HT IE Field2
- * @reserved: reserved bits
- * @obss_non_ht_sta_present: Protection for non-HT STAs by Overlapping BSS
- * @transmit_burst_limit: Transmit Burst Limit
- * @non_gf_devices_present: Non Greenfield devices present
- * @op_mode: Operation Mode
- */
- #ifndef ANI_LITTLE_BIT_ENDIAN
- struct mlme_ht_info_field_2 {
- uint16_t reserved:11;
- uint16_t obss_non_ht_sta_present:1;
- uint16_t transmit_burst_limit:1;
- uint16_t non_gf_devices_present:1;
- uint16_t op_mode:2;
- } qdf_packed;
- #else
- struct mlme_ht_info_field_2 {
- uint16_t op_mode:2;
- uint16_t nonGFDevicesPresent:1;
- uint16_t transmit_burst_limit:1;
- uint16_t obss_non_ht_sta_present:1;
- uint16_t reserved:11;
- } qdf_packed;
- #endif
- /**
- * struct mlme_ht_info_field_3 - Additional HT IE Field3
- * @reserved: reserved bits
- * @pco_phase: PCO Phase
- * @pco_active: PCO state
- * @lsig_txop_protection_full_support: L-Sig TXOP Protection Full Support
- * @secondary_beacon: Beacon ID
- * @dual_cts_protection: Dual CTS protection Required
- * @basic_stbc_mcs: Basic STBC MCS
- */
- #ifndef ANI_LITTLE_BIT_ENDIAN
- struct mlme_ht_info_field_3 {
- uint16_t reserved:4;
- uint16_t pco_phase:1;
- uint16_t pco_active:1;
- uint16_t lsig_txop_protection_full_support:1;
- uint16_t secondary_beacon:1;
- uint16_t dual_cts_protection:1;
- uint16_t basic_stbc_mcs:7;
- } qdf_packed;
- #else
- struct mlme_ht_info_field_3 {
- uint16_t basic_stbc_mcs:7;
- uint16_t dual_cts_protection:1;
- uint16_t secondary_beacon:1;
- uint16_t lsig_txop_protection_full_support:1;
- uint16_t pco_active:1;
- uint16_t pco_phase:1;
- uint16_t reserved:4;
- } qdf_packed;
- #endif
- /**
- * struct wlan_mlme_ht_caps - HT Capabilities related config items
- * @ht_cap_info: HT capabilities Info Structure
- * @ampdu_params: AMPDU parameters
- * @ext_cap_info: HT EXT capabilities info
- * @info_field_1: HT Information Subset 1
- * @info_field_2: HT Information Subset 2
- * @info_field_3: HT Information Subset 3
- * @short_preamble: Short Preamble support
- * @enable_ampdu_ps: Enable AMPDU Power Save
- * @enable_smps: Enabled SM Power Save
- * @smps : SM Power Save mode
- * @max_num_amsdu: Max number of AMSDU
- * @tx_ldpc_enable: Enable Tx LDPC
- * @short_slot_time_enabled: Enabled/disable short slot time
- */
- struct wlan_mlme_ht_caps {
- struct mlme_ht_capabilities_info ht_cap_info;
- struct mlme_ht_param_info ampdu_params;
- struct mlme_ht_ext_cap_info ext_cap_info;
- struct mlme_ht_info_field_1 info_field_1;
- struct mlme_ht_info_field_2 info_field_2;
- struct mlme_ht_info_field_3 info_field_3;
- bool short_preamble;
- bool enable_ampdu_ps;
- bool enable_smps;
- uint8_t smps;
- uint8_t max_num_amsdu;
- uint8_t tx_ldpc_enable;
- bool short_slot_time_enabled;
- };
- /*
- * struct wlan_mlme_wps_params - All wps based related cfg items
- *
- * @enable_wps - to enable wps
- * @wps_state - current wps state
- * @wps_version - wps version
- * @wps_cfg_method - wps config method
- * @wps_primary_device_category - wps primary device category
- * @wps_primary_device_oui - primary device OUI
- * @wps_device_sub_category - device sub category
- * @wps_device_password_id - password id of device
- */
- struct wlan_mlme_wps_params {
- uint8_t enable_wps;
- uint8_t wps_state;
- uint8_t wps_version;
- uint32_t wps_cfg_method;
- uint32_t wps_primary_device_category;
- uint32_t wps_primary_device_oui;
- uint16_t wps_device_sub_category;
- uint32_t wps_device_password_id;
- };
- #define MLME_CFG_LISTEN_INTERVAL 1
- #define MLME_CFG_BEACON_INTERVAL_DEF 100
- #define MLME_CFG_TX_MGMT_RATE_DEF 0xFF
- #define MLME_CFG_TX_MGMT_2G_RATE_DEF 0xFF
- #define MLME_CFG_TX_MGMT_5G_RATE_DEF 0xFF
- #define MLME_CFG_SSID_LEN 32
- /**
- * struct wlan_mlme_cfg_sap - SAP related config items
- * @cfg_ssid: SSID to be configured
- * @beacon_interval: beacon interval
- * @dtim_interval: dtim interval
- * @listen_interval: listen interval
- * @sap_11g_policy: Check if 11g support is enabled
- * @assoc_sta_limit: Limit on number of STA associated to SAP
- * @enable_lte_coex: Flag for LTE coexistence
- * @rmc_action_period_freq: rmc action period frequency
- * @rate_tx_mgmt: mgmt frame tx rate
- * @rate_tx_mgmt_2g: mgmt frame tx rate for 2G band
- * @rate_tx_mgmt_5g: mgmt frame tx rate for 5G band
- * @tele_bcn_wakeup_en: beacon wakeup enable/disable
- * @tele_bcn_max_li: max listen interval
- * @sap_get_peer_info: get peer info
- * @sap_allow_all_chan_param_name: allow all channels
- * @sap_max_no_peers: Maximum number of peers
- * @sap_max_offload_peers: Maximum number of peer offloads
- * @sap_max_offload_reorder_buffs: Maximum offload reorder buffs
- * @sap_ch_switch_beacon_cnt: Number of beacons to be sent out during CSA
- * @sap_internal_restart: flag to check if sap restart is in progress
- * @sap_ch_switch_mode: Channel switch test mode enable/disable
- * @chan_switch_hostapd_rate_enabled_name: enable/disable skip hostapd rate
- * @reduced_beacon_interval: reduced beacon interval value
- * @max_li_modulated_dtim_time: Max modulated DTIM time.
- * @country_code_priority: Country code priority.
- * @sap_pref_chan_location: SAP Preferred channel location.
- */
- struct wlan_mlme_cfg_sap {
- uint8_t cfg_ssid[MLME_CFG_SSID_LEN];
- uint8_t cfg_ssid_len;
- uint16_t beacon_interval;
- uint16_t dtim_interval;
- uint16_t listen_interval;
- bool sap_11g_policy;
- uint8_t assoc_sta_limit;
- bool enable_lte_coex;
- uint16_t rmc_action_period_freq;
- uint8_t rate_tx_mgmt;
- uint8_t rate_tx_mgmt_2g;
- uint8_t rate_tx_mgmt_5g;
- bool tele_bcn_wakeup_en;
- uint8_t tele_bcn_max_li;
- bool sap_get_peer_info;
- bool sap_allow_all_chan_param_name;
- uint8_t sap_max_no_peers;
- uint8_t sap_max_offload_peers;
- uint8_t sap_max_offload_reorder_buffs;
- uint8_t sap_ch_switch_beacon_cnt;
- bool sap_internal_restart;
- bool sap_ch_switch_mode;
- bool chan_switch_hostapd_rate_enabled_name;
- uint8_t reduced_beacon_interval;
- uint8_t max_li_modulated_dtim_time;
- bool country_code_priority;
- uint8_t sap_pref_chan_location;
- bool sap_force_11n_for_11ac;
- bool go_force_11n_for_11ac;
- };
- /**
- * struct wlan_mlme_dfs_cfg - DFS Capabilities related config items
- * @dfs_master_capable: Is DFS master mode support enabled
- * @dfs_disable_channel_switch: disable channel switch on radar detection
- * @dfs_ignore_cac: Disable cac
- * @dfs_filter_offload: dfs filter offloaad
- * @dfs_beacon_tx_enhanced: enhance dfs beacon tx
- * @dfs_prefer_non_dfs: perefer non dfs channel after radar
- * @sap_tx_leakage_threshold: sap tx leakage threshold
- */
- struct wlan_mlme_dfs_cfg {
- bool dfs_master_capable;
- bool dfs_disable_channel_switch;
- bool dfs_ignore_cac;
- bool dfs_filter_offload;
- bool dfs_beacon_tx_enhanced;
- bool dfs_prefer_non_dfs;
- uint32_t sap_tx_leakage_threshold;
- };
- /**
- * struct wlan_mlme_mbo - Multiband Operation related ini configs
- * @mbo_candidate_rssi_thres:
- * @mbo_current_rssi_thres:
- * @mbo_current_rssi_mcc_thres:
- * @mbo_candidate_rssi_btc_thres:
- */
- struct wlan_mlme_mbo {
- int8_t mbo_candidate_rssi_thres;
- int8_t mbo_current_rssi_thres;
- int8_t mbo_current_rssi_mcc_thres;
- int8_t mbo_candidate_rssi_btc_thres;
- };
- /**
- * struct wlan_mlme_vht_caps - MLME VHT config items
- * @supp_chan_width: Supported Channel Width
- * @ldpc_coding_cap: LDPC Coding Capability
- * @short_gi_80mhz: 80MHz Short Guard Interval
- * @short_gi_160mhz: 160MHz Short Guard Interval
- * @tx_stbc: Tx STBC cap
- * @rx_stbc: Rx STBC cap
- * @su_bformer: SU Beamformer cap
- * @su_bformee: SU Beamformee cap
- * @tx_bfee_ant_supp: Tx beamformee anti supp
- * @num_soundingdim: Number of sounding dimensions
- * @mu_bformer: MU Beamformer cap
- * @txop_ps: Tx OPs in power save
- * @htc_vhtc: htc_vht capability
- * @link_adap_cap: Link adaptation capability
- * @rx_antpattern: Rx Antenna Pattern cap
- * @tx_antpattern: Tx Antenna Pattern cap
- * @rx_mcs_map: Rx MCS Map
- * @tx_mcs_map: Tx MCS Map
- * @rx_supp_data_rate: Rx highest supported data rate
- * @tx_supp_data_rate: Tx highest supported data rate
- * @basic_mcs_set: Basic MCS set
- * @enable_txbf_20mhz: enable tx bf for 20mhz
- * @channel_width: Channel width capability for 11ac
- * @rx_mcs: VHT Rx MCS capability for 1x1 mode
- * @tx_mcs: VHT Tx MCS capability for 1x1 mode
- * @rx_mcs2x2: VHT Rx MCS capability for 2x2 mode
- * @tx_mcs2x2: VHT Tx MCS capability for 2x2 mode
- * @enable_vht20_mcs9: Enables VHT MCS9 in 20M BW operation
- * @enable2x2: Enables/disables VHT Tx/Rx MCS values for 2x2
- * @enable_mu_bformee: Enables/disables multi-user (MU)
- * beam formee capability
- * @enable_paid: Enables/disables paid
- * @enable_gid: Enables/disables gid
- * @b24ghz_band: To control VHT support in 2.4 GHz band
- * @vendor_24ghz_band: to control VHT support based on vendor
- * ie in 2.4 GHz band
- * @ampdu_len_exponent: To handle maximum receive AMPDU ampdu len exponent
- * @ampdu_len: To handle maximum receive AMPDU ampdu len
- * @tx_bfee_sap: enable tx bfee SAp
- * @subfee_vendor_vhtie: enable subfee vendor vht ie
- */
- struct mlme_vht_capabilities_info {
- uint8_t supp_chan_width;
- bool ldpc_coding_cap;
- bool short_gi_80mhz;
- bool short_gi_160mhz;
- bool tx_stbc;
- bool rx_stbc;
- bool su_bformer;
- bool su_bformee;
- uint8_t tx_bfee_ant_supp;
- uint8_t num_soundingdim;
- bool mu_bformer;
- bool txop_ps;
- bool htc_vhtc;
- uint8_t link_adap_cap;
- bool rx_antpattern;
- bool tx_antpattern;
- uint32_t rx_mcs_map;
- uint32_t tx_mcs_map;
- uint32_t rx_supp_data_rate;
- uint32_t tx_supp_data_rate;
- uint32_t basic_mcs_set;
- bool enable_txbf_20mhz;
- uint8_t channel_width;
- uint32_t rx_mcs;
- uint32_t tx_mcs;
- uint8_t rx_mcs2x2;
- uint8_t tx_mcs2x2;
- bool enable_vht20_mcs9;
- bool enable2x2;
- bool enable_mu_bformee;
- bool enable_paid;
- bool enable_gid;
- bool b24ghz_band;
- bool vendor_24ghz_band;
- uint8_t ampdu_len_exponent;
- uint8_t ampdu_len;
- bool tx_bfee_sap;
- bool vendor_vhtie;
- };
- /**
- * struct wlan_mlme_vht_caps - VHT Capabilities related config items
- * @vht_cap_info: VHT capabilities Info Structure
- */
- struct wlan_mlme_vht_caps {
- struct mlme_vht_capabilities_info vht_cap_info;
- };
- /**
- * struct wlan_mlme_qos - QOS TX/RX aggregation related CFG items
- * @tx_aggregation_size: TX aggr size in number of MPDUs
- * @tx_aggregation_size_be: No. of MPDUs for BE queue for TX aggr
- * @tx_aggregation_size_bk: No. of MPDUs for BK queue for TX aggr
- * @tx_aggregation_size_vi: No. of MPDUs for VI queue for TX aggr
- * @tx_aggregation_size_vo: No. of MPDUs for VO queue for TX aggr
- * @rx_aggregation_size: No. of MPDUs for RX aggr
- * @tx_aggr_sw_retry_threshold_be: aggr sw retry threshold for BE
- * @tx_aggr_sw_retry_threshold_bk: aggr sw retry threshold for BK
- * @tx_aggr_sw_retry_threshold_vi: aggr sw retry threshold for VI
- * @tx_aggr_sw_retry_threshold_vo: aggr sw retry threshold for VO
- * @tx_non_aggr_sw_retry_threshold_be: non aggr sw retry threshold for BE
- * @tx_non_aggr_sw_retry_threshold_bk: non aggr sw retry threshold for BK
- * @tx_non_aggr_sw_retry_threshold_vi: non aggr sw retry threshold for VI
- * @tx_non_aggr_sw_retry_threshold_vo: non aggr sw retry threshold for VO
- * @sap_max_inactivity_override: Override updating ap_sta_inactivity from
- * hostapd.conf
- * @sap_uapsd_enabled: Flag to enable/disable UAPSD for SAP
- */
- struct wlan_mlme_qos {
- uint32_t tx_aggregation_size;
- uint32_t tx_aggregation_size_be;
- uint32_t tx_aggregation_size_bk;
- uint32_t tx_aggregation_size_vi;
- uint32_t tx_aggregation_size_vo;
- uint32_t rx_aggregation_size;
- uint32_t tx_aggr_sw_retry_threshold_be;
- uint32_t tx_aggr_sw_retry_threshold_bk;
- uint32_t tx_aggr_sw_retry_threshold_vi;
- uint32_t tx_aggr_sw_retry_threshold_vo;
- uint32_t tx_non_aggr_sw_retry_threshold_be;
- uint32_t tx_non_aggr_sw_retry_threshold_bk;
- uint32_t tx_non_aggr_sw_retry_threshold_vi;
- uint32_t tx_non_aggr_sw_retry_threshold_vo;
- bool sap_max_inactivity_override;
- bool sap_uapsd_enabled;
- };
- #ifdef WLAN_FEATURE_11AX
- #define MLME_HE_PPET_LEN 25
- #define WNI_CFG_HE_OPS_BSS_COLOR_MAX 0x3F
- /**
- * struct wlan_mlme_he_caps - HE Capabilities related config items
- */
- struct wlan_mlme_he_caps {
- tDot11fIEhe_cap dot11_he_cap;
- uint8_t he_ppet_2g[MLME_HE_PPET_LEN];
- uint8_t he_ppet_5g[MLME_HE_PPET_LEN];
- uint32_t he_ops_basic_mcs_nss;
- uint8_t he_dynamic_fragmentation;
- uint8_t enable_ul_mimo;
- uint8_t enable_ul_ofdm;
- uint32_t he_sta_obsspd;
- };
- #endif
- /**
- * 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
- * @supported_11b: supported 11B rates
- * @supported_11a: supported 11A rates
- * @opr_rate_set: operational rates set
- * @ext_opr_rate_set: extended operational rates set
- * @supported_mcs_set: supported MCS set
- * @basic_mcs_set: basic MCS set
- * @current_mcs_set: current MCS set
- */
- 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 mlme_cfg_str supported_11b;
- struct mlme_cfg_str supported_11a;
- struct mlme_cfg_str opr_rate_set;
- struct mlme_cfg_str ext_opr_rate_set;
- struct mlme_cfg_str supported_mcs_set;
- struct mlme_cfg_str basic_mcs_set;
- struct mlme_cfg_str current_mcs_set;
- };
- /* Flags for gLimProtectionControl that is updated in pe session*/
- #define MLME_FORCE_POLICY_PROTECTION_DISABLE 0
- #define MLME_FORCE_POLICY_PROTECTION_CTS 1
- #define MLME_FORCE_POLICY_PROTECTION_RTS 2
- #define MLME_FORCE_POLICY_PROTECTION_DUAL_CTS 3
- #define MLME_FORCE_POLICY_PROTECTION_RTS_ALWAYS 4
- #define MLME_FORCE_POLICY_PROTECTION_AUTO 5
- /* protection_enabled bits*/
- #define MLME_PROTECTION_ENABLED_FROM_llA 0
- #define MLME_PROTECTION_ENABLED_FROM_llB 1
- #define MLME_PROTECTION_ENABLED_FROM_llG 2
- #define MLME_PROTECTION_ENABLED_HT_20 3
- #define MLME_PROTECTION_ENABLED_NON_GF 4
- #define MLME_PROTECTION_ENABLED_LSIG_TXOP 5
- #define MLME_PROTECTION_ENABLED_RIFS 6
- #define MLME_PROTECTION_ENABLED_OBSS 7
- #define MLME_PROTECTION_ENABLED_OLBC_FROM_llA 8
- #define MLME_PROTECTION_ENABLED_OLBC_FROM_llB 9
- #define MLME_PROTECTION_ENABLED_OLBC_FROM_llG 10
- #define MLME_PROTECTION_ENABLED_OLBC_HT20 11
- #define MLME_PROTECTION_ENABLED_OLBC_NON_GF 12
- #define MLME_PROTECTION_ENABLED_OLBC_LSIG_TXOP 13
- #define MLME_PROTECTION_ENABLED_OLBC_RIFS 14
- #define MLME_PROTECTION_ENABLED_OLBC_OBSS 15
- /**
- * struct wlan_mlme_feature_flag - feature related information
- * @accept_short_slot_assoc: enable short sloc feature
- * @enable_hcf: enable HCF feature
- * @enable_rsn: enable RSN for connection
- * @enable_short_preamble_11g: enable short preamble for 11g
- * @channel_bonding_mode: channel bonding mode
- * @enable_block_ack: enable block ack feature
- * @enable_ampdu: Enable AMPDU feature
- */
- struct wlan_mlme_feature_flag {
- bool accept_short_slot_assoc;
- bool enable_hcf;
- bool enable_rsn;
- bool enable_short_preamble_11g;
- bool enable_short_slot_time_11g;
- uint32_t channel_bonding_mode;
- uint32_t enable_block_ack;
- bool enable_ampdu;
- };
- /*
- * struct wlan_mlme_sap_protection_cfg - SAP erp protection config items
- * @ignore_peer_ht_opmode: Ignore the ht opmode of the peer. Dynamic via INI
- * @enable_ap_obss_protection: enable/disable AP OBSS protection
- * @protection_force_policy: Protection force policy. Static via cfg
- * @ap_protection_mode: AP protection bitmap
- * @protection_enabled: Force enable protection. static via cfg
- */
- struct wlan_mlme_sap_protection {
- bool ignore_peer_ht_opmode;
- bool enable_ap_obss_protection;
- uint8_t protection_force_policy;
- uint16_t ap_protection_mode;
- uint32_t protection_enabled;
- };
- /*
- * struct wlan_mlme_chainmask - All chainmask related cfg items
- * @txchainmask1x1: To set transmit chainmask
- * @rxchainmask1x1: To set rx chainmask
- * @tx_chain_mask_cck: Used to enable/disable Cck ChainMask
- * @tx_chain_mask_1ss: Enables/disables tx chain Mask1ss
- * @num_11b_tx_chains: Number of Tx Chains in 11b mode
- * @num_11ag_tx_chains: Number of Tx Chains in 11ag mode
- * @tx_chain_mask_2g: Tx chain mask for 2g
- * @rx_chain_mask_2g: Tx chain mask for 2g
- * @tx_chain_mask_5g: Tx chain mask for 5g
- * @rx_chain_mask_5g: Rx chain mask for 5g
- * @enable_bt_chain_separation: Enable/Disable BT/WLAN Host chain seperation
- */
- struct wlan_mlme_chainmask {
- uint8_t txchainmask1x1;
- uint8_t rxchainmask1x1;
- bool tx_chain_mask_cck;
- uint8_t tx_chain_mask_1ss;
- uint16_t num_11b_tx_chains;
- uint16_t num_11ag_tx_chains;
- uint8_t tx_chain_mask_2g;
- uint8_t rx_chain_mask_2g;
- uint8_t tx_chain_mask_5g;
- uint8_t rx_chain_mask_5g;
- bool enable_bt_chain_separation;
- };
- /* struct wlan_mlme_generic - Generic CFG config items
- *
- * @band_capability: HW Band Capability - Both or 2.4G only or 5G only
- * @band: Current Band - Internal variable, initialized to INI and updated later
- * @select_5ghz_margin: RSSI margin to select 5Ghz over 2.4 Ghz
- * @sub_20_chan_width: Sub 20Mhz Channel Width
- * @ito_repeat_count: ITO Repeat Count
- * @pmf_sa_query_max_retries: PMF query max retries for SAP
- * @pmf_sa_query_retry_interval: PMF query retry interval for SAP
- * @dropped_pkt_disconnect_thresh: Threshold for dropped pkts before disconnect
- * @rtt_mac_randomization: Enable/Disable RTT MAC randomization
- * @rtt3_enabled: RTT3 enable or disable info
- * @prevent_link_down: Enable/Disable prevention of link down
- * @memory_deep_sleep: Enable/Disable memory deep sleep
- * @cck_tx_fir_override: Enable/Disable CCK Tx FIR Override
- * @crash_inject: Enable/Disable Crash Inject
- * @lpass_support: Enable/Disable LPASS Support
- * @self_recovery: Enable/Disable Self Recovery
- * @sap_dot11mc: Enable/Disable SAP 802.11mc support
- * @fatal_event_trigger: Enable/Disable Fatal Events Trigger
- * @optimize_ca_event: Enable/Disable Optimization of CA events
- * @fw_timeout_crash: Enable/Disable FW Timeout Crash *
- * @debug_packet_log: Debug packet log flags
- */
- struct wlan_mlme_generic {
- enum band_info band_capability;
- enum band_info band;
- uint8_t select_5ghz_margin;
- uint8_t sub_20_chan_width;
- uint8_t ito_repeat_count;
- uint8_t pmf_sa_query_max_retries;
- uint16_t pmf_sa_query_retry_interval;
- uint16_t dropped_pkt_disconnect_thresh;
- bool rtt_mac_randomization;
- bool rtt3_enabled;
- bool prevent_link_down;
- bool memory_deep_sleep;
- bool cck_tx_fir_override;
- bool crash_inject;
- bool lpass_support;
- bool self_recovery;
- bool sap_dot11mc;
- bool fatal_event_trigger;
- bool optimize_ca_event;
- bool fw_timeout_crash;
- uint8_t debug_packet_log;
- };
- /*
- * struct wlan_mlme_product_details_cfg - product details config items
- * @manufacturer_name: manufacture name
- * @model_number: model number
- * @model_name: model name
- * @manufacture_product_name: manufacture product name
- * @manufacture_product_version: manufacture product version
- */
- struct wlan_mlme_product_details_cfg {
- char manufacturer_name[WLAN_CFG_MFR_NAME_LEN + 1];
- char model_number[WLAN_CFG_MODEL_NUMBER_LEN + 1];
- char model_name[WLAN_CFG_MODEL_NAME_LEN + 1];
- char manufacture_product_name[WLAN_CFG_MFR_PRODUCT_NAME_LEN + 1];
- char manufacture_product_version[WLAN_CFG_MFR_PRODUCT_VERSION_LEN + 1];
- };
- /*
- * struct wlan_mlme_acs - All acs related cfg items
- * @is_acs_with_more_param - to enable acs with more param
- * @auto_channel_select_weight - to set acs channel weight
- * @is_vendor_acs_support - enable application based channel selection
- * @is_acs_support_for_dfs_ltecoex - enable channel for dfs and lte coex
- * @is_external_acs_policy - control external policy
- */
- struct wlan_mlme_acs {
- bool is_acs_with_more_param;
- uint32_t auto_channel_select_weight;
- bool is_vendor_acs_support;
- bool is_acs_support_for_dfs_ltecoex;
- bool is_external_acs_policy;
- };
- /*
- * struct wlan_mlme_cfg_twt - All twt related cfg items
- * @is_twt_bcast_enabled: twt capability for the session
- * @is_twt_enabled: global twt configuration
- * @is_twt_responder_enabled: twt responder
- * @is_twt_requestor_enabled: twt requestor
- * @twt_congestion_timeout: congestion timeout value
- */
- struct wlan_mlme_cfg_twt {
- bool is_twt_bcast_enabled;
- bool is_twt_enabled;
- bool is_twt_responder_enabled;
- bool is_twt_requestor_enabled;
- uint32_t twt_congestion_timeout;
- };
- /**
- * struct wlan_mlme_obss_ht40 - OBSS HT40 config items
- * @active_dwelltime: obss active dwelltime
- * @passive_dwelltime: obss passive dwelltime
- * @width_trigger_interval: obss trigger interval
- * @passive_per_channel: obss scan passive total duration per channel
- * @active_per_channel: obss scan active total duration per channel
- * @width_trans_delay: obss width transition delay
- * @scan_activity_threshold: obss scan activity threshold
- * @is_override_ht20_40_24g: use channel bonding in 2.4 GHz
- */
- struct wlan_mlme_obss_ht40 {
- uint32_t active_dwelltime;
- uint32_t passive_dwelltime;
- uint32_t width_trigger_interval;
- uint32_t passive_per_channel;
- uint32_t active_per_channel;
- uint32_t width_trans_delay;
- uint32_t scan_activity_threshold;
- bool is_override_ht20_40_24g;
- };
- /**
- * enum dot11p_mode - The 802.11p mode of operation
- * @WLAN_HDD_11P_DISABLED: 802.11p mode is disabled
- * @WLAN_HDD_11P_STANDALONE: 802.11p-only operation
- * @WLAN_HDD_11P_CONCURRENT: 802.11p and WLAN operate concurrently
- */
- enum dot11p_mode {
- CFG_11P_DISABLED = 0,
- CFG_11P_STANDALONE,
- CFG_11P_CONCURRENT,
- };
- #define MAX_VDEV_NSS 2
- #define MAX_VDEV_CHAINS 2
- /**
- * struct wlan_mlme_nss_chains - MLME vdev config of nss, and chains
- * @num_tx_chains: tx chains of vdev config
- * @num_rx_chains: rx chains of vdev config
- * @tx_nss: tx nss of vdev config
- * @rx_nss: rx nss of vdev config
- * @num_tx_chains_11b: number of tx chains in 11b mode
- * @num_tx_chains_11g: number of tx chains in 11g mode
- * @num_tx_chains_11a: number of tx chains in 11a mode
- * @disable_rx_mrc: disable 2 rx chains, in rx nss 1 mode
- * @disable_tx_mrc: disable 2 tx chains, in tx nss 1 mode
- */
- struct wlan_mlme_nss_chains {
- uint32_t num_tx_chains[NSS_CHAINS_BAND_MAX];
- uint32_t num_rx_chains[NSS_CHAINS_BAND_MAX];
- uint32_t tx_nss[NSS_CHAINS_BAND_MAX];
- uint32_t rx_nss[NSS_CHAINS_BAND_MAX];
- uint32_t num_tx_chains_11b;
- uint32_t num_tx_chains_11g;
- uint32_t num_tx_chains_11a;
- bool disable_rx_mrc[NSS_CHAINS_BAND_MAX];
- bool disable_tx_mrc[NSS_CHAINS_BAND_MAX];
- };
- /**
- * struct wlan_mlme_sta_cfg - MLME STA configuration items
- * @sta_keep_alive_period: Sends NULL frame to AP period
- * @tgt_gtx_usr_cfg: Target gtx user config
- * @pmkid_modes: Enable PMKID modes
- * @wait_cnf_timeout: Wait assoc cnf timeout
- * @dot11p_mode: Set 802.11p mode
- * @fils_max_chan_guard_time: Set maximum channel guard time
- * @current_rssi: Current rssi
- * @ignore_peer_erp_info: Ignore peer infrormation
- * @sta_prefer_80mhz_over_160mhz: Set Sta preference to connect in 80HZ/160HZ
- * @enable_5g_ebt: Set default 5G early beacon termination
- * @deauth_before_connection: Send deauth before connection or not
- * @enable_go_cts2self_for_sta: Stop NOA and start using cts2self
- * @qcn_ie_support: QCN IE support
- * @force_rsne_override: Force rsnie override from user
- * @single_tid: Set replay counter for all TID
- * @allow_tpc_from_ap: Support for AP power constraint
- */
- struct wlan_mlme_sta_cfg {
- uint32_t sta_keep_alive_period;
- uint32_t tgt_gtx_usr_cfg;
- uint32_t pmkid_modes;
- uint32_t wait_cnf_timeout;
- enum dot11p_mode dot11p_mode;
- uint8_t fils_max_chan_guard_time;
- uint8_t current_rssi;
- bool ignore_peer_erp_info;
- bool sta_prefer_80mhz_over_160mhz;
- bool enable_5g_ebt;
- bool deauth_before_connection;
- bool enable_go_cts2self_for_sta;
- bool qcn_ie_support;
- bool force_rsne_override;
- bool single_tid;
- bool allow_tpc_from_ap;
- };
- /**
- * enum roaming_dfs_channel_type - Allow dfs channel in roam
- * @CFG_ROAMING_DFS_CHANNEL_DISABLED: Disallow dfs channel in roam
- * @CFG_ROAMING_DFS_CHANNEL_ENABLED_NORMAL: Allow dfs channel
- * @CFG_ROAMING_DFS_CHANNEL_ENABLED_ACTIVE: Allow dfs channel with active scan
- */
- enum roaming_dfs_channel_type {
- ROAMING_DFS_CHANNEL_DISABLED,
- ROAMING_DFS_CHANNEL_ENABLED_NORMAL,
- ROAMING_DFS_CHANNEL_ENABLED_ACTIVE,
- };
- /*
- * @mawc_roam_enabled: Enable/Disable MAWC during roaming
- * @enable_fast_roam_in_concurrency:Enable LFR roaming on STA during concurrency
- * @lfr3_roaming_offload: Enable/disable roam offload feature
- * @early_stop_scan_enable: Set early stop scan
- * @lfr3_enable_subnet_detection: Enable LFR3 subnet detection
- * @enable_5g_band_pref: Enable preference for 5G from INI
- * @ese_enabled: Enable ESE feature
- * @lfr_enabled: Enable fast roaming
- * @mawc_enabled: Enable MAWC
- * @fast_transition_enabled: Enable fast transition
- * @wes_mode_enabled: Enable WES mode
- * @mawc_roam_traffic_threshold: Configure traffic threshold
- * @mawc_roam_ap_rssi_threshold: Best AP RSSI threshold
- * @mawc_roam_rssi_high_adjust: Adjust MAWC roam high RSSI
- * @mawc_roam_rssi_low_adjust: Adjust MAWC roam low RSSI
- * @roam_rssi_abs_threshold: The min RSSI of the candidate AP
- * @rssi_threshold_offset_5g: Lookup threshold offset for 5G band
- * @early_stop_scan_min_threshold: Set early stop scan min
- * @early_stop_scan_max_threshold: Set early stop scan max
- * @first_scan_bucket_threshold: Set first scan bucket
- * @roam_dense_traffic_threshold: Dense traffic threshold
- * @roam_dense_rssi_thre_offset: Sets dense roam RSSI threshold diff
- * @roam_dense_min_aps: Sets minimum number of AP for dense roam
- * @roam_bg_scan_bad_rssi_threshold:RSSI threshold for background roam
- * @roam_bg_scan_client_bitmap: Bitmap used to identify the scan clients
- * @roam_bg_scan_bad_rssi_offset_2g:RSSI threshold offset for 2G to 5G roam
- * @adaptive_roamscan_dwell_mode: Sets dwell time adaptive mode
- * @per_roam_enable: To enabled/disable PER based roaming in FW
- * @per_roam_config_high_rate_th: Rate at which PER based roam will stop
- * @per_roam_config_low_rate_th: Rate at which PER based roam will start
- * @per_roam_config_rate_th_percent:Percentage at which FW will issue roam scan
- * @per_roam_rest_time: FW will wait once it issues a roam scan.
- * @per_roam_monitor_time: Min time to be considered as valid scenario
- * @per_roam_min_candidate_rssi: Min roamable AP RSSI for candidate selection
- * @lfr3_disallow_duration: Disallow duration before roaming
- * @lfr3_rssi_channel_penalization: RSSI penalization
- * @lfr3_num_disallowed_aps: Max number of AP's to maintain in LCA list
- * @rssi_boost_threshold_5g: Boost threshold above which 5 GHz is favored
- * @rssi_boost_factor_5g: Factor by which 5GHz RSSI is boosted
- * @max_rssi_boost_5g: Maximum boost that can be applied to 5G RSSI
- * @rssi_penalize_threshold_5g: Penalize thres above which 5G isn't favored
- * @rssi_penalize_factor_5g: Factor by which 5GHz RSSI is penalizeed
- * @max_rssi_penalize_5g: Max penalty that can be applied to 5G RSSI
- * @max_num_pre_auth: Configure max number of pre-auth
- * @roam_preauth_retry_count: Configure the max number of preauth retry
- * @roam_preauth_no_ack_timeout: Configure the no ack timeout period
- * @roam_rssi_diff: Enable roam based on rssi
- * @roam_scan_offload_enabled: Enable Roam Scan Offload
- * @neighbor_scan_timer_period: Neighbor scan timer period
- * @neighbor_scan_min_timer_period: Min neighbor scan timer period
- * @neighbor_lookup_rssi_threshold: Neighbor lookup rssi threshold
- * @opportunistic_scan_threshold_diff: Set oppurtunistic threshold diff
- * @roam_rescan_rssi_diff: Sets RSSI for Scan trigger in firmware
- * @neighbor_scan_min_chan_time: Neighbor scan channel min time
- * @neighbor_scan_max_chan_time: Neighbor scan channel max time
- * @neighbor_scan_results_refresh_period: Neighbor scan refresh period
- * @empty_scan_refresh_period: Empty scan refresh period
- * @roam_bmiss_first_bcnt: First beacon miss count
- * @roam_bmiss_final_bcnt: Final beacon miss count
- * @roam_beacon_rssi_weight: Beacon miss weight
- * @roaming_dfs_channel: Allow dfs channel in roam
- * @roam_scan_hi_rssi_maxcount: 5GHz maximum scan count
- * @roam_scan_hi_rssi_delta: RSSI Delta for scan trigger
- * @roam_scan_hi_rssi_delay: Minimum delay between 5GHz scans
- * @roam_scan_hi_rssi_ub: Upper bound after which 5GHz scan
- * @roam_prefer_5ghz: Prefer roaming to 5GHz Bss
- * @roam_intra_band: Prefer roaming within Band
- * @roam_scan_home_away_time: The home away time to firmware
- * @roam_scan_n_probes: The number of probes to be sent for firmware roaming
- * @delay_before_vdev_stop:Wait time for tx complete before vdev stop
- * @neighbor_scan_channel_list: Neighbor scan channel list
- * @neighbor_scan_channel_list_num: Neighbor scan channel list number
- */
- struct wlan_mlme_lfr_cfg {
- bool mawc_roam_enabled;
- bool enable_fast_roam_in_concurrency;
- #ifdef WLAN_FEATURE_ROAM_OFFLOAD
- bool lfr3_roaming_offload;
- #endif
- bool early_stop_scan_enable;
- bool lfr3_enable_subnet_detection;
- bool enable_5g_band_pref;
- #ifdef FEATURE_WLAN_ESE
- bool ese_enabled;
- #endif
- bool lfr_enabled;
- bool mawc_enabled;
- bool fast_transition_enabled;
- bool wes_mode_enabled;
- uint32_t mawc_roam_traffic_threshold;
- uint32_t mawc_roam_ap_rssi_threshold;
- uint32_t mawc_roam_rssi_high_adjust;
- uint32_t mawc_roam_rssi_low_adjust;
- uint32_t roam_rssi_abs_threshold;
- uint8_t rssi_threshold_offset_5g;
- uint8_t early_stop_scan_min_threshold;
- uint8_t early_stop_scan_max_threshold;
- uint8_t first_scan_bucket_threshold;
- uint32_t roam_dense_traffic_threshold;
- uint32_t roam_dense_rssi_thre_offset;
- uint32_t roam_dense_min_aps;
- uint32_t roam_bg_scan_bad_rssi_threshold;
- uint32_t roam_bg_scan_client_bitmap;
- uint32_t roam_bg_scan_bad_rssi_offset_2g;
- uint32_t adaptive_roamscan_dwell_mode;
- uint32_t per_roam_enable;
- uint32_t per_roam_config_high_rate_th;
- uint32_t per_roam_config_low_rate_th;
- uint32_t per_roam_config_rate_th_percent;
- uint32_t per_roam_rest_time;
- uint32_t per_roam_monitor_time;
- uint32_t per_roam_min_candidate_rssi;
- uint32_t lfr3_disallow_duration;
- uint32_t lfr3_rssi_channel_penalization;
- uint32_t lfr3_num_disallowed_aps;
- uint32_t rssi_boost_threshold_5g;
- uint32_t rssi_boost_factor_5g;
- uint32_t max_rssi_boost_5g;
- uint32_t rssi_penalize_threshold_5g;
- uint32_t rssi_penalize_factor_5g;
- uint32_t max_rssi_penalize_5g;
- uint32_t max_num_pre_auth;
- uint32_t roam_preauth_retry_count;
- uint32_t roam_preauth_no_ack_timeout;
- uint32_t roam_rssi_diff;
- bool roam_scan_offload_enabled;
- uint32_t neighbor_scan_timer_period;
- uint32_t neighbor_scan_min_timer_period;
- uint32_t neighbor_lookup_rssi_threshold;
- uint32_t opportunistic_scan_threshold_diff;
- uint32_t roam_rescan_rssi_diff;
- uint16_t neighbor_scan_min_chan_time;
- uint16_t neighbor_scan_max_chan_time;
- uint32_t neighbor_scan_results_refresh_period;
- uint32_t empty_scan_refresh_period;
- uint8_t roam_bmiss_first_bcnt;
- uint8_t roam_bmiss_final_bcnt;
- uint32_t roam_beacon_rssi_weight;
- enum roaming_dfs_channel_type roaming_dfs_channel;
- uint32_t roam_scan_hi_rssi_maxcount;
- uint32_t roam_scan_hi_rssi_delta;
- uint32_t roam_scan_hi_rssi_delay;
- uint32_t roam_scan_hi_rssi_ub;
- bool roam_prefer_5ghz;
- bool roam_intra_band;
- uint16_t roam_scan_home_away_time;
- uint32_t roam_scan_n_probes;
- uint8_t delay_before_vdev_stop;
- uint8_t neighbor_scan_channel_list[CFG_VALID_CHANNEL_LIST_LEN];
- uint8_t neighbor_scan_channel_list_num;
- };
- /**
- * struct wlan_mlme_wmm_config - WMM configuration
- * @wmm_mode: Enable WMM feature
- * @b80211e_is_enabled: Enable 802.11e feature
- * @uapsd_mask: what ACs to setup U-APSD for at assoc
- * @bimplicit_qos_enabled: Enable implicit QOS
- */
- struct wlan_mlme_wmm_config {
- uint8_t wmm_mode;
- bool b80211e_is_enabled;
- uint8_t uapsd_mask;
- bool bimplicit_qos_enabled;
- };
- /**
- * struct wlan_mlme_wmm_tspec_element - Default TSPEC parameters
- * from the wmm spec
- * @inactivity_interval: inactivity_interval as per wmm spec
- * @burst_size_def: TS burst size
- * @ts_ack_policy: TS Info ACK policy
- * @ts_acm_is_off: ACM is off for AC
- */
- struct wlan_mlme_wmm_tspec_element {
- #ifdef FEATURE_WLAN_ESE
- uint32_t inactivity_intv;
- #endif
- bool burst_size_def;
- enum mlme_ts_info_ack_policy ts_ack_policy;
- bool ts_acm_is_off;
- };
- /**
- * struct wlan_mlme_wmm_ac_vo - Default TSPEC parameters
- * for AC_VO
- * @dir_ac_vo: TSPEC direction for VO
- * @nom_msdu_size_ac_vo: normal MSDU size for VO
- * @mean_data_rate_ac_vo: mean data rate for VO
- * @min_phy_rate_ac_vo: min PHY rate for VO
- * @sba_ac_vo: surplus bandwidth allowance for VO
- * @uapsd_vo_srv_intv: Uapsd service interval for voice
- * @uapsd_vo_sus_intv: Uapsd suspension interval for voice
- */
- struct wlan_mlme_wmm_ac_vo {
- uint8_t dir_ac_vo;
- uint16_t nom_msdu_size_ac_vo;
- uint32_t mean_data_rate_ac_vo;
- uint32_t min_phy_rate_ac_vo;
- uint16_t sba_ac_vo;
- uint32_t uapsd_vo_srv_intv;
- uint32_t uapsd_vo_sus_intv;
- };
- /**
- * struct wlan_mlme_wmm_ac_vi - Default TSPEC parameters
- * for AC_VI
- * @dir_ac_vi: TSPEC direction for VI
- * @nom_msdu_size_ac_vi: normal MSDU size for VI
- * @mean_data_rate_ac_vi: mean data rate for VI
- * @min_phy_rate_ac_vi: min PHY rate for VI
- * @sba_ac_vi: surplus bandwidth allowance for VI
- * @uapsd_vo_srv_intv: Uapsd service interval for VI
- * @uapsd_vo_sus_intv: Uapsd suspension interval for VI
- */
- struct wlan_mlme_wmm_ac_vi {
- uint8_t dir_ac_vi;
- uint16_t nom_msdu_size_ac_vi;
- uint32_t mean_data_rate_ac_vi;
- uint32_t min_phy_rate_ac_vi;
- uint16_t sba_ac_vi;
- uint32_t uapsd_vi_srv_intv;
- uint32_t uapsd_vi_sus_intv;
- };
- /**
- * struct wlan_mlme_wmm_ac_be - Default TSPEC parameters
- * for AC_BE
- * @dir_ac_be: TSPEC direction for BE
- * @nom_msdu_size_ac_be: normal MSDU size for BE
- * @mean_data_rate_ac_be: mean data rate for BE
- * @min_phy_rate_ac_be: min PHY rate for BE
- * @sba_ac_be: surplus bandwidth allowance for BE
- * @uapsd_be_srv_intv: Uapsd service interval for BE
- * @uapsd_be_sus_intv: Uapsd suspension interval for BE
- */
- struct wlan_mlme_wmm_ac_be {
- uint8_t dir_ac_be;
- uint16_t nom_msdu_size_ac_be;
- uint32_t mean_data_rate_ac_be;
- uint32_t min_phy_rate_ac_be;
- uint16_t sba_ac_be;
- uint32_t uapsd_be_srv_intv;
- uint32_t uapsd_be_sus_intv;
- };
- /**
- * struct wlan_mlme_wmm_ac_bk - Default TSPEC parameters
- * for AC_BK
- * @dir_ac_bk: TSPEC direction for BK
- * @nom_msdu_size_ac_bk: normal MSDU size for BK
- * @mean_data_rate_ac_bk: mean data rate for BK
- * @min_phy_rate_ac_bk: min PHY rate for BK
- * @sba_ac_bk: surplus bandwidth allowance for BK
- * @uapsd_bk_srv_intv: Uapsd service interval for BK
- * @uapsd_bk_sus_intv: Uapsd suspension interval for BK
- */
- struct wlan_mlme_wmm_ac_bk {
- uint8_t dir_ac_bk;
- uint16_t nom_msdu_size_ac_bk;
- uint32_t mean_data_rate_ac_bk;
- uint32_t min_phy_rate_ac_bk;
- uint16_t sba_ac_bk;
- uint32_t uapsd_bk_srv_intv;
- uint32_t uapsd_bk_sus_intv;
- };
- /**
- * struct wlan_mlme_wmm_params - WMM CFG Items
- * @qos_enabled: AP is enabled with 11E
- * @wme_enabled: AP is enabled with WMM
- * @max_sp_length: Maximum SP Length
- * @wsm_enabled: AP is enabled with WSM
- * @edca_profile: WMM Edca profile
- * @wmm_config: WMM configuration
- * @wmm_tspec_element: Default TSPEC parameters
- * @ac_vo: Default TSPEC parameters for AC_VO
- * @ac_vi: Default TSPEC parameters for AC_VI
- * @ac_be: Default TSPEC parameters for AC_BE
- * @ac_bk: Default TSPEC parameters for AC_BK
- */
- struct wlan_mlme_wmm_params {
- bool qos_enabled;
- bool wme_enabled;
- uint8_t max_sp_length;
- bool wsm_enabled;
- uint32_t edca_profile;
- struct wlan_mlme_wmm_config wmm_config;
- struct wlan_mlme_wmm_tspec_element wmm_tspec_element;
- struct wlan_mlme_wmm_ac_vo ac_vo;
- struct wlan_mlme_wmm_ac_vi ac_vi;
- struct wlan_mlme_wmm_ac_be ac_be;
- struct wlan_mlme_wmm_ac_bk ac_bk;
- };
- /**
- * struct wlan_mlme_weight_config - weight params to
- * calculate best candidate
- *
- * @rssi_weightage: RSSI weightage
- * @ht_caps_weightage: HT caps weightage
- * @vht_caps_weightage: VHT caps weightage
- * @he_caps_weightage: HE caps weightage
- * @chan_width_weightage: Channel width weightage
- * @chan_band_weightage: Channel band weightage
- * @nss_weightage: NSS weightage
- * @beamforming_cap_weightage: Beamforming caps weightage
- * @pcl_weightage: PCL weightage
- * @channel_congestion_weightage: channel congestion weightage
- * @oce_wan_weightage: OCE WAN metrics weightage
- */
- struct wlan_mlme_weight_config {
- uint8_t rssi_weightage;
- uint8_t ht_caps_weightage;
- uint8_t vht_caps_weightage;
- uint8_t he_caps_weightage;
- uint8_t chan_width_weightage;
- uint8_t chan_band_weightage;
- uint8_t nss_weightage;
- uint8_t beamforming_cap_weightage;
- uint8_t pcl_weightage;
- uint8_t channel_congestion_weightage;
- uint8_t oce_wan_weightage;
- };
- /**
- * struct wlan_mlme_rssi_cfg_score - RSSI params to
- * calculate best candidate
- *
- * @best_rssi_threshold: Best RSSI threshold
- * @good_rssi_threshold: Good RSSI threshold
- * @bad_rssi_threshold: Bad RSSI threshold
- * @good_rssi_pcnt: Good RSSI Percentage
- * @bad_rssi_pcnt: Bad RSSI Percentage
- * @good_rssi_bucket_size: Good RSSI Bucket Size
- * @bad_rssi_bucket_size: Bad RSSI Bucket Size
- * @rssi_pref_5g_rssi_thresh: Preffered 5G RSSI threshold
- */
- struct wlan_mlme_rssi_cfg_score {
- uint32_t best_rssi_threshold;
- uint32_t good_rssi_threshold;
- uint32_t bad_rssi_threshold;
- uint32_t good_rssi_pcnt;
- uint32_t bad_rssi_pcnt;
- uint32_t good_rssi_bucket_size;
- uint32_t bad_rssi_bucket_size;
- uint32_t rssi_pref_5g_rssi_thresh;
- };
- /**
- * struct wlan_mlme_per_slot_scoring - define % score for differents slots
- * for a scoring param.
- * num_slot: number of slots in which the param will be divided.
- * Max 15. index 0 is used for 'not_present. Num_slot will
- * equally divide 100. e.g, if num_slot = 4 slot 0 = 0-25%, slot
- * 1 = 26-50% slot 2 = 51-75%, slot 3 = 76-100%
- * score_pcnt3_to_0: Conatins score percentage for slot 0-3
- * BITS 0-7 :- the scoring pcnt when not present
- * BITS 8-15 :- SLOT_1
- * BITS 16-23 :- SLOT_2
- * BITS 24-31 :- SLOT_3
- * score_pcnt7_to_4: Conatins score percentage for slot 4-7
- * BITS 0-7 :- SLOT_4
- * BITS 8-15 :- SLOT_5
- * BITS 16-23 :- SLOT_6
- * BITS 24-31 :- SLOT_7
- * score_pcnt11_to_8: Conatins score percentage for slot 8-11
- * BITS 0-7 :- SLOT_8
- * BITS 8-15 :- SLOT_9
- * BITS 16-23 :- SLOT_10
- * BITS 24-31 :- SLOT_11
- * score_pcnt15_to_12: Conatins score percentage for slot 12-15
- * BITS 0-7 :- SLOT_12
- * BITS 8-15 :- SLOT_13
- * BITS 16-23 :- SLOT_14
- * BITS 24-31 :- SLOT_15
- */
- struct wlan_mlme_per_slot_scoring {
- uint32_t num_slot;
- uint32_t score_pcnt3_to_0;
- uint32_t score_pcnt7_to_4;
- uint32_t score_pcnt11_to_8;
- uint32_t score_pcnt15_to_12;
- };
- /*
- * struct wlan_mlme_score_config - MLME BSS Scoring related config
- * @enable_scoring_for_roam: Enable/disable BSS Scoring for Roaming
- * @weight_cfg: Various Weight related Scoring Configs
- * @rssi_score: RSSI Scoring related thresholds/percentages config
- * @esp_qbss_scoring: ESP QBSS Scoring configs
- * @oce_wan_scoring: OCE WAN Scoring Configs
- * @bandwidth_weight_per_index: Bandwidth weight per index for scoring logic
- * @nss_weight_per_index: NSS weight per index for scoring logic
- * @band_weight_per_index: Band weight per index for scoring logic
- */
- struct wlan_mlme_scoring_cfg {
- bool enable_scoring_for_roam;
- struct wlan_mlme_weight_config weight_cfg;
- struct wlan_mlme_rssi_cfg_score rssi_score;
- struct wlan_mlme_per_slot_scoring esp_qbss_scoring;
- struct wlan_mlme_per_slot_scoring oce_wan_scoring;
- uint32_t bandwidth_weight_per_index;
- uint32_t nss_weight_per_index;
- uint32_t band_weight_per_index;
- };
- /* struct wlan_mlme_threshold - Threshold related config items
- * @rts_threshold: set rts threshold
- * @frag_threshold: set fragmentation threshold
- */
- struct wlan_mlme_threshold {
- uint32_t rts_threshold;
- uint32_t frag_threshold;
- };
- /* struct mlme_max_tx_power_24 - power related items
- * @max_len: max length of string
- * @len: actual len of string
- * @data: Data in string format
- */
- struct mlme_max_tx_power_24 {
- qdf_size_t max_len;
- qdf_size_t len;
- uint8_t data[CFG_MAX_TX_POWER_2_4_LEN];
- };
- /* struct mlme_max_tx_power_5 - power related items
- * @max_len: max length of string
- * @len: actual len of string
- * @data: Data in string format
- */
- struct mlme_max_tx_power_5 {
- qdf_size_t max_len;
- qdf_size_t len;
- uint8_t data[CFG_MAX_TX_POWER_5_LEN];
- };
- /* struct mlme_power_usage - power related items
- * @max_len: max length of string
- * @len: actual len of string
- * @data: Data in string format
- */
- struct mlme_power_usage {
- qdf_size_t max_len;
- qdf_size_t len;
- char data[CFG_POWER_USAGE_MAX_LEN];
- };
- /*
- * struct wlan_mlme_power - power related config items
- * @max_tx_power_24: max power Tx for 2.4 ghz
- * @max_tx_power_5: max power Tx for 5 ghz
- * @power_usage: power usage mode, min, max, mod
- * @tx_power_2g: limit tx power in 2.4 ghz
- * @tx_power_5g: limit tx power in 5 ghz
- */
- struct wlan_mlme_power {
- struct mlme_max_tx_power_24 max_tx_power_24;
- struct mlme_max_tx_power_5 max_tx_power_5;
- struct mlme_power_usage power_usage;
- uint8_t tx_power_2g;
- uint8_t tx_power_5g;
- };
- /*
- * struct wlan_mlme_timeout - mlme timeout related config items
- * @join_failure_timeout: join failure timeout
- * @auth_failure_timeout: authenticate failure timeout
- * @auth_rsp_timeout: authenticate response timeout
- * @assoc_failure_timeout: assoc failure timeout
- * @reassoc_failure_timeout: re-assoc failure timeout
- * @probe_after_hb_fail_timeout: Probe after HB fail timeout
- * @olbc_detect_timeout: OLBC detect timeout
- * @addts_rsp_timeout: ADDTS rsp timeout value
- * @heart_beat_threshold: Heart beat threshold
- * @ap_keep_alive_timeout: AP keep alive timeout value
- * @ap_link_monitor_timeout: AP link monitor timeout value
- * @ps_data_inactivity_timeout: PS data inactivity timeout
- */
- struct wlan_mlme_timeout {
- uint32_t join_failure_timeout;
- uint32_t auth_failure_timeout;
- uint32_t auth_rsp_timeout;
- uint32_t assoc_failure_timeout;
- uint32_t reassoc_failure_timeout;
- uint32_t probe_after_hb_fail_timeout;
- uint32_t olbc_detect_timeout;
- uint32_t addts_rsp_timeout;
- uint32_t heart_beat_threshold;
- uint32_t ap_keep_alive_timeout;
- uint32_t ap_link_monitor_timeout;
- uint32_t ps_data_inactivity_timeout;
- };
- /**
- * struct wlan_mlme_oce - OCE related config items
- * @enable_bcast_probe_rsp: enable broadcast probe response
- * @oce_sta_enabled: enable/disable oce feature for sta
- * @oce_sap_enabled: enable/disable oce feature for sap
- * @fils_enabled: enable/disable fils support
- * @feature_bitmap: oce feature bitmap
- *
- */
- struct wlan_mlme_oce {
- bool enable_bcast_probe_rsp;
- bool oce_sta_enabled;
- bool oce_sap_enabled;
- bool fils_enabled;
- uint8_t feature_bitmap;
- };
- #define MLME_WEP_KEY_LEN_13 (13)
- #define MLME_WEP_KEY_LENGTH_5 (5)
- /**
- * enum wep_key_id - values passed to get/set wep default keys
- * @MLME_WEP_DEFAULT_KEY_1: wep default key 1
- * @MLME_WEP_DEFAULT_KEY_2: wep default key 2
- * @MLME_WEP_DEFAULT_KEY_3: wep default key 3
- * @MLME_WEP_DEFAULT_KEY_4: wep default key 4
- */
- enum wep_key_id {
- MLME_WEP_DEFAULT_KEY_1 = 0,
- MLME_WEP_DEFAULT_KEY_2,
- MLME_WEP_DEFAULT_KEY_3,
- MLME_WEP_DEFAULT_KEY_4
- };
- /**
- * struct wlan_mlme_wep_cfg - WEP related configs
- * @is_privacy_enabled: Flag to check if encryption is enabled
- * @is_shared_key_auth: Flag to check if the auth type is shared key
- * @is_auth_open_system: Flag to check if the auth type is open
- * @auth_type: Authentication type value
- * @wep_default_key_id: Default WEP key id
- * @wep_default_key_1: WEP encryption key 1
- * @wep_default_key_2: WEP encryption key 2
- * @wep_default_key_3: WEP encryption key 3
- * @wep_default_key_4: WEP encryption key 4
- */
- struct wlan_mlme_wep_cfg {
- bool is_privacy_enabled;
- bool is_shared_key_auth;
- bool is_auth_open_system;
- uint8_t auth_type;
- uint8_t wep_default_key_id;
- struct mlme_cfg_str wep_default_key_1;
- struct mlme_cfg_str wep_default_key_2;
- struct mlme_cfg_str wep_default_key_3;
- struct mlme_cfg_str wep_default_key_4;
- };
- /**
- * struct wlan_mlme_cfg - MLME config items
- * @chainmask_cfg: VHT chainmask related cfg items
- * @edca_params: edca related CFG items
- * @gen: Generic CFG items
- * @ht_caps: HT related CFG Items
- * @he_caps: HE related cfg items
- * @lfr: LFR related CFG Items
- * @obss_ht40:obss ht40 CFG Items
- * @mbo_cfg: Multiband Operation related CFG items
- * @vht_caps: VHT related CFG Items
- * @qos_mlme_params: QOS CFG Items
- * @rates: Rates related cfg items
- * @product_details: product details related CFG Items
- * @dfs_cfg: DFS related CFG Items
- * @sap_protection_cfg: SAP erp protection related CFG items
- * @sap_cfg: sap CFG items
- * @nss_chains_ini_cfg: Per vdev nss, chains related CFG items
- * @sta: sta CFG Items
- * @scoring: BSS Scoring related CFG Items
- * @oce: OCE related CFG items
- * @threshold: threshold related cfg items
- * @timeouts: mlme timeout related CFG items
- * @twt_cfg: TWT CFG Items
- * @wlan_mlme_power: power related items
- * @acs: ACS related CFG items
- * @feature_flags: Feature flag config items
- * @wep_params: WEP related config items
- * @wmm_params: WMM related CFG & INI Items
- * @wps_params: WPS related CFG itmes
- */
- struct wlan_mlme_cfg {
- struct wlan_mlme_chainmask chainmask_cfg;
- struct wlan_mlme_edca_params edca_params;
- struct wlan_mlme_generic gen;
- struct wlan_mlme_ht_caps ht_caps;
- #ifdef WLAN_FEATURE_11AX
- struct wlan_mlme_he_caps he_caps;
- #endif
- struct wlan_mlme_lfr_cfg lfr;
- struct wlan_mlme_obss_ht40 obss_ht40;
- struct wlan_mlme_mbo mbo_cfg;
- struct wlan_mlme_vht_caps vht_caps;
- struct wlan_mlme_qos qos_mlme_params;
- struct wlan_mlme_rates rates;
- struct wlan_mlme_product_details_cfg product_details;
- struct wlan_mlme_dfs_cfg dfs_cfg;
- struct wlan_mlme_sap_protection sap_protection_cfg;
- struct wlan_mlme_cfg_sap sap_cfg;
- struct wlan_mlme_nss_chains nss_chains_ini_cfg;
- struct wlan_mlme_sta_cfg sta;
- struct wlan_mlme_scoring_cfg scoring;
- struct wlan_mlme_oce oce;
- struct wlan_mlme_threshold threshold;
- struct wlan_mlme_timeout timeouts;
- struct wlan_mlme_cfg_twt twt_cfg;
- struct wlan_mlme_power power;
- struct wlan_mlme_acs acs;
- struct wlan_mlme_feature_flag feature_flags;
- struct wlan_mlme_wep_cfg wep_params;
- struct wlan_mlme_wmm_params wmm_params;
- struct wlan_mlme_wps_params wps_params;
- };
- #endif
|