12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054 |
- /*
- * Copyright (c) 2012-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: 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>
- * 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, \
- "Set early stop scan")
- /*
- * <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")
- #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")
- #define ROAM_OFFLOAD_ALL CFG(CFG_LFR3_ROAMING_OFFLOAD)
- #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
- #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_LFR3_ENABLE_SUBNET_DETECTION) \
- 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) \
- ROAM_OFFLOAD_ALL \
- LFR_ESE_ALL
- #endif /* CFG_MLME_LFR_H__ */
|