123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680 |
- /*
- * 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>
- #define CFG_PMKID_MODES_OKC (0x1)
- #define CFG_PMKID_MODES_PMKSA_CACHING (0x2)
- /**
- * 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_ - HT Capabilities related config items
- * @ht_cap_info: HT capabilities Info Structure
- */
- struct wlan_mlme_cfg_sap {
- uint8_t cfg_ssid[32];
- 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;
- };
- /**
- * 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 {
- /* VHT related configs */
- };
- /**
- * 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: Tx aggregation sw retry for BE
- * @tx_aggr_sw_retry_threshold_bk: Tx aggregation sw retry for BK
- * @tx_aggr_sw_retry_threshold_vi: Tx aggregation sw retry for VI
- * @tx_aggr_sw_retry_threshold_vo: Tx aggregation sw retry for VO
- * @sap_max_inactivity_override: Override updating ap_sta_inactivity from
- * hostapd.conf
- */
- 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;
- bool sap_max_inactivity_override;
- };
- #define MLME_HE_PPET_LEN 25
- /**
- * struct wlan_mlme_he_caps - HE Capabilities related config items
- */
- struct wlan_mlme_he_caps {
- uint8_t he_control;
- uint8_t he_twt_requestor;
- uint8_t he_twt_responder;
- uint8_t he_twt_fragmentation;
- uint8_t he_max_frag_msdu;
- uint8_t he_min_frag_size;
- uint8_t he_trig_pad;
- uint8_t he_mtid_aggr_rx;
- uint8_t he_link_adaptation;
- uint8_t he_all_ack;
- uint8_t he_trigd_rsp_scheduling;
- uint8_t he_buffer_status_rpt;
- uint8_t he_bcast_twt;
- uint8_t he_ba_32bit;
- uint8_t he_mu_cascading;
- uint8_t he_multi_tid;
- uint8_t he_dl_mu_ba;
- uint8_t he_omi;
- uint8_t he_ofdma_ra;
- uint8_t he_max_ampdu_len;
- uint8_t he_amsdu_frag;
- uint8_t he_flex_twt_sched;
- uint8_t he_rx_ctrl;
- uint8_t he_bsrp_ampdu_aggr;
- uint8_t he_qtp;
- uint8_t he_a_bqr;
- uint8_t he_sr_responder;
- uint8_t he_ndp_feedback_supp;
- uint8_t he_ops_supp;
- uint8_t he_amsdu_in_ampdu;
- uint8_t he_chan_width;
- uint8_t he_mtid_aggr_tx;
- uint8_t he_sub_ch_sel_tx;
- uint8_t he_ul_2x996_ru;
- uint8_t he_om_ctrl_ul_mu_dis_rx;
- uint8_t he_rx_pream_punc;
- uint8_t he_class_of_device;
- uint8_t he_ldpc;
- uint8_t he_ltf_ppdu;
- uint8_t he_midamble_rx_nsts;
- uint8_t he_ltf_ndp;
- uint8_t he_tx_stbc_lt80;
- uint8_t he_rx_stbc_lt80;
- uint8_t he_doppler;
- uint8_t he_ul_mumimo;
- uint8_t he_dcm_tx;
- uint8_t he_dcm_rx;
- uint8_t he_mu_ppdu;
- uint8_t he_su_beamformer;
- uint8_t he_su_beamformee;
- uint8_t he_mu_beamformer;
- uint8_t he_bfee_sts_lt80;
- uint8_t he_bfee_sts_gt80;
- uint8_t he_num_sound_lt80;
- uint8_t he_num_sound_gt80;
- uint8_t he_su_feed_tone16;
- uint8_t he_mu_feed_tone16;
- uint8_t he_codebook_su;
- uint8_t he_codebook_mu;
- uint8_t he_bfrm_feed;
- uint8_t he_er_su_ppdu;
- uint8_t he_dl_part_bw;
- uint8_t he_ppet_present;
- uint8_t he_srp;
- uint8_t he_power_boost;
- uint8_t he_4x_ltf_gi;
- uint8_t he_max_nc;
- uint8_t he_rx_stbc_gt80;
- uint8_t he_tx_stbc_gt80;
- uint8_t he_er_4x_ltf_gi;
- uint8_t he_ppdu_20_in_40mhz_2g;
- uint8_t he_ppdu_20_in_160_80p80mhz;
- uint8_t he_ppdu_80_in_160_80p80mhz;
- uint8_t he_er_1x_he_ltf_gi;
- uint8_t he_midamble_rx_1x_he_ltf;
- uint8_t he_dcm_max_bw;
- uint8_t he_longer_16_sigb_ofdm_sym;
- uint8_t he_non_trig_cqi_feedback;
- uint8_t he_tx_1024_qam_lt_242_ru;
- uint8_t he_rx_1024_qam_lt_242_ru;
- uint8_t he_rx_full_bw_mu_cmpr_sigb;
- uint8_t he_rx_full_bw_mu_non_cmpr_sigb;
- uint32_t he_rx_mcs_map_lt_80;
- uint32_t he_tx_mcs_map_lt_80;
- uint32_t he_rx_mcs_map_160;
- uint32_t he_tx_mcs_map_160;
- uint32_t he_rx_mcs_map_80_80;
- uint32_t he_tx_mcs_map_80_80;
- 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_twt_dynamic_fragmentation;
- uint8_t enable_ul_mimo;
- uint8_t enable_ul_ofdm;
- uint32_t he_sta_obsspd;
- };
- /**
- * 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;
- };
- /* 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_sap_protection_cfg - SAP erp protection config items
- *
- * @protection_enabled: Force enable protection. static via cfg
- * @protection_force_policy: Protection force policy. Static via cfg
- * @ignore_peer_ht_opmode: Ignore the ht opmode of the peer. Dynamic via INI
- *
- */
- struct wlan_mlme_sap_protection {
- uint32_t protection_enabled;
- uint8_t protection_force_policy;
- bool ignore_peer_ht_opmode;
- };
- /*
- * 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
- */
- 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;
- };
- /* struct wlan_mlme_generic - Generic CFG config items
- *
- * @rtt3_enabled: RTT3 enable or disable info
- * @pmf_sa_query_max_retries: PMF query max retries for SAP
- * @pmf_sa_query_retry_interval: PMF query retry interval for SAP
- *
- */
- struct wlan_mlme_generic {
- bool rtt3_enabled;
- uint8_t pmf_sa_query_max_retries;
- uint16_t pmf_sa_query_retry_interval;
- };
- /**
- * 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
- */
- 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;
- };
- /**
- * 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,
- };
- /**
- * 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
- */
- 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;
- uint8_t 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;
- };
- /*
- * @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
- * @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
- */
- struct wlan_mlme_lfr_cfg {
- bool mawc_roam_enabled;
- bool enable_fast_roam_in_concurrency;
- bool lfr3_roaming_offload;
- bool early_stop_scan_enable;
- bool lfr3_enable_subnet_detection;
- bool enable_5g_band_pref;
- 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;
- };
- /**
- * 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_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;
- };
- /**
- * struct wlan_mlme_cfg - MLME config items
- * @ht_cfg: HT related CFG Items
- * @he_caps: HE related cfg items
- * @lfr: LFR related CFG Items
- * @obss_ht40:obss ht40 CFG Items
- * @vht_cfg: VHT related CFG Items
- * @rates: Rates related cfg items
- * @sap_protection_cfg: SAP erp protection related CFG items
- * @sta: sta CFG Items
- * @scoring: BSS Scoring related CFG Items
- */
- struct wlan_mlme_cfg {
- struct wlan_mlme_generic gen;
- struct wlan_mlme_ht_caps ht_caps;
- struct wlan_mlme_he_caps he_caps;
- 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_sap_protection sap_protection_cfg;
- struct wlan_mlme_chainmask chainmask_cfg;
- struct wlan_mlme_cfg_sap sap_cfg;
- struct wlan_mlme_sta_cfg sta;
- struct wlan_mlme_scoring_cfg scoring;
- struct wlan_mlme_oce oce;
- };
- #endif
|