1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596 |
- /*
- * Copyright (c) 2012-2019 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: This file contains configuration definitions for MLME LFR.
- */
- #ifndef CFG_MLME_LFR_H__
- #define CFG_MLME_LFR_H__
- /*
- * <ini>
- * mawc_roam_enabled - Enable/Disable MAWC during roaming
- * @Min: 0 - Disabled
- * @Max: 1 - Enabled
- * @Default: 0
- *
- * This ini is used to control MAWC during roaming.
- *
- * Related: MAWCEnabled.
- *
- * Supported Feature: MAWC Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_MAWC_ROAM_ENABLED CFG_INI_BOOL( \
- "mawc_roam_enabled", \
- 0, \
- "Enable/Disable MAWC during roaming")
- /*
- * <ini>
- * mawc_roam_traffic_threshold - Configure traffic threshold
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 300
- *
- * This ini is used to configure the data traffic load in kbps to
- * register CMC.
- *
- * Related: mawc_roam_enabled.
- *
- * Supported Feature: MAWC Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD CFG_INI_UINT( \
- "mawc_roam_traffic_threshold", \
- 0, \
- 0xFFFFFFFF, \
- 300, \
- CFG_VALUE_OR_DEFAULT, \
- "Configure traffic threshold")
- /*
- * <ini>
- * mawc_roam_ap_rssi_threshold - Best AP RSSI threshold
- * @Min: -120
- * @Max: 0
- * @Default: -66
- *
- * This ini is used to specify the RSSI threshold to scan for the AP.
- *
- * Related: mawc_roam_enabled.
- *
- * Supported Feature: MAWC Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD CFG_INI_INT( \
- "mawc_roam_ap_rssi_threshold", \
- -120, \
- 0, \
- -66, \
- CFG_VALUE_OR_DEFAULT, \
- "Best AP RSSI threshold")
- /*
- * <ini>
- * mawc_roam_rssi_high_adjust - Adjust MAWC roam high RSSI
- * @Min: 3
- * @Max: 5
- * @Default: 5
- *
- * This ini is used for high RSSI threshold adjustment in stationary state
- * to suppress the scan.
- *
- * Related: mawc_roam_enabled.
- *
- * Supported Feature: MAWC Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST CFG_INI_UINT( \
- "mawc_roam_ap_rssi_threshold", \
- 3, \
- 5, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "Adjust MAWC roam high RSSI")
- /*
- * <ini>
- * mawc_roam_rssi_low_adjust - Adjust MAWC roam low RSSI
- * @Min: 3
- * @Max: 5
- * @Default: 5
- *
- * This ini is used for low RSSI threshold adjustment in stationary state
- * to suppress the scan.
- *
- * Related: mawc_roam_enabled.
- *
- * Supported Feature: MAWC Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST CFG_INI_UINT( \
- "mawc_roam_rssi_low_adjust", \
- 3, \
- 5, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "Adjust MAWC roam low RSSI")
- /*
- * <ini>
- * rssi_abs_thresh - The min RSSI of the candidate AP to consider roam
- * @Min: -96
- * @Max: 0
- * @Default: 0
- *
- * The RSSI value of the candidate AP should be higher than rssi_abs_thresh
- * to roam to the AP. 0 means no absolute minimum RSSI is required.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_RSSI_ABS_THRESHOLD CFG_INI_INT( \
- "rssi_abs_thresh", \
- -96, \
- 0, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "The min RSSI of the candidate AP to consider roam")
- /*
- * <ini>
- * lookup_threshold_5g_offset - Lookup threshold offset for 5G band
- * @Min: -120
- * @Max: 120
- * @Default: 0
- *
- * This ini is used to set the 5G band lookup threshold for roaming.
- * It depends on another INI which is gNeighborLookupThreshold.
- * gNeighborLookupThreshold is a legacy INI item which will be used to
- * set the RSSI lookup threshold for both 2G and 5G bands. If the
- * user wants to setup a different threshold for a 5G band, then user
- * can use this offset value which will be summed up to the value of
- * gNeighborLookupThreshold and used for 5G
- * e.g: gNeighborLookupThreshold = -76dBm
- * lookup_threshold_5g_offset = 6dBm
- * Then the 5G band will be configured to -76+6 = -70dBm
- * A default value of Zero to lookup_threshold_5g_offset will keep the
- * thresholds same for both 2G and 5G bands
- *
- * Related: gNeighborLookupThreshold
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_5G_RSSI_THRESHOLD_OFFSET CFG_INI_INT( \
- "lookup_threshold_5g_offset", \
- -120, \
- 120, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Lookup threshold offset for 5G band")
- /*
- * <ini>
- * gEnableFastRoamInConcurrency - Enable LFR roaming on STA during concurrency
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This INI is used to enable Legacy fast roaming(LFR) on STA link during
- * concurrent sessions.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY CFG_INI_BOOL( \
- "gEnableFastRoamInConcurrency", \
- 1, \
- "Enable LFR roaming on STA during concurrency")
- /*
- * <ini>
- * gEnableEarlyStopScan - Set early stop scan
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to set early stop scan. Early stop
- * scan is a feature for roaming to stop the scans at
- * an early stage as soon as we find a better AP to roam.
- * This would make the roaming happen quickly.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_EARLY_STOP_SCAN_ENABLE CFG_INI_BOOL( \
- "gEnableEarlyStopScan", \
- 0, \
- "Set early stop scan")
- /*
- * <ini>
- * gEarlyStopScanMinThreshold - Set early stop scan min
- * threshold
- * @Min: -80
- * @Max: -70
- * @Default: -73
- *
- * This ini is used to set the early stop scan minimum
- * threshold. Early stop scan minimum threshold is the
- * minimum threshold to be considered for stopping the
- * scan. The algorithm starts with a scan on the greedy
- * channel list with the maximum threshold and steps down
- * the threshold by 20% for each further channel. It can
- * step down on each channel but cannot go lower than the
- * minimum threshold.
- *
- * Related: None
- *
- * Supported Feature: Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD CFG_INI_INT( \
- "gEarlyStopScanMinThreshold", \
- -80, \
- -70, \
- -73, \
- CFG_VALUE_OR_DEFAULT, \
- "Set early stop scan min")
- /*
- * <ini>
- * gEarlyStopScanMaxThreshold - Set early stop scan max
- * threshold
- * @Min: -60
- * @Max: -40
- * @Default: -43
- *
- * This ini is used to set the the early stop scan maximum
- * threshold at which the candidate AP should be to be
- * qualified as a potential roam candidate and good enough
- * to stop the roaming scan.
- *
- * Related: None
- *
- * Supported Feature: Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD CFG_INI_INT( \
- "gEarlyStopScanMaxThreshold", \
- -60, \
- -40, \
- -43, \
- CFG_VALUE_OR_DEFAULT, \
- "Set early stop scan max")
- /*
- * <ini>
- * gFirstScanBucketThreshold - Set first scan bucket
- * threshold
- * @Min: -50
- * @Max: -30
- * @Default: -30
- *
- * This ini will configure the first scan bucket
- * threshold to the mentioned value and all the AP's which
- * have RSSI under this threshold will fall under this
- * bucket. This configuration item used to tweak and
- * test the input for internal algorithm.
- *
- * Related: None
- *
- * Supported Feature: Scan
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD CFG_INI_INT( \
- "gFirstScanBucketThreshold", \
- -50, \
- -30, \
- -30, \
- CFG_VALUE_OR_DEFAULT, \
- "Set first scan bucket")
- /*
- * <ini>
- * gtraffic_threshold - Dense traffic threshold
- * @Min: 0
- * @Max: 0xffffffff
- * @Default: 400
- *
- * Dense traffic threshold
- * traffic threshold required for dense roam scan
- * Measured in kbps
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD CFG_INI_UINT( \
- "gtraffic_threshold", \
- 0, \
- 0xffffffff, \
- 400, \
- CFG_VALUE_OR_DEFAULT, \
- "Dense traffic threshold")
- /*
- * <ini>
- * groam_dense_rssi_thresh_offset - Sets dense roam RSSI threshold diff
- * @Min: 0
- * @Max: 20
- * @Default: 10
- *
- * This INI is used to set offset value from normal RSSI threshold to dense
- * RSSI threshold FW will optimize roaming based on new RSSI threshold once
- * it detects dense environment.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET CFG_INI_UINT( \
- "groam_dense_rssi_thresh_offset", \
- 0, \
- 20, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "Dense traffic threshold")
- /*
- * <ini>
- * groam_dense_min_aps - Sets minimum number of AP for dense roam
- * @Min: 1
- * @Max: 5
- * @Default: 3
- *
- * Minimum number of APs required for dense roam. FW will consider
- * environment as dense once it detects #APs operating is more than
- * groam_dense_min_aps.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_DENSE_MIN_APS CFG_INI_UINT( \
- "groam_dense_min_aps", \
- 1, \
- 5, \
- 3, \
- CFG_VALUE_OR_DEFAULT, \
- "Sets minimum number of AP for dense roam")
- /*
- * <ini>
- * roam_bg_scan_bad_rssi_thresh - RSSI threshold for background roam
- * @Min: -96
- * @Max: 0
- * @Default: -76
- *
- * If the DUT is connected to an AP with weak signal, then the bad RSSI
- * threshold will be used as an opportunity to use the scan results
- * from other scan clients and try to roam if there is a better AP
- * available in the environment.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD CFG_INI_INT( \
- "roam_bg_scan_bad_rssi_thresh", \
- -96, \
- 0, \
- -76, \
- CFG_VALUE_OR_DEFAULT, \
- "RSSI threshold for background roam")
- /*
- * <ini>
- * roam_bg_scan_client_bitmap - Bitmap used to identify the scan clients
- * @Min: 0
- * @Max: 0x7FF
- * @Default: 0x424
- *
- * This bitmap is used to define the client scans that need to be used
- * by the roaming module to perform a background roaming.
- * Currently supported bit positions are as follows:
- * Bit 0 is reserved in the firmware.
- * WMI_SCAN_CLIENT_NLO - 1
- * WMI_SCAN_CLIENT_EXTSCAN - 2
- * WMI_SCAN_CLIENT_ROAM - 3
- * WMI_SCAN_CLIENT_P2P - 4
- * WMI_SCAN_CLIENT_LPI - 5
- * WMI_SCAN_CLIENT_NAN - 6
- * WMI_SCAN_CLIENT_ANQP - 7
- * WMI_SCAN_CLIENT_OBSS - 8
- * WMI_SCAN_CLIENT_PLM - 9
- * WMI_SCAN_CLIENT_HOST - 10
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP CFG_INI_UINT( \
- "roam_bg_scan_client_bitmap", \
- 0, \
- 0x7FF, \
- 0x424, \
- CFG_VALUE_OR_DEFAULT, \
- "Bitmap used to identify the scan clients")
- /*
- * <ini>
- * roam_bad_rssi_thresh_offset_2g - RSSI threshold offset for 2G to 5G roam
- * @Min: 0
- * @Max: 86
- * @Default: 40
- *
- * If the DUT is connected to an AP with weak signal in 2G band, then the
- * bad RSSI offset for 2g would be used as offset from the bad RSSI
- * threshold configured and then use the resulting rssi for an opportunity
- * to use the scan results from other scan clients and try to roam to
- * 5G Band ONLY if there is a better AP available in the environment.
- *
- * For example if the roam_bg_scan_bad_rssi_thresh is -76 and
- * roam_bad_rssi_thresh_offset_2g is 40 then the difference of -36 would be
- * used as a trigger to roam to a 5G AP if DUT initially connected to a 2G AP
- *
- * Related: roam_bg_scan_bad_rssi_thresh
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G CFG_INI_UINT( \
- "roam_bad_rssi_thresh_offset_2g", \
- 0, \
- 86, \
- 40, \
- CFG_VALUE_OR_DEFAULT, \
- "RSSI threshold offset for 2G to 5G roam")
- /*
- * <ini>
- * roamscan_adaptive_dwell_mode - Sets dwell time adaptive mode
- * @Min: 0
- * @Max: 4
- * @Default: 1
- *
- * This parameter will set the algo used in dwell time optimization during
- * roam scan. see enum scan_dwelltime_adaptive_mode.
- * Acceptable values for this:
- * 0: Default (Use firmware default mode)
- * 1: Conservative optimization
- * 2: Moderate optimization
- * 3: Aggressive optimization
- * 4: Static
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE CFG_INI_UINT( \
- "roamscan_adaptive_dwell_mode", \
- 0, \
- 4, \
- 1, \
- CFG_VALUE_OR_DEFAULT, \
- "Sets dwell time adaptive mode")
- /*
- * <ini>
- * gper_roam_enabled - To enabled/disable PER based roaming in FW
- * @Min: 0
- * @Max: 3
- * @Default: 3
- *
- * This ini is used to enable/disable Packet error based roaming, enabling this
- * will cause DUT to monitor Tx and Rx traffic and roam to a better candidate
- * if current is not good enough.
- *
- * Values supported:
- * 0: disabled
- * 1: enabled for Rx traffic
- * 2: enabled for Tx traffic
- * 3: enabled for Tx and Rx traffic
- *
- * Related: gper_roam_high_rate_th, gper_roam_low_rate_th,
- * gper_roam_th_percent, gper_roam_rest_time
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_ENABLE CFG_INI_UINT( \
- "gper_roam_enabled", \
- 0, \
- 3, \
- 3, \
- CFG_VALUE_OR_DEFAULT, \
- "To enabled/disable PER based roaming in FW")
- /*
- * <ini>
- * gper_roam_high_rate_th - Rate at which PER based roam will stop
- * @Min: 1 Mbps
- * @Max: 0xffffffff
- * @Default: 40 Mbps
- *
- * This ini is used to define the data rate in mbps*10 at which FW will stop
- * monitoring the traffic for PER based roam.
- *
- * Related: gper_roam_enabled, gper_roam_low_rate_th,
- * gper_roam_th_percent, gper_roam_rest_time
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH CFG_INI_UINT( \
- "gper_roam_high_rate_th", \
- 10, \
- 0xffffffff, \
- 400, \
- CFG_VALUE_OR_DEFAULT, \
- "Rate at which PER based roam will stop")
- /*
- * <ini>
- * gper_roam_low_rate_th - Rate at which FW starts considering traffic for PER
- * based roam.
- *
- * @Min: 1 Mbps
- * @Max: 0xffffffff
- * @Default: 20 Mbps
- *
- * This ini is used to define the rate in mbps*10 at which FW starts considering
- * traffic for PER based roam, if gper_roam_th_percent of data is below this
- * rate, FW will issue a roam scan.
- *
- * Related: gper_roam_enabled, gper_roam_high_rate_th,
- * gper_roam_th_percent, gper_roam_rest_time
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH CFG_INI_UINT( \
- "gper_roam_low_rate_th", \
- 10, \
- 0xffffffff, \
- 200, \
- CFG_VALUE_OR_DEFAULT, \
- "Rate at which FW starts considering traffic for PER")
- /*
- * <ini>
- * gper_roam_th_percent - Percentage at which FW will issue a roam scan if
- * traffic is below gper_roam_low_rate_th rate.
- *
- * @Min: 10%
- * @Max: 100%
- * @Default: 60%
- *
- * This ini is used to define the percentage at which FW will issue a roam scan
- * if traffic is below gper_roam_low_rate_th rate.
- *
- * Related: gper_roam_enabled, gper_roam_high_rate_th,
- * gper_roam_high_rate_th, gper_roam_rest_time
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT CFG_INI_UINT( \
- "gper_roam_th_percent", \
- 10, \
- 100, \
- 60, \
- CFG_VALUE_OR_DEFAULT, \
- "Percentage at which FW will issue a roam scan")
- /*
- * <ini>
- * gper_roam_rest_time - Time for which FW will wait once it issues a
- * roam scan.
- *
- * @Min: 10 seconds
- * @Max: 3600 seconds
- * @Default: 300 seconds
- *
- * This ini is used to define the time for which FW will wait once it issues a
- * PER based roam scan.
- *
- * Related: gper_roam_enabled, gper_roam_high_rate_th,
- * gper_roam_high_rate_th, gper_roam_th_percent
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_REST_TIME CFG_INI_UINT( \
- "gper_roam_rest_time", \
- 10, \
- 3600, \
- 300, \
- CFG_VALUE_OR_DEFAULT, \
- "Time for which FW will wait once it issues a roam scan")
- /*
- * <ini>
- * gper_roam_mon_time - Minimum time required in seconds to
- * be considered as valid scenario for PER based roam
- * @Min: 5
- * @Max: 25
- * @Default: 25
- *
- * This ini is used to define minimum time in seconds for which DUT has
- * collected the PER stats before it can consider the stats hysteresis to be
- * valid for PER based scan.
- * DUT collects following information during this period:
- * 1. % of packets below gper_roam_low_rate_th
- * 2. # packets above gper_roam_high_rate_th
- * if DUT gets (1) greater than gper_roam_th_percent and (2) is zero during
- * this period, it triggers PER based roam scan.
- *
- * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
- * gper_roam_th_percent, gper_roam_rest_time
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_MONITOR_TIME CFG_INI_UINT( \
- "gper_roam_mon_time", \
- 5, \
- 25, \
- 25, \
- CFG_VALUE_OR_DEFAULT, \
- "Minimum time to be considered as valid scenario for PER based roam")
- /*
- * <ini>
- * gper_min_rssi_threshold_for_roam - Minimum roamable AP RSSI for
- * candidate selection for PER based roam
- * @Min: 0
- * @Max: 96
- * @Default: 83
- *
- * Minimum roamable AP RSSI for candidate selection for PER based roam
- *
- * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
- * gper_roam_th_percent, gper_roam_rest_time
- *
- * Supported Feature: LFR-3.0
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI CFG_INI_UINT( \
- "gper_min_rssi_threshold_for_roam", \
- 10, \
- 96, \
- 83, \
- CFG_VALUE_OR_DEFAULT, \
- "Minimum roamable AP RSSI for candidate selection for PER based roam")
- /*
- * <ini>
- * groam_disallow_duration - disallow duration before roaming
- * @Min: 0
- * @Max: 3600
- * @Default: 30
- *
- * This ini is used to configure how long LCA[Last Connected AP] AP will
- * be disallowed before it can be a roaming candidate again, in units of
- * seconds.
- *
- * Related: LFR
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR3_ROAM_DISALLOW_DURATION CFG_INI_UINT( \
- "groam_disallow_duration", \
- 0, \
- 3600, \
- 30, \
- CFG_VALUE_OR_DEFAULT, \
- "disallow duration before roaming")
- /*
- * <ini>
- * grssi_channel_penalization - RSSI penalization
- * @Min: 0
- * @Max: 15
- * @Default: 5
- *
- * This ini is used to configure RSSI that will be penalized if candidate(s)
- * are found to be in the same channel as disallowed AP's, in units of db.
- *
- * Related: LFR
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION CFG_INI_UINT( \
- "grssi_channel_penalization", \
- 0, \
- 15, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "RSSI penalization")
- /*
- * <ini>
- * groam_num_disallowed_aps - Max number of AP's to maintain in LCA list
- * @Min: 0
- * @Max: 8
- * @Default: 3
- *
- * This ini is used to set the maximum number of AP's to be maintained
- * in LCA [Last Connected AP] list.
- *
- * Related: LFR
- *
- * Usage: Internal
- *
- * </ini>
- */
- #define CFG_LFR3_ROAM_NUM_DISALLOWED_APS CFG_INI_UINT( \
- "groam_num_disallowed_aps", \
- 0, \
- 8, \
- 3, \
- CFG_VALUE_OR_DEFAULT, \
- "Max number of AP's to maintain in LCA list")
- /*
- * <ini>
- * enable_5g_band_pref - Enable preference for 5G from INI.
- * @Min: 0
- * @Max: 1
- * @Default: 0
- * This ini is used to enable 5G preference parameters.
- *
- * Related: 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
- * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ENABLE_5G_BAND_PREF CFG_INI_BOOL( \
- "enable_5g_band_pref", \
- 0, \
- "Enable preference for 5G from INI")
- /*
- * <ini>
- * 5g_rssi_boost_threshold - A_band_boost_threshold above which 5G is favored.
- * @Min: -55
- * @Max: -70
- * @Default: -60
- * This ini is used to set threshold for 5GHz band preference.
- *
- * Related: 5g_rssi_boost_factor, 5g_max_rssi_boost
- * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_5G_RSSI_BOOST_THRESHOLD CFG_INI_INT( \
- "5g_rssi_boost_threshold", \
- -55, \
- -70, \
- -60, \
- CFG_VALUE_OR_DEFAULT, \
- "A_band_boost_threshold above which 5 GHz is favored")
- /*
- * <ini>
- * 5g_rssi_boost_factor - Factor by which 5GHz RSSI is boosted.
- * @Min: 0
- * @Max: 2
- * @Default: 1
- * This ini is used to set the 5Ghz boost factor.
- *
- * Related: 5g_rssi_boost_threshold, 5g_max_rssi_boost
- * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_5G_RSSI_BOOST_FACTOR CFG_INI_UINT( \
- "5g_rssi_boost_factor", \
- 0, \
- 2, \
- 1, \
- CFG_VALUE_OR_DEFAULT, \
- "Factor by which 5GHz RSSI is boosted")
- /*
- * <ini>
- * 5g_max_rssi_boost - Maximum boost that can be applied to 5GHz RSSI.
- * @Min: 0
- * @Max: 20
- * @Default: 10
- * This ini is used to set maximum boost which can be given to a 5Ghz network.
- *
- * Related: 5g_rssi_boost_threshold, 5g_rssi_boost_factor
- * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_5G_MAX_RSSI_BOOST CFG_INI_UINT( \
- "5g_max_rssi_boost", \
- 0, \
- 20, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "Maximum boost that can be applied to 5GHz RSSI")
- /*
- * <ini>
- * 5g_rssi_penalize_threshold - A_band_penalize_threshold above which
- * 5 GHz is not favored.
- * @Min: -65
- * @Max: -80
- * @Default: -70
- * This ini is used to set threshold for 5GHz band preference.
- *
- * Related: 5g_rssi_penalize_factor, 5g_max_rssi_penalize
- * 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD CFG_INI_INT( \
- "5g_rssi_penalize_threshold", \
- -65, \
- -80, \
- -70, \
- CFG_VALUE_OR_DEFAULT, \
- "A_band_penalize_threshold above which 5 GHz is not favored")
- /*
- * <ini>
- * 5g_rssi_penalize_factor - Factor by which 5GHz RSSI is penalizeed.
- * @Min: 0
- * @Max: 2
- * @Default: 1
- * This ini is used to set the 5Ghz penalize factor.
- *
- * Related: 5g_rssi_penalize_threshold, 5g_max_rssi_penalize
- * 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_5G_RSSI_PENALIZE_FACTOR CFG_INI_UINT( \
- "5g_rssi_penalize_factor", \
- 0, \
- 2, \
- 1, \
- CFG_VALUE_OR_DEFAULT, \
- "Factor by which 5GHz RSSI is penalizeed")
- /*
- * <ini>
- * 5g_max_rssi_penalize - Maximum penalty that can be applied to 5GHz RSSI.
- * @Min: 0
- * @Max: 20
- * @Default: 10
- * This ini is used to set maximum penalty which can be given to a 5Ghz network.
- *
- * Related: 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor
- * 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
- *
- * Supported Feature: 5G band preference
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_5G_MAX_RSSI_PENALIZE CFG_INI_UINT( \
- "5g_max_rssi_penalize", \
- 0, \
- 20, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "Maximum penalty that can be applied to 5GHz RSSI")
- /*
- * max_num_pre_auth - Configure max number of pre-auth
- * @Min: 0
- * @Max: 256
- * @Default: 64
- *
- * This ini is used to configure the data max number of pre-auth
- *
- * Usage: Internal
- *
- */
- #define CFG_LFR_MAX_NUM_PRE_AUTH CFG_UINT( \
- "max_num_pre_auth", \
- 0, \
- 256, \
- 64, \
- CFG_VALUE_OR_DEFAULT, \
- "")
- /*
- * roam_preauth_retry_count
- *
- * @Min: 1
- * @Max: 10
- * @Default: 5
- *
- * The maximum number of software retries for preauth or
- * reassoc made before picking up the next candidate for
- * connection during roaming.
- *
- * Related: N/A
- *
- * Supported Features: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT CFG_INI_INT( \
- "roam_preauth_retry_count", \
- 1, \
- 10, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "The maximum number of software retries for preauth")
- /*
- * <ini>
- * roam_preauth_no_ack_timeout
- *
- * @Min: 5
- * @Max: 50
- * @Default: 5
- *
- * Time to wait (in ms) after sending an preauth or reassoc
- * request which didn’t have an ack, before considering
- * it as a failure and making another software retry.
- *
- * Related: N/A
- *
- * Supported Features: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT CFG_INI_INT( \
- "roam_preauth_no_ack_timeout", \
- 5, \
- 50, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "Time to wait after sending an preauth or reassoc")
- /*
- * <ini>
- * FastRoamEnabled - Enable fast roaming
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to inform FW to enable fast roaming
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_FEATURE_ENABLED CFG_INI_BOOL( \
- "FastRoamEnabled", \
- 0, \
- "Enable fast roaming")
- /*
- * <ini>
- * MAWCEnabled - Enable/Disable Motion Aided Wireless Connectivity Global
- * @Min: 0 - Disabled
- * @Max: 1 - Enabled
- * @Default: 0
- *
- * This ini is used to controls the MAWC feature globally.
- * MAWC is Motion Aided Wireless Connectivity.
- *
- * Related: mawc_roam_enabled.
- *
- * Supported Feature: Roaming and PNO/NLO
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_MAWC_FEATURE_ENABLED CFG_INI_BOOL( \
- "MAWCEnabled", \
- 0, \
- "Enable MAWC")
- /*
- * <ini>
- * FastTransitionEnabled - Enable fast transition in case of 11r and ese.
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This ini is used to turn ON/OFF the whole neighbor roam, pre-auth, reassoc.
- * With this turned OFF 11r will completely not work. For 11r this flag has to
- * be ON. For ESE fastroam will not work.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_FAST_TRANSITION_ENABLED CFG_INI_BOOL( \
- "FastTransitionEnabled", \
- 1, \
- "Enable fast transition")
- /*
- * <ini>
- * RoamRssiDiff - Enable roam based on rssi
- * @Min: 0
- * @Max: 30
- * @Default: 5
- *
- * This INI is used to decide whether to Roam or not based on RSSI. AP1 is the
- * currently associated AP and AP2 is chosen for roaming. The Roaming will
- * happen only if AP2 has better Signal Quality and it has a RSSI better than
- * AP2. RoamRssiDiff is the number of units (typically measured in dB) AP2
- * is better than AP1.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_RSSI_DIFF CFG_INI_UINT( \
- "RoamRssiDiff", \
- 0, \
- 30, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "Enable roam based on rssi")
- /*
- * <ini>
- * gWESModeEnabled - Enable WES mode
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to enable/disable Wireless Extended Security mode.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ENABLE_WES_MODE CFG_INI_BOOL( \
- "gWESModeEnabled", \
- 0, \
- "Enable WES mode")
- /*
- * <ini>
- * gRoamScanOffloadEnabled - Enable Roam Scan Offload
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This INI is used to enable Roam Scan Offload in firmware
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED CFG_INI_BOOL( \
- "gRoamScanOffloadEnabled", \
- 1, \
- "Enable Roam Scan Offload")
- /*
- * <ini>
- * gNeighborScanChannelList - Set channels to be scanned
- * by firmware for LFR scan
- * @Default: ""
- *
- * This ini is used to set the channels to be scanned
- * by firmware for LFR scan.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST CFG_INI_STRING( \
- "gNeighborScanChanList", \
- 0, \
- CFG_VALID_CHANNEL_LIST_STRING_LEN, \
- "", \
- "Set channels to be scanned")
- /*
- * <ini>
- * gNeighborScanTimerPeriod - Set neighbor scan timer period
- * @Min: 3
- * @Max: 300
- * @Default: 100
- *
- * This ini is used to set the timer period in secs after
- * which neighbor scan is trigerred.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD CFG_INI_UINT( \
- "gNeighborScanTimerPeriod", \
- 3, \
- 300, \
- 100, \
- CFG_VALUE_OR_DEFAULT, \
- "Neighbor scan timer period")
- /*
- * <ini>
- * gRoamRestTimeMin - Set min neighbor scan timer period
- * @Min: 3
- * @Max: 300
- * @Default: 50
- *
- * This is the min rest time after which firmware will check for traffic
- * and if there no traffic it will move to a new channel to scan
- * else it will stay on the home channel till gNeighborScanTimerPeriod time
- * and then will move to a new channel to scan.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD CFG_INI_UINT( \
- "gRoamRestTimeMin", \
- 3, \
- 300, \
- 50, \
- CFG_VALUE_OR_DEFAULT, \
- "Min neighbor scan timer period")
- /*
- * <ini>
- * gNeighborLookupThreshold - Set neighbor lookup rssi threshold
- * @Min: 10
- * @Max: 120
- * @Default: 78
- *
- * This is used to control the RSSI threshold for neighbor lookup.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD CFG_INI_UINT( \
- "gNeighborLookupThreshold", \
- 10, \
- 120, \
- 78, \
- CFG_VALUE_OR_DEFAULT, \
- "Neighbor lookup rssi threshold")
- /*
- * <ini>
- * gOpportunisticThresholdDiff - Set oppurtunistic threshold diff
- * @Min: 0
- * @Max: 127
- * @Default: 0
- *
- * This ini is used to set opportunistic threshold diff.
- * This parameter is the RSSI diff above neighbor lookup
- * threshold, when opportunistic scan should be triggered.
- * MAX value is chosen so that this type of scan can be
- * always enabled by user.
- * MIN value will cause opportunistic scan to be triggered
- * in neighbor lookup RSSI range.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF CFG_INI_UINT( \
- "gOpportunisticThresholdDiff", \
- 0, \
- 127, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Set oppurtunistic threshold diff")
- /*
- * <ini>
- * gRoamRescanRssiDiff - Sets RSSI for Scan trigger in firmware
- * @Min: 0
- * @Max: 100
- * @Default: 5
- *
- * This INI is the drop in RSSI value that will trigger a precautionary
- * scan by firmware. Max value is chosen in such a way that this type
- * of scan can be disabled by user.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_RESCAN_RSSI_DIFF CFG_INI_UINT( \
- "gRoamRescanRssiDiff", \
- 0, \
- 100, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "Sets RSSI for Scan trigger in firmware")
- /*
- * <ini>
- * gNeighborScanChannelMinTime - Set neighbor scan channel min time
- * @Min: 10
- * @Max: 40
- * @Default: 20
- *
- * This ini is used to set the minimum time in secs spent on each
- * channel in LFR scan inside firmware.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME CFG_INI_UINT( \
- "gNeighborScanChannelMinTime", \
- 10, \
- 40, \
- 20, \
- CFG_VALUE_OR_DEFAULT, \
- "Neighbor scan channel min time")
- /*
- * <ini>
- * gNeighborScanChannelMaxTime - Set neighbor scan channel max time
- * @Min: 3
- * @Max: 300
- * @Default: 30
- *
- * This ini is used to set the maximum time in secs spent on each
- * channel in LFR scan inside firmware.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME CFG_INI_UINT( \
- "gNeighborScanChannelMaxTime", \
- 3, \
- 300, \
- 30, \
- CFG_VALUE_OR_DEFAULT, \
- "Neighbor scan channel max time")
- /*
- * <ini>
- * gNeighborScanRefreshPeriod - Set neighbor scan refresh period
- * @Min: 1000
- * @Max: 60000
- * @Default: 20000
- *
- * This ini is used by firmware to set scan refresh period
- * in msecs for lfr scan.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD CFG_INI_UINT( \
- "gNeighborScanRefreshPeriod", \
- 1000, \
- 60000, \
- 20000, \
- CFG_VALUE_OR_DEFAULT, \
- "Neighbor scan refresh period")
- /*
- * <ini>
- * gEmptyScanRefreshPeriod - Set empty scan refresh period
- * @Min: 0
- * @Max: 60000
- * @Default: 0
- *
- * This ini is used by firmware to set scan period in msecs
- * following empty scan results.
- *
- * Related: None
- *
- * Supported Feature: LFR Scan
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD CFG_INI_UINT( \
- "gEmptyScanRefreshPeriod", \
- 0, \
- 60000, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Empty scan refresh period")
- /*
- * <ini>
- * gRoamBmissFirstBcnt - Beacon miss count to trigger 1st bmiss event
- * @Min: 5
- * @Max: 100
- * @Default: 10
- *
- * This ini used to control how many beacon miss will trigger first bmiss
- * event. First bmiss event will result in roaming scan.
- *
- * Related: None
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_BMISS_FIRST_BCNT CFG_INI_UINT( \
- "gRoamBmissFirstBcnt", \
- 5, \
- 100, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "First beacon miss count")
- /*
- * <ini>
- * gRoamBmissFinalBcnt - Beacon miss count to trigger final bmiss event
- * @Min: 5
- * @Max: 100
- * @Default: 20
- *
- * This ini used to control how many beacon miss will trigger final bmiss
- * event. Final bmiss event will make roaming take place or cause the
- * indication of final bmiss event.
- *
- * Related: None
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_BMISS_FINAL_BCNT CFG_INI_UINT( \
- "gRoamBmissFinalBcnt", \
- 5, \
- 100, \
- 20, \
- CFG_VALUE_OR_DEFAULT, \
- "Final beacon miss count")
- /*
- * <ini>
- * gRoamBeaconRssiWeight - Set beacon miss weight
- * @Min: 5
- * @Max: 16
- * @Default: 14
- *
- * This ini controls how many beacons' RSSI values will be used to calculate
- * the average value of RSSI.
- *
- * Related: None
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_BEACON_RSSI_WEIGHT CFG_INI_UINT( \
- "gRoamBeaconRssiWeight", \
- 0, \
- 16, \
- 14, \
- CFG_VALUE_OR_DEFAULT, \
- "Beacon miss weight")
- /*
- * <ini>
- * gAllowDFSChannelRoam - Allow dfs channel in roam
- * @Min: 0
- * @Max: 2
- * @Default: 0
- *
- * This ini is used to set default dfs channel
- *
- * Related: None
- *
- * Supported Feature: STA
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_ROAMING_DFS_CHANNEL CFG_INI_UINT( \
- "gAllowDFSChannelRoam", \
- 0, \
- 2, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Allow dfs channel in roam")
- /*
- * <ini>
- * gRoamScanHiRssiMaxCount - Sets 5GHz maximum scan count
- * @Min: 0
- * @Max: 10
- * @Default: 3
- *
- * This INI is used to set maximum scan count in 5GHz
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT CFG_INI_UINT( \
- "gRoamScanHiRssiMaxCount", \
- 0, \
- 10, \
- 3, \
- CFG_VALUE_OR_DEFAULT, \
- "5GHz maximum scan count")
- /*
- * <ini>
- * gRoamScanHiRssiDelta - Sets RSSI Delta for scan trigger
- * @Min: 0
- * @Max: 16
- * @Default: 10
- *
- * This INI is used to set change in RSSI at which scan is triggered
- * in 5GHz.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA CFG_INI_UINT( \
- "gRoamScanHiRssiDelta", \
- 0, \
- 16, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "RSSI Delta for scan trigger")
- /*
- * <ini>
- * gRoamScanHiRssiDelay - Sets minimum delay between 5GHz scans
- * @Min: 5000
- * @Max: 0x7fffffff
- * @Default: 15000
- *
- * This INI is used to set the minimum delay between 5GHz scans.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY CFG_INI_UINT( \
- "gRoamScanHiRssiDelay", \
- 5000, \
- 0x7fffffff, \
- 15000, \
- CFG_VALUE_OR_DEFAULT, \
- "Minimum delay between 5GHz scans")
- /*
- * <ini>
- * gRoamScanHiRssiUpperBound - Sets upper bound after which 5GHz scan
- * @Min: -66
- * @Max: 0
- * @Default: -30
- *
- * This INI is used to set the RSSI upper bound above which the 5GHz scan
- * will not be performed.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_HI_RSSI_UB CFG_INI_INT( \
- "gRoamScanHiRssiUpperBound", \
- -66, \
- 0, \
- -30, \
- CFG_VALUE_OR_DEFAULT, \
- "Upper bound after which 5GHz scan")
- /*
- * <ini>
- * gRoamPrefer5GHz - Prefer roaming to 5GHz Bss
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This ini is used to inform FW to prefer roaming to 5GHz BSS
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_PREFER_5GHZ CFG_INI_BOOL( \
- "gRoamPrefer5GHz", \
- 1, \
- "Prefer roaming to 5GHz Bss")
- /*
- * <ini>
- * gRoamIntraBand - Prefer roaming within Band
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to inform FW to prefer roaming within band
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_INTRA_BAND CFG_INI_BOOL( \
- "gRoamIntraBand", \
- 0, \
- "Prefer roaming within Band")
- /*
- * <ini>
- * gRoamScanNProbes - Sets the number of probes to be sent for firmware roaming
- * @Min: 1
- * @Max: 10
- * @Default: 2
- *
- * This INI is used to set the maximum number of probes the firmware can send
- * for firmware internal roaming cases.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_N_PROBES CFG_INI_UINT( \
- "gRoamScanNProbes", \
- 1, \
- 10, \
- 2, \
- CFG_VALUE_OR_DEFAULT, \
- "The number of probes to be sent for firmware roaming")
- /*
- * <ini>
- * gRoamScanHomeAwayTime - Sets the Home Away Time to firmware
- * @Min: 0
- * @Max: 300
- * @Default: 0
- *
- * Home Away Time should be at least equal to (gNeighborScanChannelMaxTime
- * + (2*RFS)), where RFS is the RF Switching time(3). It is twice RFS
- * to consider the time to go off channel and return to the home channel.
- *
- * Related: gNeighborScanChannelMaxTime
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME CFG_INI_UINT( \
- "gRoamScanHomeAwayTime", \
- 0, \
- 300, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "the home away time to firmware")
- /*
- * <ini>
- * gDelayBeforeVdevStop - wait time for tx complete before vdev stop
- * @Min: 2
- * @Max: 200
- * @Default: 20
- *
- * This INI is used to set wait time for tx complete before vdev stop.
- *
- * Related: None
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_DELAY_BEFORE_VDEV_STOP CFG_INI_UINT( \
- "gDelayBeforeVdevStop", \
- 2, \
- 200, \
- 20, \
- CFG_VALUE_OR_DEFAULT, \
- "wait time for tx complete before vdev stop")
- /*
- * <ini>
- * enable_bss_load_roam_trigger - enable/disable bss load based roam trigger
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini when enabled, allows the firmware to roam when bss load outpaces
- * the configured bss load threshold. When this ini is disabled, firmware
- * doesn't consider bss load values to trigger roam.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM CFG_INI_BOOL( \
- "enable_bss_load_roam_trigger", \
- 0, \
- "enable bss load triggered roaming")
- /*
- * <ini>
- * bss_load_threshold - bss load above which the STA should trigger roaming
- * @Min: 0
- * @Max: 100
- * @Default: 70
- *
- * When the bss laod value that is sampled exceeds this threshold, firmware
- * will trigger roaming if bss load trigger is enabled.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_BSS_LOAD_THRESHOLD CFG_INI_UINT( \
- "bss_load_threshold", \
- 0, \
- 100, \
- 70, \
- CFG_VALUE_OR_DEFAULT, \
- "bss load threshold")
- /*
- * <ini>
- * bss_load_sample_time - Time in milliseconds for which the bss load values
- * obtained from the beacons is sampled.
- * @Min: 0
- * @Max: 0xffffffff
- * @Default: 10000
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_BSS_LOAD_SAMPLE_TIME CFG_INI_UINT( \
- "bss_load_sample_time", \
- 0, \
- 0xffffffff, \
- 10000, \
- CFG_VALUE_OR_DEFAULT, \
- "bss load sampling time")
- /*
- * <ini>
- * bss_load_trigger_5g_rssi_threshold - Current AP minimum RSSI in dBm below
- * which roaming can be triggered if BSS load exceeds bss_load_threshold.
- * @Min: -120
- * @Max: 0
- * @Default: -70
- *
- * If connected AP is in 5Ghz, then consider bss load roam triggered only if
- * load % > bss_load_threshold && connected AP rssi is worse than
- * bss_load_trigger_5g_rssi_threshold
- *
- * Related: "bss_load_threshold"
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_BSS_LOAD_TRIG_5G_RSSI_THRES CFG_INI_INT( \
- "bss_load_trigger_5g_rssi_threshold", \
- -120, \
- 0, \
- -70, \
- CFG_VALUE_OR_DEFAULT, \
- "Minimum RSSI of current AP in 5GHz band for BSS load roam trigger")
- /*
- * <ini>
- * bss_load_trigger_2g_rssi_threshold - Current AP minimum RSSI in dBm below
- * which roaming can be triggered if BSS load exceeds bss_load_threshold.
- * @Min: -120
- * @Max: 0
- * @Default: -60
- *
- * If connected AP is in 2Ghz, then consider bss load roam triggered only if
- * load % > bss_load_threshold && connected AP rssi is worse than
- * bss_load_trigger_2g_rssi_threshold.
- *
- * Related: "bss_load_threshold"
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_BSS_LOAD_TRIG_2G_RSSI_THRES CFG_INI_INT( \
- "bss_load_trigger_2g_rssi_threshold", \
- -120, \
- 0, \
- -60, \
- CFG_VALUE_OR_DEFAULT, \
- "Minimum RSSI of current AP in 2.4GHz band for BSS load roam trigger")
- /*
- * <ini>
- * ho_delay_for_rx - Delay hand-off (in msec) by this duration to receive
- * pending rx frames from current BSS
- * @Min: 0
- * @Max: 200
- * @Default: 0
- *
- * For LFR 3.0 roaming scenario, once roam candidate is found, firmware
- * waits for minimum this much duration to receive pending rx frames from
- * current BSS before switching to new channel for handoff to new AP.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR3_ROAM_HO_DELAY_FOR_RX CFG_INI_UINT( \
- "ho_delay_for_rx", \
- 0, \
- 200, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Delay Hand-off by this duration to receive")
- /*
- * <ini>
- * min_delay_btw_roam_scans - Min duration (in sec) allowed btw two
- * consecutive roam scans
- * @Min: 0
- * @Max: 60
- * @Default: 10
- *
- * Roam scan is not allowed if duration between two consecutive
- * roam scans is less than this time.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN CFG_INI_UINT( \
- "min_delay_btw_roam_scans", \
- 0, \
- 60, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "Min duration")
- /*
- * <ini>
- * roam_trigger_reason_bitmask - Contains roam_trigger_reasons
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 0x10DA
- *
- * Bitmask containing roam_trigger_reasons for which
- * min_delay_btw_roam_scans constraint should be applied.
- * Currently supported bit positions are as follows:
- * Bit 0 is reserved in the firmware.
- * WMI_ROAM_TRIGGER_REASON_PER - 1
- * WMI_ROAM_TRIGGER_REASON_BMISS - 2
- * WMI_ROAM_TRIGGER_REASON_LOW_RSSI - 3
- * WMI_ROAM_TRIGGER_REASON_HIGH_RSSI - 4
- * WMI_ROAM_TRIGGER_REASON_PERIODIC - 5
- * WMI_ROAM_TRIGGER_REASON_MAWC - 6
- * WMI_ROAM_TRIGGER_REASON_DENSE - 7
- * WMI_ROAM_TRIGGER_REASON_BACKGROUND - 8
- * WMI_ROAM_TRIGGER_REASON_FORCED - 9
- * WMI_ROAM_TRIGGER_REASON_BTM - 10
- * WMI_ROAM_TRIGGER_REASON_UNIT_TEST - 11
- * WMI_ROAM_TRIGGER_REASON_BSS_LOAD - 12
- * WMI_ROAM_TRIGGER_REASON_DEAUTH - 13
- * WMI_ROAM_TRIGGER_REASON_IDLE - 14
- * WMI_ROAM_TRIGGER_REASON_MAX - 15
- *
- * For Ex: 0xDA (PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE)
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK CFG_INI_UINT( \
- "roam_trigger_reason_bitmask", \
- 0, \
- 0xFFFFFFFF, \
- 0x10DA, \
- CFG_VALUE_OR_DEFAULT, \
- "Contains roam_trigger_reasons")
- /*
- * <ini>
- * enable_ftopen - enable/disable FT open feature
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This INI is used to enable/disable FT open feature
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_FT_OPEN_ENABLE CFG_INI_BOOL( \
- "enable_ftopen", \
- 1, \
- "enable/disable FT open feature")
- /*
- * <ini>
- * roam_force_rssi_trigger - To force RSSI trigger
- * irrespective of channel list type
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This ini is used to set roam scan mode
- * WMI_ROAM_SCAN_MODE_RSSI_CHANGE, irrespective of whether
- * channel list type is CHANNEL_LIST_STATIC or not
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ROAM_FORCE_RSSI_TRIGGER CFG_INI_BOOL( \
- "roam_force_rssi_trigger", \
- 1, \
- "To force RSSI trigger")
- #ifdef WLAN_FEATURE_ROAM_OFFLOAD
- /*
- * <ini>
- * gRoamOffloadEnabled - enable/disable roam offload feature
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * This INI is used to enable/disable roam offload feature
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR3_ROAMING_OFFLOAD CFG_INI_BOOL( \
- "gRoamOffloadEnabled", \
- 1, \
- "enable roam offload")
- /*
- * <ini>
- * enable_disconnect_roam_offload - Enable/Disable emergency roaming during
- * deauth/disassoc
- * @Min: 0 - Disabled
- * @Max: 1 - Enabled
- * @Default: 1
- *
- * When this ini is enabled firmware will trigger roam scan and roam to a new ap
- * if candidate is found and it will not send the deauth/disassoc frame to
- * the host driver.
- * If roaming fails after this deauth, then firmware will send
- * WMI_ROAM_REASON_DEAUTH event to the host. If roaming is successful, driver
- * follows the normal roam synch event path.
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_ENABLE_DISCONNECT_ROAM CFG_INI_BOOL( \
- "enable_disconnect_roam_offload", \
- true, \
- "Enable/Disable roaming on deauth/disassoc from AP")
- /*
- * <ini>
- * enable_idle_roam - Enable/Disable idle roaming
- * @Min: 0 - Disabled
- * @Max: 1 - Enabled
- * @Default: 0
- *
- * When this ini is enabled firmware will trigger roam scan and roam to a new
- * ap if current connected AP rssi falls below the threshold. To consider the
- * connection as idle, the following conditions should be met if this ini
- * "enable_idle_roam" is enabled:
- * 1. User space sends "SET SUSPENDMODE" command with value 0.
- * 2. No TX/RX data for idle time configured via ini "idle_roam_inactive_time".
- * 3. Connected AP rssi change doesn't exceed a specific delta value.
- * (configured via ini idle_roam_rssi_delta)
- * 4. Connected AP rssi falls below minimum rssi (configured via ini
- * "idle_roam_min_rssi").
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_ENABLE_IDLE_ROAM CFG_INI_BOOL( \
- "enable_idle_roam", \
- false, \
- "Enable/Disable idle roam")
- /*
- * <ini>
- * idle_roam_rssi_delta - This threshold is the criteria to decide whether DUT
- * is idle or moving. If rssi delta is more than configured thresold then its
- * considered as not idle. RSSI delta is entered in dBm. Idle roaming can be
- * triggered if the connected AP rssi change exceeds or falls below the
- * rssi delta and if other criteria of ini "enable_idle_roam" is met
- * @Min: 0
- * @Max: 50
- * @Default: 5
- *
- * Related: enable_idle_roam
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_IDLE_ROAM_RSSI_DELTA CFG_INI_UINT( \
- "idle_roam_rssi_delta", \
- 0, \
- 50, \
- 5, \
- CFG_VALUE_OR_DEFAULT, \
- "Configure RSSI delta to start idle roam")
- /*
- * <ini>
- * idle_roam_inactive_time - Time duration in millseconds for which the
- * connection is idle.
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 10000
- *
- * This ini is used to configure the time in seconds for which the connection
- * candidate is idle and after which idle roam scan can be triggered if
- * other criteria of ini "enable_idle_roam" is met.
- *
- * Related: enable_idle_roam
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_IDLE_ROAM_INACTIVE_TIME CFG_INI_UINT( \
- "idle_roam_inactive_time", \
- 0, \
- 0xFFFFFFFF, \
- 10000, \
- CFG_VALUE_OR_DEFAULT, \
- "Configure RSSI delta to start idle roam")
- /*
- * <ini>
- * idle_data_packet_count - No of tx/rx packets above which the connection is
- * not idle.
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 10
- *
- * This ini is used to configure the acceptable number of tx/rx packets below
- * which the connection is idle. Ex: If idle_data_packet_count is 10
- * and if the tx/rx packet count is less than 10, the connection is
- * idle. If there are more than 10 packets, the connection is active one.
- *
- * Related: enable_idle_roam
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_IDLE_ROAM_PACKET_COUNT CFG_INI_UINT( \
- "idle_data_packet_count", \
- 0, \
- 0xFFFFFFFF, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "Configure idle packet count")
- /*
- * <ini>
- * idle_roam_min_rssi - Minimum RSSI of connected AP, below which
- * idle roam scan can be triggered if other criteria of ini "enable_idle_roam"
- * is met.
- * @Min: -96
- * @Max: 0
- * @Default: -65
- *
- * Related: enable_idle_roam
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_IDLE_ROAM_MIN_RSSI CFG_INI_INT( \
- "idle_roam_min_rssi", \
- -96, \
- 0, \
- -65, \
- CFG_VALUE_OR_DEFAULT, \
- "Configure idle roam minimum RSSI")
- /*
- * <ini>
- * idle_roam_band - Band on which idle roam scan will be
- * enabled
- * @Min: 0
- * @Max: 2
- * @Default: 0
- *
- * Value 0 - Allow idle roam on both bands
- * Value 1 - Allow idle roam only on 2G band
- * Value 2 - Allow idle roam only on 5G band
- *
- * Related: enable_idle_roam
- *
- * Supported Feature: Roaming
- *
- * Usage: Internal/External
- *
- * </ini>
- */
- #define CFG_LFR_IDLE_ROAM_BAND CFG_INI_UINT( \
- "idle_roam_band", \
- 0, \
- 2, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Band on which idle roam needs to be enabled")
- #define ROAM_OFFLOAD_ALL \
- CFG(CFG_LFR3_ROAMING_OFFLOAD) \
- CFG(CFG_LFR_ENABLE_DISCONNECT_ROAM) \
- CFG(CFG_LFR_ENABLE_IDLE_ROAM) \
- CFG(CFG_LFR_IDLE_ROAM_RSSI_DELTA) \
- CFG(CFG_LFR_IDLE_ROAM_INACTIVE_TIME) \
- CFG(CFG_LFR_IDLE_ROAM_PACKET_COUNT) \
- CFG(CFG_LFR_IDLE_ROAM_MIN_RSSI) \
- CFG(CFG_LFR_IDLE_ROAM_BAND) \
- #else
- #define ROAM_OFFLOAD_ALL
- #endif
- #ifdef FEATURE_WLAN_ESE
- /*
- * <ini>
- * EseEnabled - Enable ESE feature
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to enable/disable ESE feature
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR_ESE_FEATURE_ENABLED CFG_INI_BOOL( \
- "EseEnabled", \
- 0, \
- "Enable ESE")
- #define LFR_ESE_ALL CFG(CFG_LFR_ESE_FEATURE_ENABLED)
- #else
- #define LFR_ESE_ALL
- #endif
- #ifdef FEATURE_LFR_SUBNET_DETECTION
- /*
- * <ini>
- * gLFRSubnetDetectionEnable - Enable LFR3 subnet detection
- * @Min: 0
- * @Max: 1
- * @Default: 1
- *
- * Enable IP subnet detection during legacy fast roming version 3. Legacy fast
- * roaming could roam across IP subnets without host processors' knowledge.
- * This feature enables firmware to wake up the host processor if it
- * successfully determines change in the IP subnet. Change in IP subnet could
- * potentially cause disruption in IP connnectivity if IP address is not
- * refreshed.
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_LFR3_ENABLE_SUBNET_DETECTION CFG_INI_BOOL( \
- "gLFRSubnetDetectionEnable", \
- 1, \
- "Enable LFR3 subnet detection")
- #define LFR_SUBNET_DETECTION_ALL CFG(CFG_LFR3_ENABLE_SUBNET_DETECTION)
- #else
- #define LFR_SUBNET_DETECTION_ALL
- #endif
- /*
- * <ini>
- * roaming_scan_policy - To config roaming scan policy
- * @Min: 0
- * @Max: 1
- * @Default: 0
- *
- * This ini is used to configure roaming scan behavior from HOST
- * 0 : DBS scan
- * 1 : Non-DBS scan
- *
- * Related: None
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_ROAM_SCAN_SCAN_POLICY CFG_INI_BOOL( \
- "roaming_scan_policy", \
- 0, \
- "Config roam scan policy")
- /*
- * <ini>
- * roam_scan_inactivity_time - Device inactivity monitoring time in
- * milliseconds for which the device is considered to be inactive with data
- * packets count is less than configured roam_inactive_data_count.
- *
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 0
- *
- * The below three ini values are used to control the roam scan after the
- * firmware gets empty roam scan results during periodic roam scans.
- * 1. roam_scan_inactivity_time
- * 2. roam_inactive_data_count
- * 3. roam_scan_period_after_inactivity
- * The first two ini "roam_scan_inactivity_time" and "roam_inactive_data_count"
- * is frames the criteria to detect if the DUT is inactive. If the device is
- * identified to be inactive based on the above two ini, then the value,
- * "roam_scan_period_after_inactivity" will be used as periodic roam scan
- * duration.
- *
- * Related: roam_inactive_data_count
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_ROAM_SCAN_INACTIVITY_TIME CFG_INI_UINT( \
- "roam_scan_inactivity_time", \
- 0, \
- 0xFFFFFFFF, \
- 0, \
- CFG_VALUE_OR_DEFAULT, \
- "Device inactivity monitoring time")
- /*
- * <ini>
- * roam_inactive_data_count - Maximum allowed data packets count during
- * roam_scan_inactivity_time.
- *
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 10
- *
- * The DUT is said to be inactive only if the data packets count
- * during this roam_scan_inactivity_time is less than the configured
- * roam_inactive_data_count.
- *
- * Related: roam_scan_inactivity_time
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_ROAM_INACTIVE_COUNT CFG_INI_UINT( \
- "roam_inactive_data_count", \
- 0, \
- 0xFFFFFFFF, \
- 10, \
- CFG_VALUE_OR_DEFAULT, \
- "Roam scan inactivity period data pkt count")
- /*
- * <ini>
- * roam_scan_period_after_inactivity - Roam scan duration in ms after device is
- * out of inactivity state.
- *
- * @Min: 0
- * @Max: 0xFFFFFFFF
- * @Default: 120000
- *
- * If there is empty scan results during roam scan, firmware will move to
- * roam scan inactive state if roam_scan_inactivity and
- * roam_inactive_data_count criteria are met.
- * This ini is used to configure the roam scan duration in ms once the
- * inactivity is finished and roam scan can be started.
- *
- * Related: roam_scan_inactivity_time, roam_inactive_data_count
- *
- * Supported Feature: Roaming
- *
- * Usage: External
- *
- * </ini>
- */
- #define CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD CFG_INI_UINT( \
- "roam_scan_period_after_inactivity", \
- 0, \
- 0xFFFFFFFF, \
- 120000, \
- CFG_VALUE_OR_DEFAULT, \
- "Roam scan period post inactivity")
- #define CFG_LFR_ALL \
- CFG(CFG_LFR_MAWC_ROAM_ENABLED) \
- CFG(CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD) \
- CFG(CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD) \
- CFG(CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST) \
- CFG(CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST) \
- CFG(CFG_LFR_ROAM_RSSI_ABS_THRESHOLD) \
- CFG(CFG_LFR_5G_RSSI_THRESHOLD_OFFSET) \
- CFG(CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY) \
- CFG(CFG_LFR_EARLY_STOP_SCAN_ENABLE) \
- CFG(CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD) \
- CFG(CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD) \
- CFG(CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD) \
- CFG(CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD) \
- CFG(CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET) \
- CFG(CFG_LFR_ROAM_DENSE_MIN_APS) \
- CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD) \
- CFG(CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP) \
- CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G) \
- CFG(CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE) \
- CFG(CFG_LFR_PER_ROAM_ENABLE) \
- CFG(CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH) \
- CFG(CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH) \
- CFG(CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT) \
- CFG(CFG_LFR_PER_ROAM_REST_TIME) \
- CFG(CFG_LFR_PER_ROAM_MONITOR_TIME) \
- CFG(CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI) \
- CFG(CFG_LFR3_ROAM_DISALLOW_DURATION) \
- CFG(CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION) \
- CFG(CFG_LFR3_ROAM_NUM_DISALLOWED_APS) \
- CFG(CFG_LFR_ENABLE_5G_BAND_PREF) \
- CFG(CFG_LFR_5G_RSSI_BOOST_THRESHOLD) \
- CFG(CFG_LFR_5G_RSSI_BOOST_FACTOR) \
- CFG(CFG_LFR_5G_MAX_RSSI_BOOST) \
- CFG(CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD) \
- CFG(CFG_LFR_5G_RSSI_PENALIZE_FACTOR) \
- CFG(CFG_LFR_5G_MAX_RSSI_PENALIZE) \
- CFG(CFG_LFR_MAX_NUM_PRE_AUTH) \
- CFG(CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT) \
- CFG(CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT) \
- CFG(CFG_LFR_FEATURE_ENABLED) \
- CFG(CFG_LFR_MAWC_FEATURE_ENABLED) \
- CFG(CFG_LFR_FAST_TRANSITION_ENABLED) \
- CFG(CFG_LFR_ROAM_RSSI_DIFF) \
- CFG(CFG_LFR_ENABLE_WES_MODE) \
- CFG(CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED) \
- CFG(CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST) \
- CFG(CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD) \
- CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD) \
- CFG(CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD) \
- CFG(CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF) \
- CFG(CFG_LFR_ROAM_RESCAN_RSSI_DIFF) \
- CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME) \
- CFG(CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME) \
- CFG(CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD) \
- CFG(CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD) \
- CFG(CFG_LFR_ROAM_BMISS_FIRST_BCNT) \
- CFG(CFG_LFR_ROAM_BMISS_FINAL_BCNT) \
- CFG(CFG_LFR_ROAM_BEACON_RSSI_WEIGHT) \
- CFG(CFG_LFR_ROAMING_DFS_CHANNEL) \
- CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT) \
- CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA) \
- CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY) \
- CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_UB) \
- CFG(CFG_LFR_ROAM_PREFER_5GHZ) \
- CFG(CFG_LFR_ROAM_INTRA_BAND) \
- CFG(CFG_LFR_ROAM_SCAN_N_PROBES) \
- CFG(CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME) \
- CFG(CFG_LFR_DELAY_BEFORE_VDEV_STOP) \
- CFG(CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM) \
- CFG(CFG_BSS_LOAD_THRESHOLD) \
- CFG(CFG_BSS_LOAD_SAMPLE_TIME) \
- CFG(CFG_LFR3_ROAM_HO_DELAY_FOR_RX) \
- CFG(CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN) \
- CFG(CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK) \
- CFG(CFG_LFR_ROAM_FT_OPEN_ENABLE) \
- CFG(CFG_LFR_ROAM_FORCE_RSSI_TRIGGER) \
- CFG(CFG_ROAM_SCAN_SCAN_POLICY) \
- CFG(CFG_ROAM_SCAN_INACTIVITY_TIME) \
- CFG(CFG_ROAM_INACTIVE_COUNT) \
- CFG(CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD) \
- CFG(CFG_BSS_LOAD_TRIG_5G_RSSI_THRES) \
- CFG(CFG_BSS_LOAD_TRIG_2G_RSSI_THRES) \
- ROAM_OFFLOAD_ALL \
- LFR_ESE_ALL \
- LFR_SUBNET_DETECTION_ALL
- #endif /* CFG_MLME_LFR_H__ */
|