cfg_mlme_lfr.h 80 KB

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