cfg_mlme_lfr.h 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110
  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. /*
  2838. * <ini>
  2839. * RoamScan_InactiveTimer - Roam scan duration in sec after device is
  2840. * out of inactivity state.
  2841. *
  2842. * @Min: 0
  2843. * @Max: 20
  2844. * @Default: 10
  2845. *
  2846. * If there is empty scan results during roam scan, firmware will move to
  2847. * roam scan inactive state if roam_scan_inactivity and
  2848. * roam_inactive_data_count criteria are met.
  2849. * This ini is used to configure the roam scan duration in sec once the
  2850. * inactivity is finished and roam scan can be started.
  2851. *
  2852. * Related: roam_scan_inactivity_time, roam_inactive_data_count
  2853. *
  2854. * Supported Feature: Roaming
  2855. *
  2856. * Usage: External
  2857. *
  2858. * </ini>
  2859. */
  2860. #define CFG_ROAM_SCAN_INACTIVE_TIMER CFG_INI_UINT( \
  2861. "RoamScan_InactiveTimer", \
  2862. 0, \
  2863. 20, \
  2864. 10, \
  2865. CFG_VALUE_OR_DEFAULT, \
  2866. "Roam scan period post inactivity")
  2867. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2868. /*
  2869. * <ini>
  2870. * enable_roam_reason_vsie - Enable/Disable inclusion of Roam Reason
  2871. * in Re(association) frame
  2872. *
  2873. * @Min: 0
  2874. * @Max: 1
  2875. * @Default: 0
  2876. *
  2877. * This ini is used to enable fw to include/exclude roam reason vsie in
  2878. * Re(association)
  2879. *
  2880. * Related: None
  2881. *
  2882. * Supported Feature: Roaming
  2883. *
  2884. * Usage: internal
  2885. *
  2886. * </ini>
  2887. */
  2888. #define CFG_ENABLE_ROAM_REASON_VSIE CFG_INI_BOOL( \
  2889. "enable_roam_reason_vsie", \
  2890. 0, \
  2891. "To Enable enable_roam_reason_vsie")
  2892. #define ROAM_REASON_VSIE_ALL CFG(CFG_ENABLE_ROAM_REASON_VSIE)
  2893. #else
  2894. #define ROAM_REASON_VSIE_ALL
  2895. #endif
  2896. #define CFG_LFR_ALL \
  2897. CFG(CFG_LFR_MAWC_ROAM_ENABLED) \
  2898. CFG(CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD) \
  2899. CFG(CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD) \
  2900. CFG(CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST) \
  2901. CFG(CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST) \
  2902. CFG(CFG_LFR_ROAM_RSSI_ABS_THRESHOLD) \
  2903. CFG(CFG_LFR_5G_RSSI_THRESHOLD_OFFSET) \
  2904. CFG(CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY) \
  2905. CFG(CFG_LFR_EARLY_STOP_SCAN_ENABLE) \
  2906. CFG(CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD) \
  2907. CFG(CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD) \
  2908. CFG(CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD) \
  2909. CFG(CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET) \
  2910. CFG(CFG_LFR_ROAM_DENSE_MIN_APS) \
  2911. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD) \
  2912. CFG(CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP) \
  2913. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G) \
  2914. CFG(CFG_ROAM_DATA_RSSI_THRESHOLD_TRIGGERS) \
  2915. CFG(CFG_ROAM_DATA_RSSI_THRESHOLD) \
  2916. CFG(CFG_RX_DATA_INACTIVITY_TIME) \
  2917. CFG(CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE) \
  2918. CFG(CFG_LFR_PER_ROAM_ENABLE) \
  2919. CFG(CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH) \
  2920. CFG(CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH) \
  2921. CFG(CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT) \
  2922. CFG(CFG_LFR_PER_ROAM_REST_TIME) \
  2923. CFG(CFG_LFR_PER_ROAM_MONITOR_TIME) \
  2924. CFG(CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI) \
  2925. CFG(CFG_LFR3_ROAM_DISALLOW_DURATION) \
  2926. CFG(CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION) \
  2927. CFG(CFG_LFR3_ROAM_NUM_DISALLOWED_APS) \
  2928. CFG(CFG_LFR_ENABLE_5G_BAND_PREF) \
  2929. CFG(CFG_LFR_5G_RSSI_BOOST_THRESHOLD) \
  2930. CFG(CFG_LFR_5G_RSSI_BOOST_FACTOR) \
  2931. CFG(CFG_LFR_5G_MAX_RSSI_BOOST) \
  2932. CFG(CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD) \
  2933. CFG(CFG_LFR_5G_RSSI_PENALIZE_FACTOR) \
  2934. CFG(CFG_LFR_5G_MAX_RSSI_PENALIZE) \
  2935. CFG(CFG_LFR_MAX_NUM_PRE_AUTH) \
  2936. CFG(CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT) \
  2937. CFG(CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT) \
  2938. CFG(CFG_LFR_FEATURE_ENABLED) \
  2939. CFG(CFG_LFR_MAWC_FEATURE_ENABLED) \
  2940. CFG(CFG_LFR_FAST_TRANSITION_ENABLED) \
  2941. CFG(CFG_LFR_ROAM_RSSI_DIFF) \
  2942. CFG(CFG_LFR_ROAM_BG_RSSI_TH) \
  2943. CFG(CFG_LFR_ENABLE_WES_MODE) \
  2944. CFG(CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED) \
  2945. CFG(CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST) \
  2946. CFG(CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD) \
  2947. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD) \
  2948. CFG(CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD) \
  2949. CFG(CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF) \
  2950. CFG(CFG_LFR_ROAM_RESCAN_RSSI_DIFF) \
  2951. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME) \
  2952. CFG(CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME) \
  2953. CFG(CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD) \
  2954. CFG(CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD) \
  2955. CFG(CFG_ROAM_SCAN_FIRST_TIMER) \
  2956. CFG(CFG_LFR_ROAM_BMISS_FIRST_BCNT) \
  2957. CFG(CFG_LFR_ROAM_BMISS_FINAL_BCNT) \
  2958. CFG(CFG_LFR_ROAMING_DFS_CHANNEL) \
  2959. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT) \
  2960. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA) \
  2961. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY) \
  2962. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_UB) \
  2963. CFG(CFG_LFR_ROAM_PREFER_5GHZ) \
  2964. CFG(CFG_LFR_ROAM_INTRA_BAND) \
  2965. CFG(CFG_LFR_ROAM_SCAN_N_PROBES) \
  2966. CFG(CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME) \
  2967. CFG(CFG_LFR_DELAY_BEFORE_VDEV_STOP) \
  2968. CFG(CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM) \
  2969. CFG(CFG_BSS_LOAD_THRESHOLD) \
  2970. CFG(CFG_BSS_LOAD_SAMPLE_TIME) \
  2971. CFG(CFG_ROAM_CU_MONITOR_TIME) \
  2972. CFG(CFG_LFR3_ROAM_HO_DELAY_FOR_RX) \
  2973. CFG(CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN) \
  2974. CFG(CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK) \
  2975. CFG(CFG_LFR_ROAM_FT_OPEN_ENABLE) \
  2976. CFG(CFG_LFR_ROAM_FORCE_RSSI_TRIGGER) \
  2977. CFG(CFG_ROAM_SCAN_SCAN_POLICY) \
  2978. CFG(CFG_ROAM_SCAN_INACTIVITY_TIME) \
  2979. CFG(CFG_ROAM_SCAN_SECOND_TIMER) \
  2980. CFG(CFG_FT_IM_ROAMING) \
  2981. CFG(CFG_ROAM_INACTIVE_COUNT) \
  2982. CFG(CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD) \
  2983. CFG(CFG_ROAM_SCAN_INACTIVE_TIMER) \
  2984. CFG(CFG_BSS_LOAD_TRIG_5G_RSSI_THRES) \
  2985. CFG(CFG_BSS_LOAD_TRIG_2G_RSSI_THRES) \
  2986. CFG(CFG_LFR_FULL_ROAM_SCAN_REFRESH_PERIOD) \
  2987. ADAPTIVE_11R_ALL \
  2988. ROAM_OFFLOAD_ALL \
  2989. LFR_ESE_ALL \
  2990. LFR_SUBNET_DETECTION_ALL \
  2991. SAE_SINGLE_PMK_ALL \
  2992. ROAM_REASON_VSIE_ALL
  2993. #endif /* CFG_MLME_LFR_H__ */