cfg_mlme_lfr.h 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for
  6. * any purpose with or without fee is hereby granted, provided that the
  7. * above copyright notice and this permission notice appear in all
  8. * copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  11. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  12. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  13. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  14. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  15. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  16. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. * PERFORMANCE OF THIS SOFTWARE.
  18. */
  19. /**
  20. * DOC: This file contains configuration definitions for MLME LFR.
  21. */
  22. #ifndef CFG_MLME_LFR_H__
  23. #define CFG_MLME_LFR_H__
  24. #ifdef CONNECTION_ROAMING_CFG
  25. # define RoamScan_ActiveCH_DwellTime_min 0
  26. # define RoamScan_ActiveCH_DwellTime_max 200
  27. # define RoamScan_ActiveCH_DwellTime_default 40
  28. # define RoamScan_InactiveCount_min 0
  29. # define RoamScan_InactiveCount_max 20
  30. # define RoamScan_InactiveCount_default 5
  31. # define RoamScan_StepRSSI_min 0
  32. # define RoamScan_StepRSSI_max 20
  33. # define RoamScan_StepRSSI_default 5
  34. # define RoamScan_HomeTime_min 0
  35. # define RoamScan_HomeTime_max 200
  36. # define RoamScan_HomeTime_default 45
  37. # define RoamScan_AwayTime_min 0
  38. # define RoamScan_AwayTime_max 200
  39. # define RoamScan_AwayTime_default 100
  40. # define RoamRSSI_Trigger_min -100
  41. # define RoamRSSI_Trigger_max -50
  42. # define RoamRSSI_Trigger_default -75
  43. # define RoamCU_Trigger_min 60
  44. # define RoamCU_Trigger_max 90
  45. # define RoamCU_Trigger_default 70
  46. # define RoamCU_24GRSSIRange_min -70
  47. # define RoamCU_24GRSSIRange_max -50
  48. # define RoamCU_24GRSSIRange_default -60
  49. # define RoamCU_5GRSSIRange_min -70
  50. # define RoamCU_5GRSSIRange_max -50
  51. # define RoamCU_5GRSSIRange_default -70
  52. # define RoamIdle_TriggerBand_min 0
  53. # define RoamIdle_TriggerBand_max 4
  54. # define RoamIdle_TriggerBand_default 3
  55. # define RoamIdle_MinRSSI_min -70
  56. # define RoamIdle_MinRSSI_max -50
  57. # define RoamIdle_MinRSSI_default -60
  58. # define RoamIdle_RSSIVariation_min 0
  59. # define RoamIdle_RSSIVariation_max 10
  60. # define RoamIdle_RSSIVariation_default 5
  61. # define RoamIdle_InactivePacketCount_min 0
  62. # define RoamIdle_InactivePacketCount_max 20
  63. # define RoamIdle_InactivePacketCount_default 5
  64. # define CONBEACONLOSS_TIMEOUTONWAKEUP_MIN 0
  65. # define CONBEACONLOSS_TIMEOUTONWAKEUP_MAX 20
  66. # define CONBEACONLOSS_TIMEOUTONWAKEUP_DEFAULT 6
  67. # define CONBEACONLOSS_TIMEOUTONSLEEP_MIN 0
  68. # define CONBEACONLOSS_TIMEOUTONSLEEP_MAX 20
  69. # define CONBEACONLOSS_TIMEOUTONSLEEP_DEFAULT 10
  70. # define ROAMCU_6GRSSIRANGE_MIN -70
  71. # define ROAMCU_6GRSSIRANGE_MAX -50
  72. # define ROAMCU_6GRSSIRANGE_DEFAULT -70
  73. #else
  74. # define RoamScan_ActiveCH_DwellTime_min 3
  75. # define RoamScan_ActiveCH_DwellTime_max 300
  76. # define RoamScan_ActiveCH_DwellTime_default 40
  77. # define RoamScan_InactiveCount_min 0
  78. # define RoamScan_InactiveCount_max 0xFFFFFFFF
  79. # define RoamScan_InactiveCount_default 10
  80. # define RoamScan_StepRSSI_min 0
  81. # define RoamScan_StepRSSI_max 100
  82. # define RoamScan_StepRSSI_default 5
  83. # define RoamScan_HomeTime_min 3
  84. # define RoamScan_HomeTime_max 300
  85. # define RoamScan_HomeTime_default 50
  86. # define RoamScan_AwayTime_min 0
  87. # define RoamScan_AwayTime_max 300
  88. # define RoamScan_AwayTime_default 0
  89. # define RoamRSSI_Trigger_min -100
  90. # define RoamRSSI_Trigger_max -50
  91. # define RoamRSSI_Trigger_default -78
  92. # define RoamCU_Trigger_min 0
  93. # define RoamCU_Trigger_max 100
  94. # define RoamCU_Trigger_default 70
  95. # define RoamCU_24GRSSIRange_min -120
  96. # define RoamCU_24GRSSIRange_max 0
  97. # define RoamCU_24GRSSIRange_default -60
  98. # define RoamCU_5GRSSIRange_min -120
  99. # define RoamCU_5GRSSIRange_max 0
  100. # define RoamCU_5GRSSIRange_default -70
  101. # define RoamIdle_TriggerBand_min 0
  102. # define RoamIdle_TriggerBand_max 2
  103. # define RoamIdle_TriggerBand_default 0
  104. # define RoamIdle_MinRSSI_min -96
  105. # define RoamIdle_MinRSSI_max 0
  106. # define RoamIdle_MinRSSI_default -65
  107. # define RoamIdle_RSSIVariation_min 0
  108. # define RoamIdle_RSSIVariation_max 50
  109. # define RoamIdle_RSSIVariation_default 3
  110. # define RoamIdle_InactivePacketCount_min 0
  111. # define RoamIdle_InactivePacketCount_max 0xFFFFFFFF
  112. # define RoamIdle_InactivePacketCount_default 10
  113. # define CONBEACONLOSS_TIMEOUTONWAKEUP_MIN 0
  114. # define CONBEACONLOSS_TIMEOUTONWAKEUP_MAX 20
  115. # define CONBEACONLOSS_TIMEOUTONWAKEUP_DEFAULT 3
  116. # define CONBEACONLOSS_TIMEOUTONSLEEP_MIN 0
  117. # define CONBEACONLOSS_TIMEOUTONSLEEP_MAX 20
  118. # define CONBEACONLOSS_TIMEOUTONSLEEP_DEFAULT 5
  119. # define ROAMCU_6GRSSIRANGE_MIN -120
  120. # define ROAMCU_6GRSSIRANGE_MAX 0
  121. # define ROAMCU_6GRSSIRANGE_DEFAULT -70
  122. #endif
  123. /*
  124. * <ini>
  125. * RoamScan_PassiveCH_DwellTime - Set max channel time for roam passive scan
  126. * @Min: 0
  127. * @Max: 200
  128. * @Default: 130
  129. *
  130. * This ini is used to set maximum channel time in msecs spent in
  131. * passive scan for roaming
  132. *
  133. * Related: None
  134. *
  135. * Usage: External
  136. *
  137. * </ini>
  138. */
  139. #define CFG_ROAM_PASSIVE_MAX_CHANNEL_TIME CFG_INI_UINT(\
  140. "RoamScan_PassiveCH_DwellTime",\
  141. 0, \
  142. 200, \
  143. 130, \
  144. CFG_VALUE_OR_DEFAULT, "roam scan passive dwell time")
  145. /*
  146. * <ini>
  147. * mawc_roam_enabled - Enable/Disable MAWC during roaming
  148. * @Min: 0 - Disabled
  149. * @Max: 1 - Enabled
  150. * @Default: 0
  151. *
  152. * This ini is used to control MAWC during roaming.
  153. *
  154. * Related: MAWCEnabled.
  155. *
  156. * Supported Feature: MAWC Roaming
  157. *
  158. * Usage: Internal/External
  159. *
  160. * </ini>
  161. */
  162. #define CFG_LFR_MAWC_ROAM_ENABLED CFG_INI_BOOL( \
  163. "mawc_roam_enabled", \
  164. 0, \
  165. "Enable/Disable MAWC during roaming")
  166. /*
  167. * <ini>
  168. * mawc_roam_traffic_threshold - Configure traffic threshold
  169. * @Min: 0
  170. * @Max: 0xFFFFFFFF
  171. * @Default: 300
  172. *
  173. * This ini is used to configure the data traffic load in kbps to
  174. * register CMC.
  175. *
  176. * Related: mawc_roam_enabled.
  177. *
  178. * Supported Feature: MAWC Roaming
  179. *
  180. * Usage: Internal/External
  181. *
  182. * </ini>
  183. */
  184. #define CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD CFG_INI_UINT( \
  185. "mawc_roam_traffic_threshold", \
  186. 0, \
  187. 0xFFFFFFFF, \
  188. 300, \
  189. CFG_VALUE_OR_DEFAULT, \
  190. "Configure traffic threshold")
  191. /*
  192. * <ini>
  193. * mawc_roam_ap_rssi_threshold - Best AP RSSI threshold
  194. * @Min: -120
  195. * @Max: 0
  196. * @Default: -66
  197. *
  198. * This ini is used to specify the RSSI threshold to scan for the AP.
  199. *
  200. * Related: mawc_roam_enabled.
  201. *
  202. * Supported Feature: MAWC Roaming
  203. *
  204. * Usage: Internal/External
  205. *
  206. * </ini>
  207. */
  208. #define CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD CFG_INI_INT( \
  209. "mawc_roam_ap_rssi_threshold", \
  210. -120, \
  211. 0, \
  212. -66, \
  213. CFG_VALUE_OR_DEFAULT, \
  214. "Best AP RSSI threshold")
  215. /*
  216. * <ini>
  217. * mawc_roam_rssi_high_adjust - Adjust MAWC roam high RSSI
  218. * @Min: 3
  219. * @Max: 5
  220. * @Default: 5
  221. *
  222. * This ini is used for high RSSI threshold adjustment in stationary state
  223. * to suppress the scan.
  224. *
  225. * Related: mawc_roam_enabled.
  226. *
  227. * Supported Feature: MAWC Roaming
  228. *
  229. * Usage: Internal/External
  230. *
  231. * </ini>
  232. */
  233. #define CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST CFG_INI_UINT( \
  234. "mawc_roam_rssi_high_adjust", \
  235. 3, \
  236. 5, \
  237. 5, \
  238. CFG_VALUE_OR_DEFAULT, \
  239. "Adjust MAWC roam high RSSI")
  240. /*
  241. * <ini>
  242. * mawc_roam_rssi_low_adjust - Adjust MAWC roam low RSSI
  243. * @Min: 3
  244. * @Max: 5
  245. * @Default: 5
  246. *
  247. * This ini is used for low RSSI threshold adjustment in stationary state
  248. * to suppress the scan.
  249. *
  250. * Related: mawc_roam_enabled.
  251. *
  252. * Supported Feature: MAWC Roaming
  253. *
  254. * Usage: Internal/External
  255. *
  256. * </ini>
  257. */
  258. #define CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST CFG_INI_UINT( \
  259. "mawc_roam_rssi_low_adjust", \
  260. 3, \
  261. 5, \
  262. 5, \
  263. CFG_VALUE_OR_DEFAULT, \
  264. "Adjust MAWC roam low RSSI")
  265. /*
  266. * <ini>
  267. * rssi_abs_thresh - The min RSSI of the candidate AP to consider roam
  268. * @Min: -96
  269. * @Max: 0
  270. * @Default: 0
  271. *
  272. * The RSSI value of the candidate AP should be higher than rssi_abs_thresh
  273. * to roam to the AP. 0 means no absolute minimum RSSI is required.
  274. *
  275. * Related: None
  276. *
  277. * Supported Feature: Roaming
  278. *
  279. * Usage: External
  280. *
  281. * </ini>
  282. */
  283. #define CFG_LFR_ROAM_RSSI_ABS_THRESHOLD CFG_INI_INT( \
  284. "rssi_abs_thresh", \
  285. -96, \
  286. 0, \
  287. 0, \
  288. CFG_VALUE_OR_DEFAULT, \
  289. "The min RSSI of the candidate AP to consider roam")
  290. /*
  291. * <ini>
  292. * lookup_threshold_5g_offset - Lookup threshold offset for 5G band
  293. * @Min: -120
  294. * @Max: 120
  295. * @Default: 0
  296. *
  297. * This ini is used to set the 5G band lookup threshold for roaming.
  298. * It depends on another INI which is gNeighborLookupThreshold.
  299. * gNeighborLookupThreshold is a legacy INI item which will be used to
  300. * set the RSSI lookup threshold for both 2G and 5G bands. If the
  301. * user wants to setup a different threshold for a 5G band, then user
  302. * can use this offset value which will be summed up to the value of
  303. * gNeighborLookupThreshold and used for 5G
  304. * e.g: gNeighborLookupThreshold = -76dBm
  305. * lookup_threshold_5g_offset = 6dBm
  306. * Then the 5G band will be configured to -76+6 = -70dBm
  307. * A default value of Zero to lookup_threshold_5g_offset will keep the
  308. * thresholds same for both 2G and 5G bands
  309. *
  310. * Related: gNeighborLookupThreshold
  311. *
  312. * Supported Feature: Roaming
  313. *
  314. * Usage: Internal/External
  315. *
  316. * </ini>
  317. */
  318. #define CFG_LFR_5G_RSSI_THRESHOLD_OFFSET CFG_INI_INT( \
  319. "lookup_threshold_5g_offset", \
  320. -120, \
  321. 120, \
  322. 0, \
  323. CFG_VALUE_OR_DEFAULT, \
  324. "Lookup threshold offset for 5G band")
  325. /*
  326. * <ini>
  327. * gEnableFastRoamInConcurrency - Enable LFR roaming on STA during concurrency
  328. * @Min: 0
  329. * @Max: 1
  330. * @Default: 1
  331. *
  332. * This INI is used to enable Legacy fast roaming(LFR) on STA link during
  333. * concurrent sessions.
  334. *
  335. * Related: None
  336. *
  337. * Supported Feature: Roaming
  338. *
  339. * Usage: External
  340. *
  341. * </ini>
  342. */
  343. #define CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY CFG_INI_BOOL( \
  344. "gEnableFastRoamInConcurrency", \
  345. 1, \
  346. "Enable LFR roaming on STA during concurrency")
  347. /*
  348. * <ini>
  349. * gEnableEarlyStopScan - Set early stop scan
  350. * @Min: 0
  351. * @Max: 1
  352. * @Default: 0
  353. *
  354. * This ini is used to set early stop scan. Early stop
  355. * scan is a feature for roaming to stop the scans at
  356. * an early stage as soon as we find a better AP to roam.
  357. * This would make the roaming happen quickly.
  358. *
  359. * Related: None
  360. *
  361. * Supported Feature: LFR Scan
  362. *
  363. * Usage: External
  364. *
  365. * </ini>
  366. */
  367. #define CFG_LFR_EARLY_STOP_SCAN_ENABLE CFG_INI_BOOL( \
  368. "gEnableEarlyStopScan", \
  369. 0, \
  370. "Set early stop scan")
  371. /*
  372. * <ini>
  373. * gEarlyStopScanMinThreshold - Set early stop scan min
  374. * threshold
  375. * @Min: -80
  376. * @Max: -70
  377. * @Default: -73
  378. *
  379. * This ini is used to set the early stop scan minimum
  380. * threshold. Early stop scan minimum threshold is the
  381. * minimum threshold to be considered for stopping the
  382. * scan. The algorithm starts with a scan on the greedy
  383. * channel list with the maximum threshold and steps down
  384. * the threshold by 20% for each further channel. It can
  385. * step down on each channel but cannot go lower than the
  386. * minimum threshold.
  387. *
  388. * Related: None
  389. *
  390. * Supported Feature: Scan
  391. *
  392. * Usage: External
  393. *
  394. * </ini>
  395. */
  396. #define CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD CFG_INI_INT( \
  397. "gEarlyStopScanMinThreshold", \
  398. -80, \
  399. -70, \
  400. -73, \
  401. CFG_VALUE_OR_DEFAULT, \
  402. "Set early stop scan min")
  403. /*
  404. * <ini>
  405. * gEarlyStopScanMaxThreshold - Set early stop scan max
  406. * threshold
  407. * @Min: -60
  408. * @Max: -40
  409. * @Default: -43
  410. *
  411. * This ini is used to set the the early stop scan maximum
  412. * threshold at which the candidate AP should be to be
  413. * qualified as a potential roam candidate and good enough
  414. * to stop the roaming scan.
  415. *
  416. * Related: None
  417. *
  418. * Supported Feature: Scan
  419. *
  420. * Usage: External
  421. *
  422. * </ini>
  423. */
  424. #define CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD CFG_INI_INT( \
  425. "gEarlyStopScanMaxThreshold", \
  426. -60, \
  427. -40, \
  428. -43, \
  429. CFG_VALUE_OR_DEFAULT, \
  430. "Set early stop scan max")
  431. /*
  432. * <ini>
  433. * gtraffic_threshold - Dense traffic threshold
  434. * @Min: 0
  435. * @Max: 0xffffffff
  436. * @Default: 400
  437. *
  438. * Dense traffic threshold
  439. * traffic threshold required for dense roam scan
  440. * Measured in kbps
  441. *
  442. * Related: None
  443. *
  444. * Supported Feature: Roaming
  445. *
  446. * Usage: External
  447. *
  448. * </ini>
  449. */
  450. #define CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD CFG_INI_UINT( \
  451. "gtraffic_threshold", \
  452. 0, \
  453. 0xffffffff, \
  454. 400, \
  455. CFG_VALUE_OR_DEFAULT, \
  456. "Dense traffic threshold")
  457. /*
  458. * <ini>
  459. * groam_dense_rssi_thresh_offset - Sets dense roam RSSI threshold diff
  460. * @Min: 0
  461. * @Max: 20
  462. * @Default: 10
  463. *
  464. * This INI is used to set offset value from normal RSSI threshold to dense
  465. * RSSI threshold FW will optimize roaming based on new RSSI threshold once
  466. * it detects dense environment.
  467. *
  468. * Related: None
  469. *
  470. * Supported Feature: Roaming
  471. *
  472. * Usage: External
  473. *
  474. * </ini>
  475. */
  476. #define CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET CFG_INI_UINT( \
  477. "groam_dense_rssi_thresh_offset", \
  478. 0, \
  479. 20, \
  480. 10, \
  481. CFG_VALUE_OR_DEFAULT, \
  482. "Dense traffic threshold")
  483. /*
  484. * <ini>
  485. * groam_dense_min_aps - Sets minimum number of AP for dense roam
  486. * @Min: 1
  487. * @Max: 5
  488. * @Default: 3
  489. *
  490. * Minimum number of APs required for dense roam. FW will consider
  491. * environment as dense once it detects #APs operating is more than
  492. * groam_dense_min_aps.
  493. *
  494. * Related: None
  495. *
  496. * Supported Feature: Roaming
  497. *
  498. * Usage: External
  499. *
  500. * </ini>
  501. */
  502. #define CFG_LFR_ROAM_DENSE_MIN_APS CFG_INI_UINT( \
  503. "groam_dense_min_aps", \
  504. 1, \
  505. 5, \
  506. 3, \
  507. CFG_VALUE_OR_DEFAULT, \
  508. "Sets minimum number of AP for dense roam")
  509. /*
  510. * <ini>
  511. * roam_bg_scan_bad_rssi_thresh - RSSI threshold for background roam
  512. * @Min: -96
  513. * @Max: 0
  514. * @Default: -76
  515. *
  516. * If the DUT is connected to an AP with weak signal, then the bad RSSI
  517. * threshold will be used as an opportunity to use the scan results
  518. * from other scan clients and try to roam if there is a better AP
  519. * available in the environment.
  520. *
  521. * Related: None
  522. *
  523. * Supported Feature: Roaming
  524. *
  525. * Usage: External
  526. *
  527. * </ini>
  528. */
  529. #define CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD CFG_INI_INT( \
  530. "roam_bg_scan_bad_rssi_thresh", \
  531. -96, \
  532. 0, \
  533. -76, \
  534. CFG_VALUE_OR_DEFAULT, \
  535. "RSSI threshold for background roam")
  536. /*
  537. * <ini>
  538. * roam_bg_scan_client_bitmap - Bitmap used to identify the scan clients
  539. * @Min: 0
  540. * @Max: 0x7FF
  541. * @Default: 0x424
  542. *
  543. * This bitmap is used to define the client scans that need to be used
  544. * by the roaming module to perform a background roaming.
  545. * Currently supported bit positions are as follows:
  546. * Bit 0 is reserved in the firmware.
  547. * WMI_SCAN_CLIENT_NLO - 1
  548. * WMI_SCAN_CLIENT_EXTSCAN - 2
  549. * WMI_SCAN_CLIENT_ROAM - 3
  550. * WMI_SCAN_CLIENT_P2P - 4
  551. * WMI_SCAN_CLIENT_LPI - 5
  552. * WMI_SCAN_CLIENT_NAN - 6
  553. * WMI_SCAN_CLIENT_ANQP - 7
  554. * WMI_SCAN_CLIENT_OBSS - 8
  555. * WMI_SCAN_CLIENT_PLM - 9
  556. * WMI_SCAN_CLIENT_HOST - 10
  557. *
  558. * Related: None
  559. *
  560. * Supported Feature: Roaming
  561. *
  562. * Usage: External
  563. *
  564. * </ini>
  565. */
  566. #define CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP CFG_INI_UINT( \
  567. "roam_bg_scan_client_bitmap", \
  568. 0, \
  569. 0x7FF, \
  570. 0x424, \
  571. CFG_VALUE_OR_DEFAULT, \
  572. "Bitmap used to identify the scan clients")
  573. /*
  574. * <ini>
  575. * roam_bad_rssi_thresh_offset_2g - RSSI threshold offset for 2G to 5G roam
  576. * @Min: 0
  577. * @Max: 86
  578. * @Default: 40
  579. *
  580. * If the DUT is connected to an AP with weak signal in 2G band, then the
  581. * bad RSSI offset for 2g would be used as offset from the bad RSSI
  582. * threshold configured and then use the resulting rssi for an opportunity
  583. * to use the scan results from other scan clients and try to roam to
  584. * 5G Band ONLY if there is a better AP available in the environment.
  585. *
  586. * For example if the roam_bg_scan_bad_rssi_thresh is -76 and
  587. * roam_bad_rssi_thresh_offset_2g is 40 then the difference of -36 would be
  588. * used as a trigger to roam to a 5G AP if DUT initially connected to a 2G AP
  589. *
  590. * Related: roam_bg_scan_bad_rssi_thresh
  591. *
  592. * Supported Feature: Roaming
  593. *
  594. * Usage: External
  595. *
  596. * </ini>
  597. */
  598. #define CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G CFG_INI_UINT( \
  599. "roam_bad_rssi_thresh_offset_2g", \
  600. 0, \
  601. 86, \
  602. 40, \
  603. CFG_VALUE_OR_DEFAULT, \
  604. "RSSI threshold offset for 2G to 5G roam")
  605. /*
  606. * <ini>
  607. * roam_data_rssi_threshold_triggers - triggers of data rssi threshold for roam
  608. * @Min: 0
  609. * @Max: 0xffff
  610. * @Default: 0x3
  611. *
  612. * If the DUT is connected to an AP with weak signal, during latest
  613. * rx_data_inactivity_time, if there is no activity or avg of data_rssi is
  614. * better than roam_data_rssi_threshold(-70dbM), then suppress roaming
  615. * triggered by roam_data_rssi_threshold_triggers: low RSSI or bg scan.
  616. * Triggers bitmap definition:
  617. * ROAM_DATA_RSSI_FLAG_LOW_RSSI 1<<0
  618. * ROAM_DATA_RSSI_FLAG_BACKGROUND 1<<1
  619. *
  620. * Related: None
  621. *
  622. * Supported Feature: Roaming
  623. *
  624. * Usage: External
  625. *
  626. * </ini>
  627. */
  628. #define CFG_ROAM_DATA_RSSI_THRESHOLD_TRIGGERS CFG_INI_UINT( \
  629. "roam_data_rssi_threshold_triggers", \
  630. 0, \
  631. 0xffff, \
  632. 0x3, \
  633. CFG_VALUE_OR_DEFAULT, \
  634. "Triggers of DATA RSSI threshold for roam")
  635. /*
  636. * <ini>
  637. * roam_data_rssi_threshold - Data RSSI threshold for background roam
  638. * @Min: -96
  639. * @Max: 0
  640. * @Default: -70
  641. *
  642. * If the DUT is connected to an AP with weak signal, during latest
  643. * rx_data_inactivity_time, if there is no activity or avg of data_rssi is
  644. * better than roam_data_rssi_threshold(-70dbM), then suppress roaming
  645. * triggered by roam_data_rssi_threshold_triggers: low RSSI or bg scan.
  646. *
  647. * Related: None
  648. *
  649. * Supported Feature: Roaming
  650. *
  651. * Usage: External
  652. *
  653. * </ini>
  654. */
  655. #define CFG_ROAM_DATA_RSSI_THRESHOLD CFG_INI_INT( \
  656. "roam_data_rssi_threshold", \
  657. -96, \
  658. 0, \
  659. -70, \
  660. CFG_VALUE_OR_DEFAULT, \
  661. "DATA RSSI threshold for roam")
  662. /*
  663. * <ini>
  664. * rx_data_inactivity_time - Duration to check data rssi
  665. * @Min: 0
  666. * @Max: 100000 ms
  667. * @Default: 2000
  668. *
  669. * If the DUT is connected to an AP with weak signal, during latest
  670. * rx_data_inactivity_time, if there is no activity or avg of data_rssi is
  671. * better than roam_data_rssi_threshold(-70dbM), then suppress roaming
  672. * triggered by roam_data_rssi_threshold_triggers: low RSSI or bg scan.
  673. *
  674. * Related: None
  675. *
  676. * Supported Feature: Roaming
  677. *
  678. * Usage: External
  679. *
  680. * </ini>
  681. */
  682. #define CFG_RX_DATA_INACTIVITY_TIME CFG_INI_UINT( \
  683. "rx_data_inactivity_time", \
  684. 0, \
  685. 100000, \
  686. 2000, \
  687. CFG_VALUE_OR_DEFAULT, \
  688. "Rx inactivity time to check data rssi")
  689. /*
  690. * <ini>
  691. * roamscan_adaptive_dwell_mode - Sets dwell time adaptive mode
  692. * @Min: 0
  693. * @Max: 4
  694. * @Default: 4
  695. *
  696. * This parameter will set the algo used in dwell time optimization during
  697. * roam scan. see enum scan_dwelltime_adaptive_mode.
  698. * Acceptable values for this:
  699. * 0: Default (Use firmware default mode)
  700. * 1: Conservative optimization
  701. * 2: Moderate optimization
  702. * 3: Aggressive optimization
  703. * 4: Static
  704. *
  705. * Related: None
  706. *
  707. * Supported Feature: Roaming
  708. *
  709. * Usage: External
  710. *
  711. * </ini>
  712. */
  713. #define CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE CFG_INI_UINT( \
  714. "roamscan_adaptive_dwell_mode", \
  715. 0, \
  716. 4, \
  717. 4, \
  718. CFG_VALUE_OR_DEFAULT, \
  719. "Sets dwell time adaptive mode")
  720. /*
  721. * <ini>
  722. * gper_roam_enabled - To enabled/disable PER based roaming in FW
  723. * @Min: 0
  724. * @Max: 3
  725. * @Default: 3
  726. *
  727. * This ini is used to enable/disable Packet error based roaming, enabling this
  728. * will cause DUT to monitor Tx and Rx traffic and roam to a better candidate
  729. * if current is not good enough.
  730. *
  731. * Values supported:
  732. * 0: disabled
  733. * 1: enabled for Rx traffic
  734. * 2: enabled for Tx traffic
  735. * 3: enabled for Tx and Rx traffic
  736. *
  737. * Related: gper_roam_high_rate_th, gper_roam_low_rate_th,
  738. * gper_roam_th_percent, gper_roam_rest_time
  739. *
  740. * Supported Feature: LFR-3.0
  741. *
  742. * Usage: Internal
  743. *
  744. * </ini>
  745. */
  746. #define CFG_LFR_PER_ROAM_ENABLE CFG_INI_UINT( \
  747. "gper_roam_enabled", \
  748. 0, \
  749. 3, \
  750. 3, \
  751. CFG_VALUE_OR_DEFAULT, \
  752. "To enabled/disable PER based roaming in FW")
  753. /*
  754. * <ini>
  755. * gper_roam_high_rate_th - Rate at which PER based roam will stop
  756. * @Min: 1 Mbps
  757. * @Max: 0xffffffff
  758. * @Default: 40 Mbps
  759. *
  760. * This ini is used to define the data rate in mbps*10 at which FW will stop
  761. * monitoring the traffic for PER based roam.
  762. *
  763. * Related: gper_roam_enabled, gper_roam_low_rate_th,
  764. * gper_roam_th_percent, gper_roam_rest_time
  765. *
  766. * Supported Feature: LFR-3.0
  767. *
  768. * Usage: Internal
  769. *
  770. * </ini>
  771. */
  772. #define CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH CFG_INI_UINT( \
  773. "gper_roam_high_rate_th", \
  774. 10, \
  775. 0xffffffff, \
  776. 400, \
  777. CFG_VALUE_OR_DEFAULT, \
  778. "Rate at which PER based roam will stop")
  779. /*
  780. * <ini>
  781. * gper_roam_low_rate_th - Rate at which FW starts considering traffic for PER
  782. * based roam.
  783. *
  784. * @Min: 1 Mbps
  785. * @Max: 0xffffffff
  786. * @Default: 20 Mbps
  787. *
  788. * This ini is used to define the rate in mbps*10 at which FW starts considering
  789. * traffic for PER based roam, if gper_roam_th_percent of data is below this
  790. * rate, FW will issue a roam scan.
  791. *
  792. * Related: gper_roam_enabled, gper_roam_high_rate_th,
  793. * gper_roam_th_percent, gper_roam_rest_time
  794. *
  795. * Supported Feature: LFR-3.0
  796. *
  797. * Usage: Internal
  798. *
  799. * </ini>
  800. */
  801. #define CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH CFG_INI_UINT( \
  802. "gper_roam_low_rate_th", \
  803. 10, \
  804. 0xffffffff, \
  805. 200, \
  806. CFG_VALUE_OR_DEFAULT, \
  807. "Rate at which FW starts considering traffic for PER")
  808. /*
  809. * <ini>
  810. * gper_roam_th_percent - Percentage at which FW will issue a roam scan if
  811. * traffic is below gper_roam_low_rate_th rate.
  812. *
  813. * @Min: 10%
  814. * @Max: 100%
  815. * @Default: 60%
  816. *
  817. * This ini is used to define the percentage at which FW will issue a roam scan
  818. * if traffic is below gper_roam_low_rate_th rate.
  819. *
  820. * Related: gper_roam_enabled, gper_roam_high_rate_th,
  821. * gper_roam_high_rate_th, gper_roam_rest_time
  822. *
  823. * Supported Feature: LFR-3.0
  824. *
  825. * Usage: Internal
  826. *
  827. * </ini>
  828. */
  829. #define CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT CFG_INI_UINT( \
  830. "gper_roam_th_percent", \
  831. 10, \
  832. 100, \
  833. 60, \
  834. CFG_VALUE_OR_DEFAULT, \
  835. "Percentage at which FW will issue a roam scan")
  836. /*
  837. * <ini>
  838. * gper_roam_rest_time - Time for which FW will wait once it issues a
  839. * roam scan.
  840. *
  841. * @Min: 10 seconds
  842. * @Max: 3600 seconds
  843. * @Default: 300 seconds
  844. *
  845. * This ini is used to define the time for which FW will wait once it issues a
  846. * PER based roam scan.
  847. *
  848. * Related: gper_roam_enabled, gper_roam_high_rate_th,
  849. * gper_roam_high_rate_th, gper_roam_th_percent
  850. *
  851. * Supported Feature: LFR-3.0
  852. *
  853. * Usage: Internal
  854. *
  855. * </ini>
  856. */
  857. #define CFG_LFR_PER_ROAM_REST_TIME CFG_INI_UINT( \
  858. "gper_roam_rest_time", \
  859. 10, \
  860. 3600, \
  861. 300, \
  862. CFG_VALUE_OR_DEFAULT, \
  863. "Time for which FW will wait once it issues a roam scan")
  864. /*
  865. * <ini>
  866. * gper_roam_mon_time - Minimum time required in seconds to
  867. * be considered as valid scenario for PER based roam
  868. * @Min: 5
  869. * @Max: 25
  870. * @Default: 25
  871. *
  872. * This ini is used to define minimum time in seconds for which DUT has
  873. * collected the PER stats before it can consider the stats hysteresis to be
  874. * valid for PER based scan.
  875. * DUT collects following information during this period:
  876. * 1. % of packets below gper_roam_low_rate_th
  877. * 2. # packets above gper_roam_high_rate_th
  878. * if DUT gets (1) greater than gper_roam_th_percent and (2) is zero during
  879. * this period, it triggers PER based roam scan.
  880. *
  881. * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
  882. * gper_roam_th_percent, gper_roam_rest_time
  883. *
  884. * Supported Feature: LFR-3.0
  885. *
  886. * Usage: Internal
  887. *
  888. * </ini>
  889. */
  890. #define CFG_LFR_PER_ROAM_MONITOR_TIME CFG_INI_UINT( \
  891. "gper_roam_mon_time", \
  892. 5, \
  893. 25, \
  894. 25, \
  895. CFG_VALUE_OR_DEFAULT, \
  896. "Minimum time to be considered as valid scenario for PER based roam")
  897. /*
  898. * <ini>
  899. * gper_min_rssi_threshold_for_roam - Minimum roamable AP RSSI for
  900. * candidate selection for PER based roam
  901. * @Min: 0
  902. * @Max: 96
  903. * @Default: 83
  904. *
  905. * Minimum roamable AP RSSI for candidate selection for PER based roam
  906. *
  907. * Related: gper_roam_enabled, gper_roam_high_rate_th, gper_roam_low_rate_th,
  908. * gper_roam_th_percent, gper_roam_rest_time
  909. *
  910. * Supported Feature: LFR-3.0
  911. *
  912. * Usage: Internal
  913. *
  914. * </ini>
  915. */
  916. #define CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI CFG_INI_UINT( \
  917. "gper_min_rssi_threshold_for_roam", \
  918. 10, \
  919. 96, \
  920. 83, \
  921. CFG_VALUE_OR_DEFAULT, \
  922. "Minimum roamable AP RSSI for candidate selection for PER based roam")
  923. /*
  924. * <ini>
  925. * groam_disallow_duration - disallow duration before roaming
  926. * @Min: 0
  927. * @Max: 3600
  928. * @Default: 30
  929. *
  930. * This ini is used to configure how long LCA[Last Connected AP] AP will
  931. * be disallowed before it can be a roaming candidate again, in units of
  932. * seconds.
  933. *
  934. * Related: LFR
  935. *
  936. * Usage: Internal
  937. *
  938. * </ini>
  939. */
  940. #define CFG_LFR3_ROAM_DISALLOW_DURATION CFG_INI_UINT( \
  941. "groam_disallow_duration", \
  942. 0, \
  943. 3600, \
  944. 30, \
  945. CFG_VALUE_OR_DEFAULT, \
  946. "disallow duration before roaming")
  947. /*
  948. * <ini>
  949. * grssi_channel_penalization - RSSI penalization
  950. * @Min: 0
  951. * @Max: 15
  952. * @Default: 5
  953. *
  954. * This ini is used to configure RSSI that will be penalized if candidate(s)
  955. * are found to be in the same channel as disallowed AP's, in units of db.
  956. *
  957. * Related: LFR
  958. *
  959. * Usage: Internal
  960. *
  961. * </ini>
  962. */
  963. #define CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION CFG_INI_UINT( \
  964. "grssi_channel_penalization", \
  965. 0, \
  966. 15, \
  967. 5, \
  968. CFG_VALUE_OR_DEFAULT, \
  969. "RSSI penalization")
  970. /*
  971. * <ini>
  972. * groam_num_disallowed_aps - Max number of AP's to maintain in LCA list
  973. * @Min: 0
  974. * @Max: 8
  975. * @Default: 3
  976. *
  977. * This ini is used to set the maximum number of AP's to be maintained
  978. * in LCA [Last Connected AP] list.
  979. *
  980. * Related: LFR
  981. *
  982. * Usage: Internal
  983. *
  984. * </ini>
  985. */
  986. #define CFG_LFR3_ROAM_NUM_DISALLOWED_APS CFG_INI_UINT( \
  987. "groam_num_disallowed_aps", \
  988. 0, \
  989. 8, \
  990. 3, \
  991. CFG_VALUE_OR_DEFAULT, \
  992. "Max number of AP's to maintain in LCA list")
  993. /*
  994. * <ini>
  995. * enable_5g_band_pref - Enable preference for 5G from INI.
  996. * @Min: 0
  997. * @Max: 1
  998. * @Default: 0
  999. * This ini is used to enable 5G preference parameters.
  1000. *
  1001. * Related: 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
  1002. * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
  1003. *
  1004. * Supported Feature: 5G band preference
  1005. *
  1006. * Usage: External
  1007. *
  1008. * </ini>
  1009. */
  1010. #define CFG_LFR_ENABLE_5G_BAND_PREF CFG_INI_BOOL( \
  1011. "enable_5g_band_pref", \
  1012. 0, \
  1013. "Enable preference for 5G from INI")
  1014. /*
  1015. * <ini>
  1016. * 5g_rssi_boost_threshold - A_band_boost_threshold above which 5G is favored.
  1017. * @Min: -70
  1018. * @Max: -55
  1019. * @Default: -60
  1020. * This ini is used to set threshold for 5GHz band preference.
  1021. *
  1022. * Related: 5g_rssi_boost_factor, 5g_max_rssi_boost
  1023. * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
  1024. *
  1025. * Supported Feature: 5G band preference
  1026. *
  1027. * Usage: External
  1028. *
  1029. * </ini>
  1030. */
  1031. #define CFG_LFR_5G_RSSI_BOOST_THRESHOLD CFG_INI_INT( \
  1032. "5g_rssi_boost_threshold", \
  1033. -70, \
  1034. -55, \
  1035. -60, \
  1036. CFG_VALUE_OR_DEFAULT, \
  1037. "A_band_boost_threshold above which 5 GHz is favored")
  1038. /*
  1039. * <ini>
  1040. * 5g_rssi_boost_factor - Factor by which 5GHz RSSI is boosted.
  1041. * @Min: 0
  1042. * @Max: 2
  1043. * @Default: 1
  1044. * This ini is used to set the 5Ghz boost factor.
  1045. *
  1046. * Related: 5g_rssi_boost_threshold, 5g_max_rssi_boost
  1047. * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
  1048. *
  1049. * Supported Feature: 5G band preference
  1050. *
  1051. * Usage: External
  1052. *
  1053. * </ini>
  1054. */
  1055. #define CFG_LFR_5G_RSSI_BOOST_FACTOR CFG_INI_UINT( \
  1056. "5g_rssi_boost_factor", \
  1057. 0, \
  1058. 2, \
  1059. 1, \
  1060. CFG_VALUE_OR_DEFAULT, \
  1061. "Factor by which 5GHz RSSI is boosted")
  1062. /*
  1063. * <ini>
  1064. * 5g_max_rssi_boost - Maximum boost that can be applied to 5GHz RSSI.
  1065. * @Min: 0
  1066. * @Max: 20
  1067. * @Default: 10
  1068. * This ini is used to set maximum boost which can be given to a 5Ghz network.
  1069. *
  1070. * Related: 5g_rssi_boost_threshold, 5g_rssi_boost_factor
  1071. * 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor, 5g_max_rssi_penalize
  1072. *
  1073. * Supported Feature: 5G band preference
  1074. *
  1075. * Usage: External
  1076. *
  1077. * </ini>
  1078. */
  1079. #define CFG_LFR_5G_MAX_RSSI_BOOST CFG_INI_UINT( \
  1080. "5g_max_rssi_boost", \
  1081. 0, \
  1082. 20, \
  1083. 10, \
  1084. CFG_VALUE_OR_DEFAULT, \
  1085. "Maximum boost that can be applied to 5GHz RSSI")
  1086. /*
  1087. * <ini>
  1088. * 5g_rssi_penalize_threshold - A_band_penalize_threshold above which
  1089. * 5 GHz is not favored.
  1090. * @Min: -80
  1091. * @Max: -65
  1092. * @Default: -70
  1093. * This ini is used to set threshold for 5GHz band preference.
  1094. *
  1095. * Related: 5g_rssi_penalize_factor, 5g_max_rssi_penalize
  1096. * 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
  1097. *
  1098. * Supported Feature: 5G band preference
  1099. *
  1100. * Usage: External
  1101. *
  1102. * </ini>
  1103. */
  1104. #define CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD CFG_INI_INT( \
  1105. "5g_rssi_penalize_threshold", \
  1106. -80, \
  1107. -65, \
  1108. -70, \
  1109. CFG_VALUE_OR_DEFAULT, \
  1110. "A_band_penalize_threshold above which 5 GHz is not favored")
  1111. /*
  1112. * <ini>
  1113. * 5g_rssi_penalize_factor - Factor by which 5GHz RSSI is penalizeed.
  1114. * @Min: 0
  1115. * @Max: 2
  1116. * @Default: 1
  1117. * This ini is used to set the 5Ghz penalize factor.
  1118. *
  1119. * Related: 5g_rssi_penalize_threshold, 5g_max_rssi_penalize
  1120. * 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
  1121. *
  1122. * Supported Feature: 5G band preference
  1123. *
  1124. * Usage: External
  1125. *
  1126. * </ini>
  1127. */
  1128. #define CFG_LFR_5G_RSSI_PENALIZE_FACTOR CFG_INI_UINT( \
  1129. "5g_rssi_penalize_factor", \
  1130. 0, \
  1131. 2, \
  1132. 1, \
  1133. CFG_VALUE_OR_DEFAULT, \
  1134. "Factor by which 5GHz RSSI is penalizeed")
  1135. /*
  1136. * <ini>
  1137. * 5g_max_rssi_penalize - Maximum penalty that can be applied to 5GHz RSSI.
  1138. * @Min: 0
  1139. * @Max: 20
  1140. * @Default: 10
  1141. * This ini is used to set maximum penalty which can be given to a 5Ghz network.
  1142. *
  1143. * Related: 5g_rssi_penalize_threshold, 5g_rssi_penalize_factor
  1144. * 5g_rssi_boost_threshold, 5g_rssi_boost_factor, 5g_max_rssi_boost
  1145. *
  1146. * Supported Feature: 5G band preference
  1147. *
  1148. * Usage: External
  1149. *
  1150. * </ini>
  1151. */
  1152. #define CFG_LFR_5G_MAX_RSSI_PENALIZE CFG_INI_UINT( \
  1153. "5g_max_rssi_penalize", \
  1154. 0, \
  1155. 20, \
  1156. 10, \
  1157. CFG_VALUE_OR_DEFAULT, \
  1158. "Maximum penalty that can be applied to 5GHz RSSI")
  1159. /*
  1160. * <ini>
  1161. * max_num_pre_auth - Configure max number of pre-auth
  1162. * @Min: 0
  1163. * @Max: 256
  1164. * @Default: 64
  1165. *
  1166. * This ini is used to configure the data max number of pre-auth
  1167. *
  1168. * Usage: Internal
  1169. *
  1170. * </ini>
  1171. */
  1172. #define CFG_LFR_MAX_NUM_PRE_AUTH CFG_UINT( \
  1173. "max_num_pre_auth", \
  1174. 0, \
  1175. 256, \
  1176. 64, \
  1177. CFG_VALUE_OR_DEFAULT, \
  1178. "")
  1179. /*
  1180. * <ini>
  1181. * roam_preauth_retry_count
  1182. *
  1183. * @Min: 1
  1184. * @Max: 10
  1185. * @Default: 5
  1186. *
  1187. * The maximum number of software retries for preauth or
  1188. * reassoc made before picking up the next candidate for
  1189. * connection during roaming.
  1190. *
  1191. * Related: N/A
  1192. *
  1193. * Supported Features: Roaming
  1194. *
  1195. * Usage: Internal/External
  1196. *
  1197. * </ini>
  1198. */
  1199. #define CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT CFG_INI_INT( \
  1200. "roam_preauth_retry_count", \
  1201. 1, \
  1202. 10, \
  1203. 5, \
  1204. CFG_VALUE_OR_DEFAULT, \
  1205. "The maximum number of software retries for preauth")
  1206. /*
  1207. * <ini>
  1208. * roam_preauth_no_ack_timeout
  1209. *
  1210. * @Min: 5
  1211. * @Max: 50
  1212. * @Default: 5
  1213. *
  1214. * Time to wait (in ms) after sending an preauth or reassoc
  1215. * request which didn't have an ack, before considering
  1216. * it as a failure and making another software retry.
  1217. *
  1218. * Related: N/A
  1219. *
  1220. * Supported Features: Roaming
  1221. *
  1222. * Usage: Internal/External
  1223. *
  1224. * </ini>
  1225. */
  1226. #define CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT CFG_INI_INT( \
  1227. "roam_preauth_no_ack_timeout", \
  1228. 5, \
  1229. 50, \
  1230. 5, \
  1231. CFG_VALUE_OR_DEFAULT, \
  1232. "Time to wait after sending an preauth or reassoc")
  1233. /*
  1234. * <ini>
  1235. * FastRoamEnabled - Enable fast roaming
  1236. * @Min: 0
  1237. * @Max: 1
  1238. * @Default: 1
  1239. *
  1240. * This ini is used to inform FW to enable fast roaming
  1241. *
  1242. * Related: None
  1243. *
  1244. * Supported Feature: Roaming
  1245. *
  1246. * Usage: External
  1247. *
  1248. * </ini>
  1249. */
  1250. #define CFG_LFR_FEATURE_ENABLED CFG_INI_BOOL( \
  1251. "FastRoamEnabled", \
  1252. 1, \
  1253. "Enable fast roaming")
  1254. /*
  1255. * <ini>
  1256. * MAWCEnabled - Enable/Disable Motion Aided Wireless Connectivity Global
  1257. * @Min: 0 - Disabled
  1258. * @Max: 1 - Enabled
  1259. * @Default: 0
  1260. *
  1261. * This ini is used to controls the MAWC feature globally.
  1262. * MAWC is Motion Aided Wireless Connectivity.
  1263. *
  1264. * Related: mawc_roam_enabled.
  1265. *
  1266. * Supported Feature: Roaming and PNO/NLO
  1267. *
  1268. * Usage: Internal/External
  1269. *
  1270. * </ini>
  1271. */
  1272. #define CFG_LFR_MAWC_FEATURE_ENABLED CFG_INI_BOOL( \
  1273. "MAWCEnabled", \
  1274. 0, \
  1275. "Enable MAWC")
  1276. /*
  1277. * <ini>
  1278. * FastTransitionEnabled - Enable fast transition in case of 11r and ese.
  1279. * @Min: 0
  1280. * @Max: 1
  1281. * @Default: 1
  1282. *
  1283. * This ini is used to turn ON/OFF the whole neighbor roam, pre-auth, reassoc.
  1284. * With this turned OFF 11r will completely not work. For 11r this flag has to
  1285. * be ON. For ESE fastroam will not work.
  1286. *
  1287. * Related: None
  1288. *
  1289. * Supported Feature: Roaming
  1290. *
  1291. * Usage: External
  1292. *
  1293. * </ini>
  1294. */
  1295. #define CFG_LFR_FAST_TRANSITION_ENABLED CFG_INI_BOOL( \
  1296. "FastTransitionEnabled", \
  1297. 1, \
  1298. "Enable fast transition")
  1299. /*
  1300. * <ini>
  1301. * RoamRssiDiff - Enable roam based on rssi
  1302. * @Min: 0
  1303. * @Max: 100
  1304. * @Default: 5
  1305. *
  1306. * This INI is used to decide whether to Roam or not based on RSSI. AP1 is the
  1307. * currently associated AP and AP2 is chosen for roaming. The Roaming will
  1308. * happen only if AP2 has better Signal Quality and it has a RSSI better than
  1309. * AP2. RoamRssiDiff is the number of units (typically measured in dB) AP2
  1310. * is better than AP1.
  1311. *
  1312. * Related: None
  1313. *
  1314. * Supported Feature: Roaming
  1315. *
  1316. * Usage: External
  1317. *
  1318. * </ini>
  1319. */
  1320. #define CFG_LFR_ROAM_RSSI_DIFF CFG_INI_UINT( \
  1321. "RoamRssiDiff", \
  1322. 0, \
  1323. 100, \
  1324. 5, \
  1325. CFG_VALUE_OR_DEFAULT, \
  1326. "Enable roam based on rssi")
  1327. /*
  1328. * <ini>
  1329. * RoamRssiDiff6GHz - Enable roam to 6 GHz AP based on rssi
  1330. * @Min: 0
  1331. * @Max: 100
  1332. * @Default: 5
  1333. *
  1334. * This INI is used to decide whether to roam to 6 GHz AP or not based on RSSI.
  1335. * AP1 is the currently associated AP(2.4 GHz / 5 GHz) and AP2(6 GHz) is chosen
  1336. * for roaming. The Roaming will happen only if AP2 has better Signal Quality
  1337. * and it has a RSSI better than AP1. RoamRssiDiff6GHz is the number of units
  1338. * (typically measured in dB) AP2 is better than AP1.
  1339. *
  1340. * Related: None
  1341. *
  1342. * Supported Feature: Roaming
  1343. *
  1344. * Usage: External
  1345. *
  1346. * </ini>
  1347. */
  1348. #define CFG_LFR_ROAM_RSSI_DIFF_6GHZ CFG_INI_UINT( \
  1349. "RoamRssiDiff6GHz", \
  1350. 0, \
  1351. 100, \
  1352. 5, \
  1353. CFG_VALUE_OR_DEFAULT, \
  1354. "Enable 6 GHz roam based on rssi")
  1355. /*
  1356. * <ini>
  1357. * bg_rssi_threshold - To set RSSI Threshold for BG scan roaming
  1358. * @Min: 0
  1359. * @Max: 100
  1360. * @Default: 5
  1361. *
  1362. * This INI is used to set the value of rssi threshold to trigger roaming
  1363. * after background scan. To trigger roam after bg scan, value of rssi of
  1364. * candidate AP should be higher by this threshold than the rssi of the
  1365. * currently associated AP.
  1366. *
  1367. * Related: RoamRssiDiff
  1368. *
  1369. * Supported Feature: Roaming
  1370. *
  1371. * Usage: External
  1372. *
  1373. * </ini>
  1374. */
  1375. #define CFG_LFR_ROAM_BG_RSSI_TH CFG_INI_UINT( \
  1376. "bg_rssi_threshold", \
  1377. 0, \
  1378. 100, \
  1379. 5, \
  1380. CFG_VALUE_OR_DEFAULT, \
  1381. "Enable roam based on rssi after BG scan")
  1382. /*
  1383. * <ini>
  1384. * gWESModeEnabled - Enable WES mode
  1385. * @Min: 0
  1386. * @Max: 1
  1387. * @Default: 0
  1388. *
  1389. * This ini is used to enable/disable Wireless Extended Security mode.
  1390. *
  1391. * Related: None
  1392. *
  1393. * Supported Feature: Roaming
  1394. *
  1395. * Usage: External
  1396. *
  1397. * </ini>
  1398. */
  1399. #define CFG_LFR_ENABLE_WES_MODE CFG_INI_BOOL( \
  1400. "gWESModeEnabled", \
  1401. 0, \
  1402. "Enable WES mode")
  1403. /*
  1404. * <ini>
  1405. * gRoamScanOffloadEnabled - Enable Roam Scan Offload
  1406. * @Min: 0
  1407. * @Max: 1
  1408. * @Default: 1
  1409. *
  1410. * This INI is used to enable Roam Scan Offload in firmware
  1411. *
  1412. * Related: None
  1413. *
  1414. * Supported Feature: Roaming
  1415. *
  1416. * Usage: External
  1417. *
  1418. * </ini>
  1419. */
  1420. #define CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED CFG_INI_BOOL( \
  1421. "gRoamScanOffloadEnabled", \
  1422. 1, \
  1423. "Enable Roam Scan Offload")
  1424. /*
  1425. * <ini>
  1426. * gNeighborScanChannelList - Set channels to be scanned
  1427. * by firmware for LFR scan
  1428. * @Default: ""
  1429. *
  1430. * This ini is used to set the channels to be scanned
  1431. * by firmware for LFR scan.
  1432. *
  1433. * Related: None
  1434. *
  1435. * Supported Feature: LFR Scan
  1436. *
  1437. * Usage: External
  1438. *
  1439. * </ini>
  1440. */
  1441. #define CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST CFG_INI_STRING( \
  1442. "gNeighborScanChanList", \
  1443. 0, \
  1444. CFG_VALID_CHANNEL_LIST_STRING_LEN, \
  1445. "", \
  1446. "Set channels to be scanned")
  1447. /*
  1448. * <ini>
  1449. * gNeighborScanTimerPeriod - Set neighbor scan timer period
  1450. * @Min: 3
  1451. * @Max: 300
  1452. * @Default: 100
  1453. *
  1454. * This ini is used to set the timer period in secs after
  1455. * which neighbor scan is triggered.
  1456. *
  1457. * Related: None
  1458. *
  1459. * Supported Feature: LFR Scan
  1460. *
  1461. * Usage: External
  1462. *
  1463. * </ini>
  1464. */
  1465. #define CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD CFG_INI_UINT( \
  1466. "gNeighborScanTimerPeriod", \
  1467. 3, \
  1468. 300, \
  1469. 100, \
  1470. CFG_VALUE_OR_DEFAULT, \
  1471. "Neighbor scan timer period")
  1472. /*
  1473. * <ini>
  1474. * gRoamRestTimeMin/RoamScan_HomeTime - Set min neighbor scan timer period
  1475. * @Min: 3
  1476. * @Max: 300
  1477. * @Default: 50
  1478. *
  1479. * This is the min rest time after which firmware will check for traffic
  1480. * and if there no traffic it will move to a new channel to scan
  1481. * else it will stay on the home channel till gNeighborScanTimerPeriod time
  1482. * and then will move to a new channel to scan.
  1483. *
  1484. * Related: None
  1485. *
  1486. * Supported Feature: LFR Scan
  1487. *
  1488. * Usage: External
  1489. *
  1490. * </ini>
  1491. */
  1492. #define CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD CFG_INI_UINT( \
  1493. "gRoamRestTimeMin RoamScan_HomeTime", \
  1494. RoamScan_HomeTime_min, \
  1495. RoamScan_HomeTime_max, \
  1496. RoamScan_HomeTime_default, \
  1497. CFG_VALUE_OR_DEFAULT, \
  1498. "Min neighbor scan timer period")
  1499. /*
  1500. * <ini>
  1501. * gNeighborLookupThreshold/RoamRSSI_Trigger - Set neighbor lookup rssi
  1502. * threshold
  1503. * @Min: 50
  1504. * @Max: 100
  1505. * @Default: 78
  1506. *
  1507. * This is used to control the RSSI threshold for neighbor lookup.
  1508. *
  1509. * Related: None
  1510. *
  1511. * Supported Feature: LFR Scan
  1512. *
  1513. * Usage: External
  1514. *
  1515. * </ini>
  1516. */
  1517. #define CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD CFG_INI_INT( \
  1518. "gNeighborLookupThreshold RoamRSSI_Trigger", \
  1519. RoamRSSI_Trigger_min, \
  1520. RoamRSSI_Trigger_max, \
  1521. RoamRSSI_Trigger_default, \
  1522. CFG_VALUE_OR_DEFAULT, \
  1523. "Neighbor lookup rssi threshold")
  1524. /*
  1525. * <ini>
  1526. * gOpportunisticThresholdDiff - Set oppurtunistic threshold diff
  1527. * @Min: 0
  1528. * @Max: 127
  1529. * @Default: 0
  1530. *
  1531. * This ini is used to set opportunistic threshold diff.
  1532. * This parameter is the RSSI diff above neighbor lookup
  1533. * threshold, when opportunistic scan should be triggered.
  1534. * MAX value is chosen so that this type of scan can be
  1535. * always enabled by user.
  1536. * MIN value will cause opportunistic scan to be triggered
  1537. * in neighbor lookup RSSI range.
  1538. *
  1539. * Related: None
  1540. *
  1541. * Supported Feature: LFR Scan
  1542. *
  1543. * Usage: External
  1544. *
  1545. * </ini>
  1546. */
  1547. #define CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF CFG_INI_UINT( \
  1548. "gOpportunisticThresholdDiff", \
  1549. 0, \
  1550. 127, \
  1551. 0, \
  1552. CFG_VALUE_OR_DEFAULT, \
  1553. "Set oppurtunistic threshold diff")
  1554. /*
  1555. * <ini>
  1556. * gRoamRescanRssiDiff/RoamScan_StepRSSI - Sets RSSI for Scan trigger in
  1557. * firmware
  1558. * @Min: 0
  1559. * @Max: 100
  1560. * @Default: 5
  1561. *
  1562. * This INI is the drop in RSSI value that will trigger a precautionary
  1563. * scan by firmware. Max value is chosen in such a way that this type
  1564. * of scan can be disabled by user.
  1565. *
  1566. * Related: None
  1567. *
  1568. * Supported Feature: Roaming
  1569. *
  1570. * Usage: External
  1571. *
  1572. * </ini>
  1573. */
  1574. #define CFG_LFR_ROAM_RESCAN_RSSI_DIFF CFG_INI_UINT( \
  1575. "gRoamRescanRssiDiff RoamScan_StepRSSI", \
  1576. RoamScan_StepRSSI_min, \
  1577. RoamScan_StepRSSI_max, \
  1578. RoamScan_StepRSSI_default, \
  1579. CFG_VALUE_OR_DEFAULT, \
  1580. "Sets RSSI for Scan trigger in firmware")
  1581. /*
  1582. * <ini>
  1583. * gNeighborScanChannelMinTime - Set neighbor scan channel min time
  1584. * @Min: 10
  1585. * @Max: 40
  1586. * @Default: 20
  1587. *
  1588. * This ini is used to set the minimum time in secs spent on each
  1589. * channel in LFR scan inside firmware.
  1590. *
  1591. * Related: None
  1592. *
  1593. * Supported Feature: LFR Scan
  1594. *
  1595. * Usage: External
  1596. *
  1597. * </ini>
  1598. */
  1599. #define CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME CFG_INI_UINT( \
  1600. "gNeighborScanChannelMinTime", \
  1601. 10, \
  1602. 40, \
  1603. 20, \
  1604. CFG_VALUE_OR_DEFAULT, \
  1605. "Neighbor scan channel min time")
  1606. /*
  1607. * <ini>
  1608. * gNeighborScanChannelMaxTime/RoamScan_ActiveCH_DwellTime - Set neighbor scan
  1609. * channel max time
  1610. * @Min: 3
  1611. * @Max: 300
  1612. * @Default: 40
  1613. *
  1614. * This ini is used to set the maximum time in secs spent on each
  1615. * channel in LFR scan inside firmware.
  1616. *
  1617. * Related: None
  1618. *
  1619. * Supported Feature: LFR Scan
  1620. *
  1621. * Usage: External
  1622. *
  1623. * </ini>
  1624. */
  1625. #define CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME CFG_INI_UINT( \
  1626. "gNeighborScanChannelMaxTime RoamScan_ActiveCH_DwellTime", \
  1627. RoamScan_ActiveCH_DwellTime_min, \
  1628. RoamScan_ActiveCH_DwellTime_max, \
  1629. RoamScan_ActiveCH_DwellTime_default, \
  1630. CFG_VALUE_OR_DEFAULT, \
  1631. "Neighbor scan channel max time")
  1632. /*
  1633. * <ini>
  1634. * gNeighborScanRefreshPeriod - Set neighbor scan refresh period
  1635. * @Min: 1000
  1636. * @Max: 60000
  1637. * @Default: 20000
  1638. *
  1639. * This ini is used by firmware to set scan refresh period
  1640. * in msecs for lfr scan.
  1641. *
  1642. * Related: None
  1643. *
  1644. * Supported Feature: LFR Scan
  1645. *
  1646. * Usage: External
  1647. *
  1648. * </ini>
  1649. */
  1650. #define CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD CFG_INI_UINT( \
  1651. "gNeighborScanRefreshPeriod", \
  1652. 1000, \
  1653. 60000, \
  1654. 20000, \
  1655. CFG_VALUE_OR_DEFAULT, \
  1656. "Neighbor scan refresh period")
  1657. /*
  1658. * <ini>
  1659. * gFullRoamScanPeriod - Set full roam scan refresh period
  1660. * @Min: 0
  1661. * @Max: 600
  1662. * @Default: 0
  1663. *
  1664. * This ini is used by firmware to set full roam scan period in secs.
  1665. * Full roam scan period is the minimum idle period in seconds between two
  1666. * successive full channel roam scans. If this is configured as a non-zero,
  1667. * full roam scan will be triggered for every configured interval.
  1668. * If this configured as 0, full roam scan will not be triggered at all.
  1669. *
  1670. * Related: None
  1671. *
  1672. * Supported Feature: LFR Scan
  1673. *
  1674. * Usage: External
  1675. *
  1676. * </ini>
  1677. */
  1678. #define CFG_LFR_FULL_ROAM_SCAN_REFRESH_PERIOD CFG_INI_UINT( \
  1679. "gFullRoamScanPeriod", \
  1680. 0, \
  1681. 600, \
  1682. 0, \
  1683. CFG_VALUE_OR_DEFAULT, \
  1684. "Full roam scan refresh period")
  1685. /*
  1686. * <ini>
  1687. * gEmptyScanRefreshPeriod - Set empty scan refresh period
  1688. * @Min: 0
  1689. * @Max: 60000
  1690. * @Default: 0
  1691. *
  1692. * This ini is used by firmware to set scan period in msecs
  1693. * following empty scan results.
  1694. *
  1695. * Related: None
  1696. *
  1697. * Supported Feature: LFR Scan
  1698. *
  1699. * Usage: External
  1700. *
  1701. * </ini>
  1702. */
  1703. #define CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD CFG_INI_UINT( \
  1704. "gEmptyScanRefreshPeriod", \
  1705. 0, \
  1706. 60000, \
  1707. 0, \
  1708. CFG_VALUE_OR_DEFAULT, \
  1709. "Empty scan refresh period")
  1710. /*
  1711. * <ini>
  1712. * RoamScan_FirstTimer - Set empty scan refresh period
  1713. * @Min: 0
  1714. * @Max: 20
  1715. * @Default: 10
  1716. *
  1717. * This ini is used by firmware to set scan period in secs
  1718. * following empty scan results.
  1719. *
  1720. * Related: None
  1721. *
  1722. * Supported Feature: LFR Scan
  1723. *
  1724. * Usage: External
  1725. *
  1726. * </ini>
  1727. */
  1728. #define CFG_ROAM_SCAN_FIRST_TIMER CFG_INI_UINT( \
  1729. "RoamScan_FirstTimer", \
  1730. 0, \
  1731. 20, \
  1732. 10, \
  1733. CFG_VALUE_OR_DEFAULT, \
  1734. "Empty scan refresh period")
  1735. /*
  1736. * <ini>
  1737. * gRoamBmissFirstBcnt - Beacon miss count to trigger 1st bmiss event
  1738. * @Min: 5
  1739. * @Max: 100
  1740. * @Default: 10
  1741. *
  1742. * This ini used to control how many beacon miss will trigger first bmiss
  1743. * event. First bmiss event will result in roaming scan.
  1744. *
  1745. * Related: None
  1746. *
  1747. * Usage: External
  1748. *
  1749. * </ini>
  1750. */
  1751. #define CFG_LFR_ROAM_BMISS_FIRST_BCNT CFG_INI_UINT( \
  1752. "gRoamBmissFirstBcnt", \
  1753. 5, \
  1754. 100, \
  1755. 10, \
  1756. CFG_VALUE_OR_DEFAULT, \
  1757. "First beacon miss count")
  1758. /*
  1759. * <ini>
  1760. * gRoamBmissFinalBcnt - Beacon miss count to trigger final bmiss event
  1761. * @Min: 5
  1762. * @Max: 100
  1763. * @Default: 20
  1764. *
  1765. * This ini used to control how many beacon miss will trigger final bmiss
  1766. * event. Final bmiss event will make roaming take place or cause the
  1767. * indication of final bmiss event.
  1768. *
  1769. * Related: None
  1770. *
  1771. * Usage: External
  1772. *
  1773. * </ini>
  1774. */
  1775. #define CFG_LFR_ROAM_BMISS_FINAL_BCNT CFG_INI_UINT( \
  1776. "gRoamBmissFinalBcnt", \
  1777. 5, \
  1778. 100, \
  1779. 20, \
  1780. CFG_VALUE_OR_DEFAULT, \
  1781. "Final beacon miss count")
  1782. /*
  1783. * <ini>
  1784. * BeaconLoss_TimeoutOnWakeUp - Consecutive Beaconloss timeout on wakeup to
  1785. * trigger timeout
  1786. * @Min: 0
  1787. * @Max: 20
  1788. * @Default: 3
  1789. *
  1790. * This ini is used to control the beacon miss timeout when the system is awake.
  1791. * On the timeout, BMISS event will be triggered by FW.
  1792. * The units of this timeout is in seconds.
  1793. *
  1794. * Related: None
  1795. *
  1796. * Usage: External
  1797. *
  1798. * </ini>
  1799. */
  1800. /*
  1801. * <ini>
  1802. * BeaconLoss_TimeoutOnWakeUp - Consecutive Beaconloss timeout on wakeup to
  1803. * trigger timeout
  1804. * @Min: 0
  1805. * @Max: 20
  1806. * @Default: 6
  1807. *
  1808. * This ini is used to control the beacon miss timeout when the system is awake.
  1809. * On the timeout, BMISS event will be triggered by FW.
  1810. * The units of this timeout is in seconds.
  1811. *
  1812. * Related: None
  1813. *
  1814. * Usage: External
  1815. *
  1816. * </ini>
  1817. */
  1818. #define CFG_LFR_BEACONLOSS_TIMEOUT_ON_WAKEUP CFG_INI_UINT( \
  1819. "ConBeaconLoss_TimeoutOnWakeUp", \
  1820. CONBEACONLOSS_TIMEOUTONWAKEUP_MIN, \
  1821. CONBEACONLOSS_TIMEOUTONWAKEUP_MAX, \
  1822. CONBEACONLOSS_TIMEOUTONWAKEUP_DEFAULT, \
  1823. CFG_VALUE_OR_DEFAULT, \
  1824. "ConBeaconloss timeout on wakeup")
  1825. /*
  1826. * <ini>
  1827. * BeaconLoss_TimeoutOnSleep - Consecutive Beaconloss timeout on sleep to
  1828. * trigger timeout
  1829. * @Min: 0
  1830. * @Max: 20
  1831. * @Default: 5
  1832. *
  1833. * This ini is used to control the beacon miss timeout
  1834. * when the system is in sleep.
  1835. * On the timeout, BMISS event will be triggered by FW.
  1836. * The units of this timeout is in seconds.
  1837. *
  1838. * Related: None
  1839. *
  1840. * Usage: External
  1841. *
  1842. * </ini>
  1843. */
  1844. /*
  1845. * <ini>
  1846. * BeaconLoss_TimeoutOnSleep - Consecutive Beaconloss timeout on sleep to
  1847. * trigger timeout
  1848. * @Min: 0
  1849. * @Max: 20
  1850. * @Default: 10
  1851. *
  1852. * This ini is used to control the beacon miss timeout
  1853. * when the system is in sleep.
  1854. * On the timeout, BMISS event will be triggered by FW.
  1855. * The units of this timeout is in seconds.
  1856. *
  1857. * Related: None
  1858. *
  1859. * Usage: External
  1860. *
  1861. * </ini>
  1862. */
  1863. #define CFG_LFR_BEACONLOSS_TIMEOUT_ON_SLEEP CFG_INI_UINT( \
  1864. "ConBeaconLoss_TimeoutOnSleep", \
  1865. CONBEACONLOSS_TIMEOUTONSLEEP_MIN, \
  1866. CONBEACONLOSS_TIMEOUTONSLEEP_MAX, \
  1867. CONBEACONLOSS_TIMEOUTONSLEEP_DEFAULT, \
  1868. CFG_VALUE_OR_DEFAULT, \
  1869. "ConBeaconloss timeout on sleep")
  1870. /*
  1871. * <ini>
  1872. * gAllowDFSChannelRoam - Allow dfs channel in roam
  1873. * @Min: 0
  1874. * @Max: 2
  1875. * @Default: 1
  1876. *
  1877. * This ini is used to set default dfs channel
  1878. *
  1879. * Related: None
  1880. *
  1881. * Supported Feature: STA
  1882. *
  1883. * Usage: Internal/External
  1884. *
  1885. * </ini>
  1886. */
  1887. #define CFG_LFR_ROAMING_DFS_CHANNEL CFG_INI_UINT( \
  1888. "gAllowDFSChannelRoam", \
  1889. 0, \
  1890. 2, \
  1891. 1, \
  1892. CFG_VALUE_OR_DEFAULT, \
  1893. "Allow dfs channel in roam")
  1894. /*
  1895. * <ini>
  1896. * gRoamScanHiRssiMaxCount - Sets 5GHz maximum scan count
  1897. * @Min: 0
  1898. * @Max: 10
  1899. * @Default: 3
  1900. *
  1901. * This INI is used to set maximum scan count in 5GHz
  1902. *
  1903. * Related: None
  1904. *
  1905. * Supported Feature: Roaming
  1906. *
  1907. * Usage: External
  1908. *
  1909. * </ini>
  1910. */
  1911. #define CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT CFG_INI_UINT( \
  1912. "gRoamScanHiRssiMaxCount", \
  1913. 0, \
  1914. 10, \
  1915. 3, \
  1916. CFG_VALUE_OR_DEFAULT, \
  1917. "5GHz maximum scan count")
  1918. /*
  1919. * <ini>
  1920. * gRoamScanHiRssiDelta - Sets RSSI Delta for scan trigger
  1921. * @Min: 0
  1922. * @Max: 16
  1923. * @Default: 10
  1924. *
  1925. * This INI is used to set change in RSSI at which scan is triggered
  1926. * in 5GHz.
  1927. *
  1928. * Related: None
  1929. *
  1930. * Supported Feature: Roaming
  1931. *
  1932. * Usage: External
  1933. *
  1934. * </ini>
  1935. */
  1936. #define CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA CFG_INI_UINT( \
  1937. "gRoamScanHiRssiDelta", \
  1938. 0, \
  1939. 16, \
  1940. 10, \
  1941. CFG_VALUE_OR_DEFAULT, \
  1942. "RSSI Delta for scan trigger")
  1943. /*
  1944. * <ini>
  1945. * gRoamScanHiRssiDelay - Sets minimum delay between 5GHz scans
  1946. * @Min: 5000
  1947. * @Max: 0x7fffffff
  1948. * @Default: 15000
  1949. *
  1950. * This INI is used to set the minimum delay between 5GHz scans.
  1951. *
  1952. * Related: None
  1953. *
  1954. * Supported Feature: Roaming
  1955. *
  1956. * Usage: External
  1957. *
  1958. * </ini>
  1959. */
  1960. #define CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY CFG_INI_UINT( \
  1961. "gRoamScanHiRssiDelay", \
  1962. 5000, \
  1963. 0x7fffffff, \
  1964. 15000, \
  1965. CFG_VALUE_OR_DEFAULT, \
  1966. "Minimum delay between 5GHz scans")
  1967. /*
  1968. * <ini>
  1969. * gRoamScanHiRssiUpperBound - Sets upper bound after which 5GHz scan
  1970. * @Min: -66
  1971. * @Max: 0
  1972. * @Default: -30
  1973. *
  1974. * This INI is used to set the RSSI upper bound above which the 5GHz scan
  1975. * will not be performed.
  1976. *
  1977. * Related: None
  1978. *
  1979. * Supported Feature: Roaming
  1980. *
  1981. * Usage: External
  1982. *
  1983. * </ini>
  1984. */
  1985. #define CFG_LFR_ROAM_SCAN_HI_RSSI_UB CFG_INI_INT( \
  1986. "gRoamScanHiRssiUpperBound", \
  1987. -66, \
  1988. 0, \
  1989. -30, \
  1990. CFG_VALUE_OR_DEFAULT, \
  1991. "Upper bound after which 5GHz scan")
  1992. /*
  1993. * <ini>
  1994. * gRoamPrefer5GHz - Prefer roaming to 5GHz Bss
  1995. * @Min: 0
  1996. * @Max: 1
  1997. * @Default: 1
  1998. *
  1999. * This ini is used to inform FW to prefer roaming to 5GHz BSS
  2000. *
  2001. * Related: None
  2002. *
  2003. * Supported Feature: Roaming
  2004. *
  2005. * Usage: External
  2006. *
  2007. * </ini>
  2008. */
  2009. #define CFG_LFR_ROAM_PREFER_5GHZ CFG_INI_BOOL( \
  2010. "gRoamPrefer5GHz", \
  2011. 1, \
  2012. "Prefer roaming to 5GHz Bss")
  2013. /*
  2014. * <ini>
  2015. * gRoamIntraBand - Prefer roaming within Band
  2016. * @Min: 0
  2017. * @Max: 1
  2018. * @Default: 0
  2019. *
  2020. * This ini is used to inform FW to prefer roaming within band
  2021. *
  2022. * Related: None
  2023. *
  2024. * Supported Feature: Roaming
  2025. *
  2026. * Usage: External
  2027. *
  2028. * </ini>
  2029. */
  2030. #define CFG_LFR_ROAM_INTRA_BAND CFG_INI_BOOL( \
  2031. "gRoamIntraBand", \
  2032. 0, \
  2033. "Prefer roaming within Band")
  2034. /*
  2035. * <ini>
  2036. * gRoamScanNProbes - Sets the number of probes to be sent for firmware roaming
  2037. * @Min: 1
  2038. * @Max: 10
  2039. * @Default: 2
  2040. *
  2041. * This INI is used to set the maximum number of probes the firmware can send
  2042. * for firmware internal roaming cases.
  2043. *
  2044. * Related: None
  2045. *
  2046. * Supported Feature: Roaming
  2047. *
  2048. * Usage: External
  2049. *
  2050. * </ini>
  2051. */
  2052. #define CFG_LFR_ROAM_SCAN_N_PROBES CFG_INI_UINT( \
  2053. "gRoamScanNProbes", \
  2054. 1, \
  2055. 10, \
  2056. 2, \
  2057. CFG_VALUE_OR_DEFAULT, \
  2058. "The number of probes to be sent for firmware roaming")
  2059. /*
  2060. * <ini>
  2061. * gRoamScanHomeAwayTime/RoamScan_AwayTime - Sets the Home Away Time to firmware
  2062. * @Min: 0
  2063. * @Max: 300
  2064. * @Default: 0
  2065. *
  2066. * Home Away Time should be at least equal to (gNeighborScanChannelMaxTime
  2067. * + (2*RFS)), where RFS is the RF Switching time(3). It is twice RFS
  2068. * to consider the time to go off channel and return to the home channel.
  2069. *
  2070. * Related: gNeighborScanChannelMaxTime
  2071. *
  2072. * Supported Feature: Roaming
  2073. *
  2074. * Usage: External
  2075. *
  2076. * </ini>
  2077. */
  2078. #define CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME CFG_INI_UINT( \
  2079. "gRoamScanHomeAwayTime RoamScan_AwayTime", \
  2080. RoamScan_AwayTime_min, \
  2081. RoamScan_AwayTime_max, \
  2082. RoamScan_AwayTime_default, \
  2083. CFG_VALUE_OR_DEFAULT, \
  2084. "the home away time to firmware")
  2085. /*
  2086. * <ini>
  2087. * gDelayBeforeVdevStop - wait time for tx complete before vdev stop
  2088. * @Min: 2
  2089. * @Max: 200
  2090. * @Default: 20
  2091. *
  2092. * This INI is used to set wait time for tx complete before vdev stop.
  2093. *
  2094. * Related: None
  2095. *
  2096. * Usage: External
  2097. *
  2098. * </ini>
  2099. */
  2100. #define CFG_LFR_DELAY_BEFORE_VDEV_STOP CFG_INI_UINT( \
  2101. "gDelayBeforeVdevStop", \
  2102. 2, \
  2103. 200, \
  2104. 20, \
  2105. CFG_VALUE_OR_DEFAULT, \
  2106. "wait time for tx complete before vdev stop")
  2107. /*
  2108. * <ini>
  2109. * enable_bss_load_roam_trigger - enable/disable bss load based roam trigger
  2110. * @Min: 0
  2111. * @Max: 1
  2112. * @Default: 0
  2113. *
  2114. * This ini when enabled, allows the firmware to roam when bss load outpaces
  2115. * the configured bss load threshold. When this ini is disabled, firmware
  2116. * doesn't consider bss load values to trigger roam.
  2117. *
  2118. * Related: None
  2119. *
  2120. * Supported Feature: Roaming
  2121. *
  2122. * Usage: External
  2123. *
  2124. * </ini>
  2125. */
  2126. #define CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM CFG_INI_BOOL( \
  2127. "enable_bss_load_roam_trigger", \
  2128. 0, \
  2129. "enable bss load triggered roaming")
  2130. /*
  2131. * <ini>
  2132. * bss_load_threshold/RoamCU_Trigger - bss load above which the STA should
  2133. * trigger roaming
  2134. * @Min: 0
  2135. * @Max: 100
  2136. * @Default: 70
  2137. *
  2138. * When the bss load value that is sampled exceeds this threshold, firmware
  2139. * will trigger roaming if bss load trigger is enabled.
  2140. *
  2141. * Related: None
  2142. *
  2143. * Supported Feature: Roaming
  2144. *
  2145. * Usage: External
  2146. *
  2147. * </ini>
  2148. */
  2149. #define CFG_BSS_LOAD_THRESHOLD CFG_INI_UINT( \
  2150. "bss_load_threshold RoamCU_Trigger", \
  2151. RoamCU_Trigger_min, \
  2152. RoamCU_Trigger_max, \
  2153. RoamCU_Trigger_default, \
  2154. CFG_VALUE_OR_DEFAULT, \
  2155. "bss load threshold")
  2156. /*
  2157. * <ini>
  2158. * bss_load_sample_time - Time in milliseconds for which the bss load values
  2159. * obtained from the beacons is sampled.
  2160. * @Min: 0
  2161. * @Max: 0xffffffff
  2162. * @Default: 10000
  2163. *
  2164. * Related: None
  2165. *
  2166. * Supported Feature: Roaming
  2167. *
  2168. * Usage: External
  2169. *
  2170. * </ini>
  2171. */
  2172. #define CFG_BSS_LOAD_SAMPLE_TIME CFG_INI_UINT( \
  2173. "bss_load_sample_time", \
  2174. 0, \
  2175. 0xffffffff, \
  2176. 10000, \
  2177. CFG_VALUE_OR_DEFAULT, \
  2178. "bss load sampling time")
  2179. /*
  2180. * <ini>
  2181. * RoamCU_MonitorTime - Time in seconds for which the bss load values
  2182. * obtained from the beacons is sampled.
  2183. * @Min: 0
  2184. * @Max: 20
  2185. * @Default: 10
  2186. *
  2187. * Related: None
  2188. *
  2189. * Supported Feature: Roaming
  2190. *
  2191. * Usage: External
  2192. *
  2193. * </ini>
  2194. */
  2195. #define CFG_ROAM_CU_MONITOR_TIME CFG_INI_UINT( \
  2196. "RoamCU_MonitorTime", \
  2197. 0, \
  2198. 20, \
  2199. 10, \
  2200. CFG_VALUE_OR_DEFAULT, \
  2201. "bss load sampling time")
  2202. /*
  2203. * <ini>
  2204. * bss_load_trigger_6g_rssi_threshold/RoamCU_6GRSSIRange -
  2205. * Current AP minimum RSSI in dBm below
  2206. * which roaming can be triggered if BSS load exceeds bss_load_threshold.
  2207. * @Min: -120
  2208. * @Max: 0
  2209. * @Default: -70
  2210. *
  2211. * If connected AP is in 6Ghz, then consider bss load roam triggered only if
  2212. * load % > bss_load_threshold && connected AP rssi is worse than
  2213. * bss_load_trigger_6g_rssi_threshold
  2214. *
  2215. * Related: "bss_load_threshold"
  2216. *
  2217. * Supported Feature: Roaming
  2218. *
  2219. * Usage: Internal/External
  2220. *
  2221. * </ini>
  2222. */
  2223. /*
  2224. * <ini>
  2225. * bss_load_trigger_6g_rssi_threshold/RoamCU_6GRSSIRange -
  2226. * Current AP minimum RSSI in dBm below
  2227. * which roaming can be triggered if BSS load exceeds bss_load_threshold.
  2228. * @Min: -70
  2229. * @Max: -50
  2230. * @Default: -70
  2231. *
  2232. * If connected AP is in 6Ghz, then consider bss load roam triggered only if
  2233. * load % > bss_load_threshold && connected AP rssi is worse than
  2234. * bss_load_trigger_6g_rssi_threshold
  2235. *
  2236. * Related: "bss_load_threshold"
  2237. *
  2238. * Supported Feature: Roaming
  2239. *
  2240. * Usage: Internal/External
  2241. *
  2242. * </ini>
  2243. */
  2244. #define CFG_BSS_LOAD_TRIG_6G_RSSI_THRES CFG_INI_INT( \
  2245. "bss_load_trigger_6g_rssi_threshold RoamCU_6GRSSIRange", \
  2246. ROAMCU_6GRSSIRANGE_MIN, \
  2247. ROAMCU_6GRSSIRANGE_MAX, \
  2248. ROAMCU_6GRSSIRANGE_DEFAULT, \
  2249. CFG_VALUE_OR_DEFAULT, \
  2250. "Minimum RSSI of current AP in 6GHz band for BSS load roam trigger")
  2251. /*
  2252. * <ini>
  2253. * bss_load_trigger_5g_rssi_threshold/RoamCU_5GRSSIRange -
  2254. * Current AP minimum RSSI in dBm below
  2255. * which roaming can be triggered if BSS load exceeds bss_load_threshold.
  2256. * @Min: -120
  2257. * @Max: 0
  2258. * @Default: -70
  2259. *
  2260. * If connected AP is in 5Ghz, then consider bss load roam triggered only if
  2261. * load % > bss_load_threshold && connected AP rssi is worse than
  2262. * bss_load_trigger_5g_rssi_threshold
  2263. *
  2264. * Related: "bss_load_threshold"
  2265. *
  2266. * Supported Feature: Roaming
  2267. *
  2268. * Usage: Internal/External
  2269. *
  2270. * </ini>
  2271. */
  2272. #define CFG_BSS_LOAD_TRIG_5G_RSSI_THRES CFG_INI_INT( \
  2273. "bss_load_trigger_5g_rssi_threshold RoamCU_5GRSSIRange", \
  2274. RoamCU_5GRSSIRange_min, \
  2275. RoamCU_5GRSSIRange_max, \
  2276. RoamCU_5GRSSIRange_default, \
  2277. CFG_VALUE_OR_DEFAULT, \
  2278. "Minimum RSSI of current AP in 5GHz band for BSS load roam trigger")
  2279. /*
  2280. * <ini>
  2281. * bss_load_trigger_2g_rssi_threshold/RoamCU_24GRSSIRange -
  2282. * Current AP minimum RSSI in dBm below
  2283. * which roaming can be triggered if BSS load exceeds bss_load_threshold.
  2284. * @Min: -120
  2285. * @Max: 0
  2286. * @Default: -60
  2287. *
  2288. * If connected AP is in 2Ghz, then consider bss load roam triggered only if
  2289. * load % > bss_load_threshold && connected AP rssi is worse than
  2290. * bss_load_trigger_2g_rssi_threshold.
  2291. *
  2292. * Related: "bss_load_threshold"
  2293. *
  2294. * Supported Feature: Roaming
  2295. *
  2296. * Usage: Internal/External
  2297. *
  2298. * </ini>
  2299. */
  2300. #define CFG_BSS_LOAD_TRIG_2G_RSSI_THRES CFG_INI_INT( \
  2301. "bss_load_trigger_2g_rssi_threshold RoamCU_24GRSSIRange", \
  2302. RoamCU_24GRSSIRange_min, \
  2303. RoamCU_24GRSSIRange_max, \
  2304. RoamCU_24GRSSIRange_default, \
  2305. CFG_VALUE_OR_DEFAULT, \
  2306. "Minimum RSSI of current AP in 2.4GHz band for BSS load roam trigger")
  2307. /*
  2308. * <ini>
  2309. * ho_delay_for_rx - Delay hand-off (in msec) by this duration to receive
  2310. * pending rx frames from current BSS
  2311. * @Min: 0
  2312. * @Max: 200
  2313. * @Default: 0
  2314. *
  2315. * For LFR 3.0 roaming scenario, once roam candidate is found, firmware
  2316. * waits for minimum this much duration to receive pending rx frames from
  2317. * current BSS before switching to new channel for handoff to new AP.
  2318. *
  2319. * Related: None
  2320. *
  2321. * Supported Feature: Roaming
  2322. *
  2323. * Usage: External
  2324. *
  2325. * </ini>
  2326. */
  2327. #define CFG_LFR3_ROAM_HO_DELAY_FOR_RX CFG_INI_UINT( \
  2328. "ho_delay_for_rx", \
  2329. 0, \
  2330. 200, \
  2331. 0, \
  2332. CFG_VALUE_OR_DEFAULT, \
  2333. "Delay Hand-off by this duration to receive")
  2334. /*
  2335. * <ini>
  2336. * min_delay_btw_roam_scans - Min duration (in sec) allowed btw two
  2337. * consecutive roam scans
  2338. * @Min: 0
  2339. * @Max: 60
  2340. * @Default: 10
  2341. *
  2342. * Roam scan is not allowed if duration between two consecutive
  2343. * roam scans is less than this time.
  2344. *
  2345. * Related: None
  2346. *
  2347. * Supported Feature: Roaming
  2348. *
  2349. * Usage: External
  2350. *
  2351. * </ini>
  2352. */
  2353. #define CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN CFG_INI_UINT( \
  2354. "min_delay_btw_roam_scans", \
  2355. 0, \
  2356. 60, \
  2357. 10, \
  2358. CFG_VALUE_OR_DEFAULT, \
  2359. "Min duration")
  2360. /*
  2361. * <ini>
  2362. * roam_trigger_reason_bitmask - Contains roam_trigger_reasons
  2363. * @Min: 0
  2364. * @Max: 0xFFFFFFFF
  2365. * @Default: 0x10DA
  2366. *
  2367. * Bitmask containing roam_trigger_reasons for which
  2368. * min_delay_btw_roam_scans constraint should be applied.
  2369. * Currently supported bit positions are as follows:
  2370. * Bit 0 is reserved in the firmware.
  2371. * WMI_ROAM_TRIGGER_REASON_PER - 1
  2372. * WMI_ROAM_TRIGGER_REASON_BMISS - 2
  2373. * WMI_ROAM_TRIGGER_REASON_LOW_RSSI - 3
  2374. * WMI_ROAM_TRIGGER_REASON_HIGH_RSSI - 4
  2375. * WMI_ROAM_TRIGGER_REASON_PERIODIC - 5
  2376. * WMI_ROAM_TRIGGER_REASON_MAWC - 6
  2377. * WMI_ROAM_TRIGGER_REASON_DENSE - 7
  2378. * WMI_ROAM_TRIGGER_REASON_BACKGROUND - 8
  2379. * WMI_ROAM_TRIGGER_REASON_FORCED - 9
  2380. * WMI_ROAM_TRIGGER_REASON_BTM - 10
  2381. * WMI_ROAM_TRIGGER_REASON_UNIT_TEST - 11
  2382. * WMI_ROAM_TRIGGER_REASON_BSS_LOAD - 12
  2383. * WMI_ROAM_TRIGGER_REASON_DEAUTH - 13
  2384. * WMI_ROAM_TRIGGER_REASON_IDLE - 14
  2385. * WMI_ROAM_TRIGGER_REASON_MAX - 15
  2386. *
  2387. * For Ex: 0xDA (PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE)
  2388. *
  2389. * Related: None
  2390. *
  2391. * Supported Feature: Roaming
  2392. *
  2393. * Usage: External
  2394. *
  2395. * </ini>
  2396. */
  2397. #define CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK CFG_INI_UINT( \
  2398. "roam_trigger_reason_bitmask", \
  2399. 0, \
  2400. 0xFFFFFFFF, \
  2401. 0x10DA, \
  2402. CFG_VALUE_OR_DEFAULT, \
  2403. "Contains roam_trigger_reasons")
  2404. /*
  2405. * <ini>
  2406. * enable_ftopen - enable/disable FT open feature
  2407. * @Min: 0
  2408. * @Max: 1
  2409. * @Default: 1
  2410. *
  2411. * This INI is used to enable/disable FT open feature
  2412. *
  2413. * Related: None
  2414. *
  2415. * Supported Feature: Roaming
  2416. *
  2417. * Usage: External
  2418. *
  2419. * </ini>
  2420. */
  2421. #define CFG_LFR_ROAM_FT_OPEN_ENABLE CFG_INI_BOOL( \
  2422. "enable_ftopen", \
  2423. 1, \
  2424. "enable/disable FT open feature")
  2425. /*
  2426. * <ini>
  2427. * roam_force_rssi_trigger - To force RSSI trigger
  2428. * irrespective of channel list type
  2429. * @Min: 0
  2430. * @Max: 1
  2431. * @Default: 1
  2432. *
  2433. * This ini is used to set roam scan mode
  2434. * WMI_ROAM_SCAN_MODE_RSSI_CHANGE, irrespective of whether
  2435. * channel list type is CHANNEL_LIST_STATIC or not
  2436. *
  2437. * Related: None
  2438. *
  2439. * Supported Feature: Roaming
  2440. *
  2441. * Usage: External
  2442. *
  2443. * </ini>
  2444. */
  2445. #define CFG_LFR_ROAM_FORCE_RSSI_TRIGGER CFG_INI_BOOL( \
  2446. "roam_force_rssi_trigger", \
  2447. 1, \
  2448. "To force RSSI trigger")
  2449. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2450. /*
  2451. * <ini>
  2452. * gRoamOffloadEnabled - enable/disable roam offload feature
  2453. * @Min: 0
  2454. * @Max: 1
  2455. * @Default: 1
  2456. *
  2457. * This INI is used to enable/disable roam offload feature
  2458. *
  2459. * Related: None
  2460. *
  2461. * Supported Feature: Roaming
  2462. *
  2463. * Usage: External
  2464. *
  2465. * </ini>
  2466. */
  2467. #define CFG_LFR3_ROAMING_OFFLOAD CFG_INI_BOOL( \
  2468. "gRoamOffloadEnabled", \
  2469. 1, \
  2470. "enable roam offload")
  2471. /*
  2472. * <ini>
  2473. * enable_self_bss_roam - enable/disable roaming to self bss
  2474. * @Min: 0
  2475. * @Max: 1
  2476. * @Default: 1
  2477. *
  2478. * This INI is used to enable/disable roaming to already connected BSSID
  2479. *
  2480. * Related: None
  2481. *
  2482. * Supported Feature: Roaming
  2483. *
  2484. * Usage: Internal
  2485. *
  2486. * </ini>
  2487. */
  2488. #define CFG_LFR3_ENABLE_SELF_BSS_ROAM CFG_INI_BOOL( \
  2489. "enable_self_bss_roam", \
  2490. 1, \
  2491. "enable self bss roam")
  2492. /*
  2493. * <ini>
  2494. * enable_disconnect_roam_offload - Enable/Disable emergency roaming during
  2495. * deauth/disassoc
  2496. * @Min: 0 - Disabled
  2497. * @Max: 1 - Enabled
  2498. * @Default: 1
  2499. *
  2500. * When this ini is enabled firmware will trigger roam scan and roam to a new ap
  2501. * if candidate is found and it will not send the deauth/disassoc frame to
  2502. * the host driver.
  2503. * If roaming fails after this deauth, then firmware will send
  2504. * WMI_ROAM_REASON_DEAUTH event to the host. If roaming is successful, driver
  2505. * follows the normal roam synch event path.
  2506. *
  2507. * Supported Feature: Roaming
  2508. *
  2509. * Usage: Internal/External
  2510. *
  2511. * </ini>
  2512. */
  2513. #define CFG_LFR_ENABLE_DISCONNECT_ROAM CFG_INI_BOOL( \
  2514. "enable_disconnect_roam_offload", \
  2515. true, \
  2516. "Enable/Disable roaming on deauth/disassoc from AP")
  2517. /*
  2518. * <ini>
  2519. * enable_idle_roam - Enable/Disable idle roaming
  2520. * @Min: 0 - Disabled
  2521. * @Max: 1 - Enabled
  2522. * @Default: 0
  2523. *
  2524. * When this ini is enabled firmware will trigger roam scan and roam to a new
  2525. * ap if current connected AP rssi falls below the threshold. To consider the
  2526. * connection as idle, the following conditions should be met if this ini
  2527. * "enable_idle_roam" is enabled:
  2528. * 1. User space sends "SET SUSPENDMODE" command with value 0.
  2529. * 2. No TX/RX data for idle time configured via ini "idle_roam_inactive_time".
  2530. * 3. Connected AP rssi change doesn't exceed a specific delta value.
  2531. * (configured via ini idle_roam_rssi_delta)
  2532. * 4. Connected AP rssi falls below minimum rssi (configured via ini
  2533. * "idle_roam_min_rssi").
  2534. *
  2535. * Supported Feature: Roaming
  2536. *
  2537. * Usage: Internal/External
  2538. *
  2539. * </ini>
  2540. */
  2541. #define CFG_LFR_ENABLE_IDLE_ROAM CFG_INI_BOOL( \
  2542. "enable_idle_roam", \
  2543. false, \
  2544. "Enable/Disable idle roam")
  2545. /*
  2546. * <ini>
  2547. * idle_roam_rssi_delta/RoamIdle_RSSIVariation - This threshold is the criteria
  2548. * to decide whether DUT is idle or moving. If rssi delta is more than
  2549. * configured threshold then its considered as not idle. RSSI delta is entered
  2550. *in dBm. Idle roaming can be triggered if the connected AP rssi change exceeds
  2551. * or falls below the rssi delta and if other criteria of ini "enable_idle_roam"
  2552. * is met
  2553. * @Min: 0
  2554. * @Max: 50
  2555. * @Default: 3
  2556. *
  2557. * Related: enable_idle_roam
  2558. *
  2559. * Supported Feature: Roaming
  2560. *
  2561. * Usage: Internal/External
  2562. *
  2563. * </ini>
  2564. */
  2565. #define CFG_LFR_IDLE_ROAM_RSSI_DELTA CFG_INI_UINT( \
  2566. "idle_roam_rssi_delta RoamIdle_RSSIVariation", \
  2567. RoamIdle_RSSIVariation_min, \
  2568. RoamIdle_RSSIVariation_max, \
  2569. RoamIdle_RSSIVariation_default, \
  2570. CFG_VALUE_OR_DEFAULT, \
  2571. "Configure RSSI delta to start idle roam")
  2572. /*
  2573. * <ini>
  2574. * idle_roam_inactive_time - Time duration in milliseconds for which the
  2575. * connection is idle.
  2576. * @Min: 0
  2577. * @Max: 0xFFFFFFFF
  2578. * @Default: 10000
  2579. *
  2580. * This ini is used to configure the time in seconds for which the connection
  2581. * candidate is idle and after which idle roam scan can be triggered if
  2582. * other criteria of ini "enable_idle_roam" is met.
  2583. *
  2584. * Related: enable_idle_roam
  2585. *
  2586. * Supported Feature: Roaming
  2587. *
  2588. * Usage: Internal/External
  2589. *
  2590. * </ini>
  2591. */
  2592. #define CFG_LFR_IDLE_ROAM_INACTIVE_TIME CFG_INI_UINT( \
  2593. "idle_roam_inactive_time", \
  2594. 0, \
  2595. 0xFFFFFFFF, \
  2596. 10000, \
  2597. CFG_VALUE_OR_DEFAULT, \
  2598. "Configure RSSI delta to start idle roam")
  2599. /*
  2600. * <ini>
  2601. * RoamIdle_InactiveTime - Time duration in seconds for which the
  2602. * connection is idle.
  2603. * @Min: 0
  2604. * @Max: 20
  2605. * @Default: 10
  2606. *
  2607. * This ini is used to configure the time in seconds for which the connection
  2608. * candidate is idle and after which idle roam scan can be triggered if
  2609. * other criteria of ini "enable_idle_roam" is met.
  2610. *
  2611. * Related: enable_idle_roam
  2612. *
  2613. * Supported Feature: Roaming
  2614. *
  2615. * Usage: Internal/External
  2616. *
  2617. * </ini>
  2618. */
  2619. #define CFG_ROAM_IDLE_INACTIVE_TIME CFG_INI_UINT( \
  2620. "RoamIdle_InactiveTime", \
  2621. 0, \
  2622. 20, \
  2623. 10, \
  2624. CFG_VALUE_OR_DEFAULT, \
  2625. "Configure RSSI delta to start idle roam")
  2626. /*
  2627. * <ini>
  2628. * idle_data_packet_count/RoamIdle_InactivePacketCount - No of tx/rx packets
  2629. * above which the connection is not idle.
  2630. * @Min: 0
  2631. * @Max: 0xFFFFFFFF
  2632. * @Default: 10
  2633. *
  2634. * This ini is used to configure the acceptable number of tx/rx packets below
  2635. * which the connection is idle. Ex: If idle_data_packet_count is 10
  2636. * and if the tx/rx packet count is less than 10, the connection is
  2637. * idle. If there are more than 10 packets, the connection is active one.
  2638. *
  2639. * Related: enable_idle_roam
  2640. *
  2641. * Supported Feature: Roaming
  2642. *
  2643. * Usage: Internal/External
  2644. *
  2645. * </ini>
  2646. */
  2647. #define CFG_LFR_IDLE_ROAM_PACKET_COUNT CFG_INI_UINT( \
  2648. "idle_data_packet_count RoamIdle_InactivePacketCount", \
  2649. RoamIdle_InactivePacketCount_min, \
  2650. RoamIdle_InactivePacketCount_max, \
  2651. RoamIdle_InactivePacketCount_default, \
  2652. CFG_VALUE_OR_DEFAULT, \
  2653. "Configure idle packet count")
  2654. /*
  2655. * <ini>
  2656. * idle_roam_min_rssi/RoamIdle_MinRSSI - Minimum RSSI of connected AP, below
  2657. * which idle roam scan can be triggered if other criteria of ini
  2658. * "enable_idle_roam" is met.
  2659. * @Min: -96
  2660. * @Max: 0
  2661. * @Default: -65
  2662. *
  2663. * Related: enable_idle_roam
  2664. *
  2665. * Supported Feature: Roaming
  2666. *
  2667. * Usage: Internal/External
  2668. *
  2669. * </ini>
  2670. */
  2671. #define CFG_LFR_IDLE_ROAM_MIN_RSSI CFG_INI_INT( \
  2672. "idle_roam_min_rssi RoamIdle_MinRSSI", \
  2673. RoamIdle_MinRSSI_min, \
  2674. RoamIdle_MinRSSI_max, \
  2675. RoamIdle_MinRSSI_default, \
  2676. CFG_VALUE_OR_DEFAULT, \
  2677. "Configure idle roam minimum RSSI")
  2678. /*
  2679. * <ini>
  2680. * idle_roam_band/RoamIdle_TriggerBand - Band on which idle roam scan will be
  2681. * enabled
  2682. * @Min: 0
  2683. * @Max: 2
  2684. * @Default: 0
  2685. *
  2686. * Value 0 - Allow idle roam on both bands
  2687. * Value 1 - Allow idle roam only on 2G band
  2688. * Value 2 - Allow idle roam only on 5G band
  2689. *
  2690. * Related: enable_idle_roam
  2691. *
  2692. * Supported Feature: Roaming
  2693. *
  2694. * Usage: Internal/External
  2695. *
  2696. * </ini>
  2697. */
  2698. #define CFG_LFR_IDLE_ROAM_BAND CFG_INI_UINT( \
  2699. "idle_roam_band RoamIdle_TriggerBand", \
  2700. RoamIdle_TriggerBand_min, \
  2701. RoamIdle_TriggerBand_max, \
  2702. RoamIdle_TriggerBand_default, \
  2703. CFG_VALUE_OR_DEFAULT, \
  2704. "Band on which idle roam needs to be enabled")
  2705. /*
  2706. * <ini>
  2707. * roam_triggers - Bitmap of roaming triggers. Setting this to
  2708. * zero will disable roaming altogether for the STA interface.
  2709. * ESS report element of beacon explores BSS information, for roaming station
  2710. * uses it to consider next AP to roam. ROAM_TRIGGER_REASON_ESS_RSSI bit is
  2711. * to enable/disable roam trigger for ESS RSSI reason. This bit of ini is also
  2712. * used for WFA certification.
  2713. * @Min: 0
  2714. * @Max: 0xFFFFFFFF
  2715. * @Default: 0x3FFFF
  2716. *
  2717. * ROAM_TRIGGER_REASON_PER BIT 1
  2718. * ROAM_TRIGGER_REASON_BMISS BIT 2
  2719. * ROAM_TRIGGER_REASON_LOW_RSSI BIT 3
  2720. * ROAM_TRIGGER_REASON_HIGH_RSSI BIT 4
  2721. * ROAM_TRIGGER_REASON_PERIODIC BIT 5
  2722. * ROAM_TRIGGER_REASON_MAWC BIT 6
  2723. * ROAM_TRIGGER_REASON_DENSE BIT 7
  2724. * ROAM_TRIGGER_REASON_BACKGROUND BIT 8
  2725. * ROAM_TRIGGER_REASON_FORCED BIT 9
  2726. * ROAM_TRIGGER_REASON_BTM BIT 10
  2727. * ROAM_TRIGGER_REASON_UNIT_TEST BIT 11
  2728. * ROAM_TRIGGER_REASON_BSS_LOAD BIT 12
  2729. * ROAM_TRIGGER_REASON_DEAUTH BIT 13
  2730. * ROAM_TRIGGER_REASON_IDLE BIT 14
  2731. * ROAM_TRIGGER_REASON_STA_KICKOUT BIT 15
  2732. * ROAM_TRIGGER_REASON_ESS_RSSI BIT 16
  2733. * ROAM_TRIGGER_REASON_WTC_BTM BIT 17
  2734. * ROAM_TRIGGER_REASON_PMK_TIMEOUT BIT 18
  2735. * ROAM_TRIGGER_REASON_BTC BIT 19
  2736. * ROAM_TRIGGER_REASON_MAX BIT 20
  2737. *
  2738. * Related: none
  2739. *
  2740. * Supported Feature: Roaming
  2741. *
  2742. * Usage: External
  2743. *
  2744. * </ini>
  2745. */
  2746. #define CFG_ROAM_TRIGGER_BITMAP CFG_INI_UINT( \
  2747. "roam_triggers", \
  2748. 0, \
  2749. 0xFFFFFFFF, \
  2750. 0x7FFFF, \
  2751. CFG_VALUE_OR_DEFAULT, \
  2752. "Bitmap of roaming triggers")
  2753. /*
  2754. * <ini>
  2755. * sta_disable_roam - Disable Roam on sta interface
  2756. * @Min: 0 - Roam Enabled on sta interface
  2757. * @Max: 0xffffffff - Roam Disabled on sta interface irrespective
  2758. * of other interface connections
  2759. * @Default: 0x00
  2760. *
  2761. * Disable roaming on STA iface to avoid audio glitches on p2p and ndp if
  2762. * those are in connected state. Each bit for "sta_disable_roam" INI represents
  2763. * an interface for which sta roaming can be disabled.
  2764. *
  2765. * LFR3_STA_ROAM_DISABLE_BY_P2P BIT(0)
  2766. * LFR3_STA_ROAM_DISABLE_BY_NAN BIT(1)
  2767. *
  2768. * Related: None.
  2769. *
  2770. * Supported Feature: ROAM
  2771. *
  2772. * Usage: Internal
  2773. *
  2774. * </ini>
  2775. */
  2776. #define CFG_STA_DISABLE_ROAM CFG_INI_UINT( \
  2777. "sta_disable_roam", \
  2778. 0, \
  2779. 0xffffffff, \
  2780. 0x00, \
  2781. CFG_VALUE_OR_DEFAULT, \
  2782. "disable roam on STA iface if one of the iface mentioned in default is in connected state")
  2783. /*
  2784. * <ini>
  2785. * enable_dual_sta_roam_offload - Enable roaming offload on both interfaces
  2786. * for STA + STA
  2787. * @Min: 0 - Dual STA Roam offload Disabled
  2788. * @Max: 1 - Dual STA Roam offload Enabled
  2789. * @Default: 1
  2790. *
  2791. * Enabling this ini will:
  2792. * a) Enforce the STA + STA connection be DBS if the hw is capable.
  2793. * b) Enable Roam Scan Offload on both the STA vdev.
  2794. * c) Enable firmware to support sequential roaming on both STA vdev
  2795. * if the firmware is capable of dual sta roaming.
  2796. *
  2797. * Related: None.
  2798. *
  2799. * Supported Feature: ROAM
  2800. *
  2801. * Usage: External
  2802. *
  2803. * </ini>
  2804. */
  2805. #define CFG_ENABLE_DUAL_STA_ROAM_OFFLOAD CFG_INI_UINT( \
  2806. "enable_dual_sta_roam_offload", \
  2807. false, \
  2808. true, \
  2809. true, \
  2810. CFG_VALUE_OR_DEFAULT, \
  2811. "Enable roam on both STA vdev")
  2812. #define ROAM_OFFLOAD_ALL \
  2813. CFG(CFG_LFR3_ROAMING_OFFLOAD) \
  2814. CFG(CFG_LFR3_ENABLE_SELF_BSS_ROAM) \
  2815. CFG(CFG_LFR_ENABLE_DISCONNECT_ROAM) \
  2816. CFG(CFG_LFR_ENABLE_IDLE_ROAM) \
  2817. CFG(CFG_LFR_IDLE_ROAM_RSSI_DELTA) \
  2818. CFG(CFG_LFR_IDLE_ROAM_INACTIVE_TIME) \
  2819. CFG(CFG_ROAM_IDLE_INACTIVE_TIME) \
  2820. CFG(CFG_LFR_IDLE_ROAM_PACKET_COUNT) \
  2821. CFG(CFG_LFR_IDLE_ROAM_MIN_RSSI) \
  2822. CFG(CFG_LFR_IDLE_ROAM_BAND) \
  2823. CFG(CFG_ROAM_TRIGGER_BITMAP) \
  2824. CFG(CFG_STA_DISABLE_ROAM) \
  2825. CFG(CFG_ENABLE_DUAL_STA_ROAM_OFFLOAD) \
  2826. #else
  2827. #define ROAM_OFFLOAD_ALL
  2828. #endif
  2829. #ifdef FEATURE_WLAN_ESE
  2830. /*
  2831. * <ini>
  2832. * EseEnabled - Enable ESE feature
  2833. * @Min: 0
  2834. * @Max: 1
  2835. * @Default: 0
  2836. *
  2837. * This ini is used to enable/disable ESE feature
  2838. *
  2839. * Related: None
  2840. *
  2841. * Supported Feature: Roaming
  2842. *
  2843. * Usage: External
  2844. *
  2845. * </ini>
  2846. */
  2847. #define CFG_LFR_ESE_FEATURE_ENABLED CFG_INI_BOOL( \
  2848. "EseEnabled", \
  2849. 0, \
  2850. "Enable ESE")
  2851. #define LFR_ESE_ALL CFG(CFG_LFR_ESE_FEATURE_ENABLED)
  2852. #else
  2853. #define LFR_ESE_ALL
  2854. #endif
  2855. #ifdef FEATURE_LFR_SUBNET_DETECTION
  2856. /*
  2857. * <ini>
  2858. * gLFRSubnetDetectionEnable - Enable LFR3 subnet detection
  2859. * @Min: 0
  2860. * @Max: 1
  2861. * @Default: 1
  2862. *
  2863. * Enable IP subnet detection during legacy fast roming version 3. Legacy fast
  2864. * roaming could roam across IP subnets without host processors' knowledge.
  2865. * This feature enables firmware to wake up the host processor if it
  2866. * successfully determines change in the IP subnet. Change in IP subnet could
  2867. * potentially cause disruption in IP connnectivity if IP address is not
  2868. * refreshed.
  2869. *
  2870. * Related: None
  2871. *
  2872. * Supported Feature: Roaming
  2873. *
  2874. * Usage: External
  2875. *
  2876. * </ini>
  2877. */
  2878. #define CFG_LFR3_ENABLE_SUBNET_DETECTION CFG_INI_BOOL( \
  2879. "gLFRSubnetDetectionEnable", \
  2880. 1, \
  2881. "Enable LFR3 subnet detection")
  2882. #define LFR_SUBNET_DETECTION_ALL CFG(CFG_LFR3_ENABLE_SUBNET_DETECTION)
  2883. #else
  2884. #define LFR_SUBNET_DETECTION_ALL
  2885. #endif
  2886. #if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
  2887. /*
  2888. * <ini>
  2889. * sae_single_pmk_feature_enabled - Enable/disable sae single pmk feature.
  2890. * @Min: 0
  2891. * @Max: 1
  2892. * @Default: 1
  2893. *
  2894. * This INI is to enable/disable SAE Roaming with same PMK/PMKID feature support
  2895. *
  2896. * Related: None.
  2897. *
  2898. * Supported Feature: Roaming
  2899. *
  2900. * Usage: Internal
  2901. *
  2902. * </ini>
  2903. */
  2904. #define CFG_SAE_SINGLE_PMK CFG_INI_BOOL( \
  2905. "sae_single_pmk_feature_enabled", \
  2906. true, \
  2907. "Enable/disable SAE Roaming with single PMK/PMKID")
  2908. #define SAE_SINGLE_PMK_ALL CFG(CFG_SAE_SINGLE_PMK)
  2909. #else
  2910. #define SAE_SINGLE_PMK_ALL
  2911. #endif
  2912. #ifdef WLAN_ADAPTIVE_11R
  2913. /*
  2914. * <ini>
  2915. * adaptive_11r - Enable/disable adaptive 11r feature.
  2916. * @Min: 0
  2917. * @Max: 1
  2918. * @Default: 0
  2919. *
  2920. * Adaptive 11r feature enables the AP to support FT-AKM without
  2921. * configuring the FT-AKM in the network. The AP will advertise non-FT akm
  2922. * with a vendor specific IE having Adaptive 11r bit set to 1 in the IE data.
  2923. * The AP also advertises the MDE in beacon/probe response.
  2924. *
  2925. * STA should check the adaptive 11r capability if the AP advertises MDE in
  2926. * beacon/probe and adaptive 11r capability in vendor specific IE. If adaptive
  2927. * 11r capability is found, STA can advertise the FT equivalent of the non-FT
  2928. * AKM and connect with 11r protocol.
  2929. *
  2930. * Related: None.
  2931. *
  2932. * Supported Feature: Fast BSS Transition
  2933. *
  2934. * Usage: External
  2935. *
  2936. * </ini>
  2937. */
  2938. #define CFG_ADAPTIVE_11R CFG_INI_BOOL( \
  2939. "enable_adaptive_11r", \
  2940. false, \
  2941. "Enable/disable adaptive 11r support")
  2942. #define ADAPTIVE_11R_ALL CFG(CFG_ADAPTIVE_11R)
  2943. #else
  2944. #define ADAPTIVE_11R_ALL
  2945. #endif
  2946. /*
  2947. * <ini>
  2948. * roaming_scan_policy - To config roaming scan policy
  2949. * @Min: 0
  2950. * @Max: 1
  2951. * @Default: 0
  2952. *
  2953. * This ini is used to configure roaming scan behavior from HOST
  2954. * 0 : DBS scan
  2955. * 1 : Non-DBS scan
  2956. *
  2957. * Related: None
  2958. *
  2959. * Supported Feature: Roaming
  2960. *
  2961. * Usage: External
  2962. *
  2963. * </ini>
  2964. */
  2965. #define CFG_ROAM_SCAN_SCAN_POLICY CFG_INI_BOOL( \
  2966. "roaming_scan_policy", \
  2967. 0, \
  2968. "Config roam scan policy")
  2969. /*
  2970. * <ini>
  2971. * enable_ft_im_roaming - FW needs to perform FT initial moiblity association
  2972. * instead of FT roaming for deauth roam trigger
  2973. * @Min: 0
  2974. * @Max: 1
  2975. * @Default: 1
  2976. *
  2977. * This ini is used to FT roaming for deauth roam trigger behavior from HOST
  2978. * 0 - To disable FT-IM
  2979. * 1 - To enable FT-IM
  2980. *
  2981. * Related: None
  2982. *
  2983. * Supported Feature: Roaming
  2984. *
  2985. * Usage: Internal
  2986. *
  2987. * </ini>
  2988. */
  2989. #define CFG_FT_IM_ROAMING CFG_INI_BOOL( \
  2990. "enable_ft_im_roaming", \
  2991. 1, \
  2992. "FT roaming for deauth roam trigger")
  2993. /*
  2994. * <ini>
  2995. * roam_scan_inactivity_time - Device inactivity monitoring time in
  2996. * milliseconds for which the device is considered to be inactive with data
  2997. * packets count is less than configured roam_inactive_data_count.
  2998. *
  2999. * @Min: 0
  3000. * @Max: 0xFFFFFFFF
  3001. * @Default: 0
  3002. *
  3003. * The below three ini values are used to control the roam scan after the
  3004. * firmware gets empty roam scan results during periodic roam scans.
  3005. * 1. roam_scan_inactivity_time
  3006. * 2. roam_inactive_data_count
  3007. * 3. roam_scan_period_after_inactivity
  3008. * The first two ini "roam_scan_inactivity_time" and "roam_inactive_data_count"
  3009. * is frames the criteria to detect if the DUT is inactive. If the device is
  3010. * identified to be inactive based on the above two ini, then the value,
  3011. * "roam_scan_period_after_inactivity" will be used as periodic roam scan
  3012. * duration.
  3013. *
  3014. * Related: roam_inactive_data_count
  3015. *
  3016. * Supported Feature: Roaming
  3017. *
  3018. * Usage: External
  3019. *
  3020. * </ini>
  3021. */
  3022. #define CFG_ROAM_SCAN_INACTIVITY_TIME CFG_INI_UINT( \
  3023. "roam_scan_inactivity_time", \
  3024. 0, \
  3025. 0xFFFFFFFF, \
  3026. 0, \
  3027. CFG_VALUE_OR_DEFAULT, \
  3028. "Device inactivity monitoring time")
  3029. /*
  3030. * <ini>
  3031. * RoamScan_SecondTimer - Device inactivity monitoring time in
  3032. * seconds for which the device is considered to be inactive with data
  3033. * packets count is less than configured RoamScan_InactiveCount.
  3034. *
  3035. * @Min: 60
  3036. * @Max: 300
  3037. * @Default: 120
  3038. *
  3039. * The below three ini values are used to control the roam scan after the
  3040. * firmware gets empty roam scan results during periodic roam scans.
  3041. * 1. RoamScan_SecondTimer
  3042. * 2. RoamScan_InactiveCount
  3043. * 3. RoamScan_InactiveTimer
  3044. * The first two ini "RoamScan_SecondTimer" and "RoamScan_InactiveCount"
  3045. * is frames the criteria to detect if the DUT is inactive. If the device is
  3046. * identified to be inactive based on the above two ini, then the value,
  3047. * "RoamScan_InactiveTimer" will be used as periodic roam scan
  3048. * duration.
  3049. *
  3050. * Related: RoamScan_InactiveCount
  3051. *
  3052. * Supported Feature: Roaming
  3053. *
  3054. * Usage: External
  3055. *
  3056. * </ini>
  3057. */
  3058. #define CFG_ROAM_SCAN_SECOND_TIMER CFG_INI_UINT( \
  3059. "RoamScan_SecondTimer", \
  3060. 60, \
  3061. 300, \
  3062. 120, \
  3063. CFG_VALUE_OR_DEFAULT, \
  3064. "Device inactivity monitoring time")
  3065. /*
  3066. * <ini>
  3067. * roam_inactive_data_count/RoamScan_InactiveCount - Maximum allowed data
  3068. * packets count during roam_scan_inactivity_time.
  3069. *
  3070. * @Min: 0
  3071. * @Max: 0xFFFFFFFF
  3072. * @Default: 10
  3073. *
  3074. * The DUT is said to be inactive only if the data packets count
  3075. * during this roam_scan_inactivity_time is less than the configured
  3076. * roam_inactive_data_count.
  3077. *
  3078. * Related: roam_scan_inactivity_time
  3079. *
  3080. * Supported Feature: Roaming
  3081. *
  3082. * Usage: External
  3083. *
  3084. * </ini>
  3085. */
  3086. #define CFG_ROAM_INACTIVE_COUNT CFG_INI_UINT( \
  3087. "roam_inactive_data_count RoamScan_InactiveCount", \
  3088. RoamScan_InactiveCount_min, \
  3089. RoamScan_InactiveCount_max, \
  3090. RoamScan_InactiveCount_default, \
  3091. CFG_VALUE_OR_DEFAULT, \
  3092. "Roam scan inactivity period data pkt count")
  3093. /*
  3094. * <ini>
  3095. * roam_scan_period_after_inactivity - Roam scan duration in ms after device is
  3096. * out of inactivity state.
  3097. *
  3098. * @Min: 0
  3099. * @Max: 0xFFFFFFFF
  3100. * @Default: 120000
  3101. *
  3102. * If there is empty scan results during roam scan, firmware will move to
  3103. * roam scan inactive state if roam_scan_inactivity and
  3104. * roam_inactive_data_count criteria are met.
  3105. * This ini is used to configure the roam scan duration in ms once the
  3106. * inactivity is finished and roam scan can be started.
  3107. *
  3108. * Related: roam_scan_inactivity_time, roam_inactive_data_count
  3109. *
  3110. * Supported Feature: Roaming
  3111. *
  3112. * Usage: External
  3113. *
  3114. * </ini>
  3115. */
  3116. #define CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD CFG_INI_UINT( \
  3117. "roam_scan_period_after_inactivity", \
  3118. 0, \
  3119. 0xFFFFFFFF, \
  3120. 120000, \
  3121. CFG_VALUE_OR_DEFAULT, \
  3122. "Roam scan period post inactivity")
  3123. /*
  3124. * <ini>
  3125. * RoamScan_InactiveTimer - Roam scan duration in sec after device is
  3126. * out of inactivity state.
  3127. *
  3128. * @Min: 0
  3129. * @Max: 20
  3130. * @Default: 10
  3131. *
  3132. * If there is empty scan results during roam scan, firmware will move to
  3133. * roam scan inactive state if roam_scan_inactivity and
  3134. * roam_inactive_data_count criteria are met.
  3135. * This ini is used to configure the roam scan duration in sec once the
  3136. * inactivity is finished and roam scan can be started.
  3137. *
  3138. * Related: roam_scan_inactivity_time, roam_inactive_data_count
  3139. *
  3140. * Supported Feature: Roaming
  3141. *
  3142. * Usage: External
  3143. *
  3144. * </ini>
  3145. */
  3146. #define CFG_ROAM_SCAN_INACTIVE_TIMER CFG_INI_UINT( \
  3147. "RoamScan_InactiveTimer", \
  3148. 0, \
  3149. 20, \
  3150. 10, \
  3151. CFG_VALUE_OR_DEFAULT, \
  3152. "Roam scan period post inactivity")
  3153. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  3154. /*
  3155. * <ini>
  3156. * enable_roam_reason_vsie - Enable/Disable inclusion of Roam Reason
  3157. * in Re(association) frame
  3158. *
  3159. * @Min: 0
  3160. * @Max: 1
  3161. * @Default: 0
  3162. *
  3163. * This ini is used to enable fw to include/exclude roam reason vsie in
  3164. * Re(association)
  3165. *
  3166. * Related: None
  3167. *
  3168. * Supported Feature: Roaming
  3169. *
  3170. * Usage: internal
  3171. *
  3172. * </ini>
  3173. */
  3174. #define CFG_ENABLE_ROAM_REASON_VSIE CFG_INI_BOOL( \
  3175. "enable_roam_reason_vsie", \
  3176. 0, \
  3177. "To Enable enable_roam_reason_vsie")
  3178. #define ROAM_REASON_VSIE_ALL CFG(CFG_ENABLE_ROAM_REASON_VSIE)
  3179. #else
  3180. #define ROAM_REASON_VSIE_ALL
  3181. #endif
  3182. #define CFG_LFR_ALL \
  3183. CFG(CFG_LFR_MAWC_ROAM_ENABLED) \
  3184. CFG(CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD) \
  3185. CFG(CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD) \
  3186. CFG(CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST) \
  3187. CFG(CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST) \
  3188. CFG(CFG_LFR_ROAM_RSSI_ABS_THRESHOLD) \
  3189. CFG(CFG_LFR_5G_RSSI_THRESHOLD_OFFSET) \
  3190. CFG(CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY) \
  3191. CFG(CFG_LFR_EARLY_STOP_SCAN_ENABLE) \
  3192. CFG(CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD) \
  3193. CFG(CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD) \
  3194. CFG(CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD) \
  3195. CFG(CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET) \
  3196. CFG(CFG_LFR_ROAM_DENSE_MIN_APS) \
  3197. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD) \
  3198. CFG(CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP) \
  3199. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G) \
  3200. CFG(CFG_ROAM_DATA_RSSI_THRESHOLD_TRIGGERS) \
  3201. CFG(CFG_ROAM_DATA_RSSI_THRESHOLD) \
  3202. CFG(CFG_RX_DATA_INACTIVITY_TIME) \
  3203. CFG(CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE) \
  3204. CFG(CFG_LFR_PER_ROAM_ENABLE) \
  3205. CFG(CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH) \
  3206. CFG(CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH) \
  3207. CFG(CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT) \
  3208. CFG(CFG_LFR_PER_ROAM_REST_TIME) \
  3209. CFG(CFG_LFR_PER_ROAM_MONITOR_TIME) \
  3210. CFG(CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI) \
  3211. CFG(CFG_LFR3_ROAM_DISALLOW_DURATION) \
  3212. CFG(CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION) \
  3213. CFG(CFG_LFR3_ROAM_NUM_DISALLOWED_APS) \
  3214. CFG(CFG_LFR_ENABLE_5G_BAND_PREF) \
  3215. CFG(CFG_LFR_5G_RSSI_BOOST_THRESHOLD) \
  3216. CFG(CFG_LFR_5G_RSSI_BOOST_FACTOR) \
  3217. CFG(CFG_LFR_5G_MAX_RSSI_BOOST) \
  3218. CFG(CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD) \
  3219. CFG(CFG_LFR_5G_RSSI_PENALIZE_FACTOR) \
  3220. CFG(CFG_LFR_5G_MAX_RSSI_PENALIZE) \
  3221. CFG(CFG_LFR_MAX_NUM_PRE_AUTH) \
  3222. CFG(CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT) \
  3223. CFG(CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT) \
  3224. CFG(CFG_LFR_FEATURE_ENABLED) \
  3225. CFG(CFG_LFR_MAWC_FEATURE_ENABLED) \
  3226. CFG(CFG_LFR_FAST_TRANSITION_ENABLED) \
  3227. CFG(CFG_LFR_ROAM_RSSI_DIFF) \
  3228. CFG(CFG_LFR_ROAM_RSSI_DIFF_6GHZ) \
  3229. CFG(CFG_LFR_ROAM_BG_RSSI_TH) \
  3230. CFG(CFG_LFR_ENABLE_WES_MODE) \
  3231. CFG(CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED) \
  3232. CFG(CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST) \
  3233. CFG(CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD) \
  3234. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD) \
  3235. CFG(CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD) \
  3236. CFG(CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF) \
  3237. CFG(CFG_LFR_ROAM_RESCAN_RSSI_DIFF) \
  3238. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME) \
  3239. CFG(CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME) \
  3240. CFG(CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD) \
  3241. CFG(CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD) \
  3242. CFG(CFG_ROAM_SCAN_FIRST_TIMER) \
  3243. CFG(CFG_LFR_ROAM_BMISS_FIRST_BCNT) \
  3244. CFG(CFG_LFR_ROAM_BMISS_FINAL_BCNT) \
  3245. CFG(CFG_LFR_ROAMING_DFS_CHANNEL) \
  3246. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT) \
  3247. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA) \
  3248. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY) \
  3249. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_UB) \
  3250. CFG(CFG_LFR_ROAM_PREFER_5GHZ) \
  3251. CFG(CFG_LFR_ROAM_INTRA_BAND) \
  3252. CFG(CFG_LFR_ROAM_SCAN_N_PROBES) \
  3253. CFG(CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME) \
  3254. CFG(CFG_LFR_DELAY_BEFORE_VDEV_STOP) \
  3255. CFG(CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM) \
  3256. CFG(CFG_BSS_LOAD_THRESHOLD) \
  3257. CFG(CFG_BSS_LOAD_SAMPLE_TIME) \
  3258. CFG(CFG_ROAM_CU_MONITOR_TIME) \
  3259. CFG(CFG_LFR3_ROAM_HO_DELAY_FOR_RX) \
  3260. CFG(CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN) \
  3261. CFG(CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK) \
  3262. CFG(CFG_LFR_ROAM_FT_OPEN_ENABLE) \
  3263. CFG(CFG_LFR_ROAM_FORCE_RSSI_TRIGGER) \
  3264. CFG(CFG_ROAM_SCAN_SCAN_POLICY) \
  3265. CFG(CFG_ROAM_SCAN_INACTIVITY_TIME) \
  3266. CFG(CFG_ROAM_SCAN_SECOND_TIMER) \
  3267. CFG(CFG_FT_IM_ROAMING) \
  3268. CFG(CFG_ROAM_INACTIVE_COUNT) \
  3269. CFG(CFG_ROAM_PASSIVE_MAX_CHANNEL_TIME) \
  3270. CFG(CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD) \
  3271. CFG(CFG_ROAM_SCAN_INACTIVE_TIMER) \
  3272. CFG(CFG_BSS_LOAD_TRIG_6G_RSSI_THRES) \
  3273. CFG(CFG_BSS_LOAD_TRIG_5G_RSSI_THRES) \
  3274. CFG(CFG_BSS_LOAD_TRIG_2G_RSSI_THRES) \
  3275. CFG(CFG_LFR_FULL_ROAM_SCAN_REFRESH_PERIOD) \
  3276. ADAPTIVE_11R_ALL \
  3277. ROAM_OFFLOAD_ALL \
  3278. LFR_ESE_ALL \
  3279. LFR_SUBNET_DETECTION_ALL \
  3280. SAE_SINGLE_PMK_ALL \
  3281. ROAM_REASON_VSIE_ALL \
  3282. CFG(CFG_LFR_BEACONLOSS_TIMEOUT_ON_WAKEUP) \
  3283. CFG(CFG_LFR_BEACONLOSS_TIMEOUT_ON_SLEEP)
  3284. #endif /* CFG_MLME_LFR_H__ */