cfg_mlme_lfr.h 69 KB

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