cfg_mlme_lfr.h 69 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053
  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. * bss_load_trigger_5g_rssi_threshold/RoamCU_5GRSSIRange -
  1945. * Current AP minimum RSSI in dBm below
  1946. * which roaming can be triggered if BSS load exceeds bss_load_threshold.
  1947. * @Min: -120
  1948. * @Max: 0
  1949. * @Default: -70
  1950. *
  1951. * If connected AP is in 5Ghz, then consider bss load roam triggered only if
  1952. * load % > bss_load_threshold && connected AP rssi is worse than
  1953. * bss_load_trigger_5g_rssi_threshold
  1954. *
  1955. * Related: "bss_load_threshold"
  1956. *
  1957. * Supported Feature: Roaming
  1958. *
  1959. * Usage: Internal/External
  1960. *
  1961. * </ini>
  1962. */
  1963. #define CFG_BSS_LOAD_TRIG_5G_RSSI_THRES CFG_INI_INT( \
  1964. "bss_load_trigger_5g_rssi_threshold RoamCU_5GRSSIRange", \
  1965. -120, \
  1966. 0, \
  1967. -70, \
  1968. CFG_VALUE_OR_DEFAULT, \
  1969. "Minimum RSSI of current AP in 5GHz band for BSS load roam trigger")
  1970. /*
  1971. * <ini>
  1972. * bss_load_trigger_2g_rssi_threshold/RoamCU_24GRSSIRange -
  1973. * Current AP minimum RSSI in dBm below
  1974. * which roaming can be triggered if BSS load exceeds bss_load_threshold.
  1975. * @Min: -120
  1976. * @Max: 0
  1977. * @Default: -60
  1978. *
  1979. * If connected AP is in 2Ghz, then consider bss load roam triggered only if
  1980. * load % > bss_load_threshold && connected AP rssi is worse than
  1981. * bss_load_trigger_2g_rssi_threshold.
  1982. *
  1983. * Related: "bss_load_threshold"
  1984. *
  1985. * Supported Feature: Roaming
  1986. *
  1987. * Usage: Internal/External
  1988. *
  1989. * </ini>
  1990. */
  1991. #define CFG_BSS_LOAD_TRIG_2G_RSSI_THRES CFG_INI_INT( \
  1992. "bss_load_trigger_2g_rssi_threshold RoamCU_24GRSSIRange", \
  1993. -120, \
  1994. 0, \
  1995. -60, \
  1996. CFG_VALUE_OR_DEFAULT, \
  1997. "Minimum RSSI of current AP in 2.4GHz band for BSS load roam trigger")
  1998. /*
  1999. * <ini>
  2000. * ho_delay_for_rx - Delay hand-off (in msec) by this duration to receive
  2001. * pending rx frames from current BSS
  2002. * @Min: 0
  2003. * @Max: 200
  2004. * @Default: 0
  2005. *
  2006. * For LFR 3.0 roaming scenario, once roam candidate is found, firmware
  2007. * waits for minimum this much duration to receive pending rx frames from
  2008. * current BSS before switching to new channel for handoff to new AP.
  2009. *
  2010. * Related: None
  2011. *
  2012. * Supported Feature: Roaming
  2013. *
  2014. * Usage: External
  2015. *
  2016. * </ini>
  2017. */
  2018. #define CFG_LFR3_ROAM_HO_DELAY_FOR_RX CFG_INI_UINT( \
  2019. "ho_delay_for_rx", \
  2020. 0, \
  2021. 200, \
  2022. 0, \
  2023. CFG_VALUE_OR_DEFAULT, \
  2024. "Delay Hand-off by this duration to receive")
  2025. /*
  2026. * <ini>
  2027. * min_delay_btw_roam_scans - Min duration (in sec) allowed btw two
  2028. * consecutive roam scans
  2029. * @Min: 0
  2030. * @Max: 60
  2031. * @Default: 10
  2032. *
  2033. * Roam scan is not allowed if duration between two consecutive
  2034. * roam scans is less than this time.
  2035. *
  2036. * Related: None
  2037. *
  2038. * Supported Feature: Roaming
  2039. *
  2040. * Usage: External
  2041. *
  2042. * </ini>
  2043. */
  2044. #define CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN CFG_INI_UINT( \
  2045. "min_delay_btw_roam_scans", \
  2046. 0, \
  2047. 60, \
  2048. 10, \
  2049. CFG_VALUE_OR_DEFAULT, \
  2050. "Min duration")
  2051. /*
  2052. * <ini>
  2053. * roam_trigger_reason_bitmask - Contains roam_trigger_reasons
  2054. * @Min: 0
  2055. * @Max: 0xFFFFFFFF
  2056. * @Default: 0x10DA
  2057. *
  2058. * Bitmask containing roam_trigger_reasons for which
  2059. * min_delay_btw_roam_scans constraint should be applied.
  2060. * Currently supported bit positions are as follows:
  2061. * Bit 0 is reserved in the firmware.
  2062. * WMI_ROAM_TRIGGER_REASON_PER - 1
  2063. * WMI_ROAM_TRIGGER_REASON_BMISS - 2
  2064. * WMI_ROAM_TRIGGER_REASON_LOW_RSSI - 3
  2065. * WMI_ROAM_TRIGGER_REASON_HIGH_RSSI - 4
  2066. * WMI_ROAM_TRIGGER_REASON_PERIODIC - 5
  2067. * WMI_ROAM_TRIGGER_REASON_MAWC - 6
  2068. * WMI_ROAM_TRIGGER_REASON_DENSE - 7
  2069. * WMI_ROAM_TRIGGER_REASON_BACKGROUND - 8
  2070. * WMI_ROAM_TRIGGER_REASON_FORCED - 9
  2071. * WMI_ROAM_TRIGGER_REASON_BTM - 10
  2072. * WMI_ROAM_TRIGGER_REASON_UNIT_TEST - 11
  2073. * WMI_ROAM_TRIGGER_REASON_BSS_LOAD - 12
  2074. * WMI_ROAM_TRIGGER_REASON_DEAUTH - 13
  2075. * WMI_ROAM_TRIGGER_REASON_IDLE - 14
  2076. * WMI_ROAM_TRIGGER_REASON_MAX - 15
  2077. *
  2078. * For Ex: 0xDA (PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE)
  2079. *
  2080. * Related: None
  2081. *
  2082. * Supported Feature: Roaming
  2083. *
  2084. * Usage: External
  2085. *
  2086. * </ini>
  2087. */
  2088. #define CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK CFG_INI_UINT( \
  2089. "roam_trigger_reason_bitmask", \
  2090. 0, \
  2091. 0xFFFFFFFF, \
  2092. 0x10DA, \
  2093. CFG_VALUE_OR_DEFAULT, \
  2094. "Contains roam_trigger_reasons")
  2095. /*
  2096. * <ini>
  2097. * enable_ftopen - enable/disable FT open feature
  2098. * @Min: 0
  2099. * @Max: 1
  2100. * @Default: 1
  2101. *
  2102. * This INI is used to enable/disable FT open feature
  2103. *
  2104. * Related: None
  2105. *
  2106. * Supported Feature: Roaming
  2107. *
  2108. * Usage: External
  2109. *
  2110. * </ini>
  2111. */
  2112. #define CFG_LFR_ROAM_FT_OPEN_ENABLE CFG_INI_BOOL( \
  2113. "enable_ftopen", \
  2114. 1, \
  2115. "enable/disable FT open feature")
  2116. /*
  2117. * <ini>
  2118. * roam_force_rssi_trigger - To force RSSI trigger
  2119. * irrespective of channel list type
  2120. * @Min: 0
  2121. * @Max: 1
  2122. * @Default: 1
  2123. *
  2124. * This ini is used to set roam scan mode
  2125. * WMI_ROAM_SCAN_MODE_RSSI_CHANGE, irrespective of whether
  2126. * channel list type is CHANNEL_LIST_STATIC or not
  2127. *
  2128. * Related: None
  2129. *
  2130. * Supported Feature: Roaming
  2131. *
  2132. * Usage: External
  2133. *
  2134. * </ini>
  2135. */
  2136. #define CFG_LFR_ROAM_FORCE_RSSI_TRIGGER CFG_INI_BOOL( \
  2137. "roam_force_rssi_trigger", \
  2138. 1, \
  2139. "To force RSSI trigger")
  2140. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2141. /*
  2142. * <ini>
  2143. * gRoamOffloadEnabled - enable/disable roam offload feature
  2144. * @Min: 0
  2145. * @Max: 1
  2146. * @Default: 1
  2147. *
  2148. * This INI is used to enable/disable roam offload feature
  2149. *
  2150. * Related: None
  2151. *
  2152. * Supported Feature: Roaming
  2153. *
  2154. * Usage: External
  2155. *
  2156. * </ini>
  2157. */
  2158. #define CFG_LFR3_ROAMING_OFFLOAD CFG_INI_BOOL( \
  2159. "gRoamOffloadEnabled", \
  2160. 1, \
  2161. "enable roam offload")
  2162. /*
  2163. * <ini>
  2164. * enable_self_bss_roam - enable/disable roaming to self bss
  2165. * @Min: 0
  2166. * @Max: 1
  2167. * @Default: 1
  2168. *
  2169. * This INI is used to enable/disable roaming to already connected BSSID
  2170. *
  2171. * Related: None
  2172. *
  2173. * Supported Feature: Roaming
  2174. *
  2175. * Usage: Internal
  2176. *
  2177. * </ini>
  2178. */
  2179. #define CFG_LFR3_ENABLE_SELF_BSS_ROAM CFG_INI_BOOL( \
  2180. "enable_self_bss_roam", \
  2181. 1, \
  2182. "enable self bss roam")
  2183. /*
  2184. * <ini>
  2185. * enable_disconnect_roam_offload - Enable/Disable emergency roaming during
  2186. * deauth/disassoc
  2187. * @Min: 0 - Disabled
  2188. * @Max: 1 - Enabled
  2189. * @Default: 1
  2190. *
  2191. * When this ini is enabled firmware will trigger roam scan and roam to a new ap
  2192. * if candidate is found and it will not send the deauth/disassoc frame to
  2193. * the host driver.
  2194. * If roaming fails after this deauth, then firmware will send
  2195. * WMI_ROAM_REASON_DEAUTH event to the host. If roaming is successful, driver
  2196. * follows the normal roam synch event path.
  2197. *
  2198. * Supported Feature: Roaming
  2199. *
  2200. * Usage: Internal/External
  2201. *
  2202. * </ini>
  2203. */
  2204. #define CFG_LFR_ENABLE_DISCONNECT_ROAM CFG_INI_BOOL( \
  2205. "enable_disconnect_roam_offload", \
  2206. true, \
  2207. "Enable/Disable roaming on deauth/disassoc from AP")
  2208. /*
  2209. * <ini>
  2210. * enable_idle_roam - Enable/Disable idle roaming
  2211. * @Min: 0 - Disabled
  2212. * @Max: 1 - Enabled
  2213. * @Default: 0
  2214. *
  2215. * When this ini is enabled firmware will trigger roam scan and roam to a new
  2216. * ap if current connected AP rssi falls below the threshold. To consider the
  2217. * connection as idle, the following conditions should be met if this ini
  2218. * "enable_idle_roam" is enabled:
  2219. * 1. User space sends "SET SUSPENDMODE" command with value 0.
  2220. * 2. No TX/RX data for idle time configured via ini "idle_roam_inactive_time".
  2221. * 3. Connected AP rssi change doesn't exceed a specific delta value.
  2222. * (configured via ini idle_roam_rssi_delta)
  2223. * 4. Connected AP rssi falls below minimum rssi (configured via ini
  2224. * "idle_roam_min_rssi").
  2225. *
  2226. * Supported Feature: Roaming
  2227. *
  2228. * Usage: Internal/External
  2229. *
  2230. * </ini>
  2231. */
  2232. #define CFG_LFR_ENABLE_IDLE_ROAM CFG_INI_BOOL( \
  2233. "enable_idle_roam", \
  2234. false, \
  2235. "Enable/Disable idle roam")
  2236. /*
  2237. * <ini>
  2238. * idle_roam_rssi_delta/RoamIdle_RSSIVariation - This threshold is the criteria
  2239. * to decide whether DUT is idle or moving. If rssi delta is more than
  2240. * configured threshold then its considered as not idle. RSSI delta is entered
  2241. *in dBm. Idle roaming can be triggered if the connected AP rssi change exceeds
  2242. * or falls below the rssi delta and if other criteria of ini "enable_idle_roam"
  2243. * is met
  2244. * @Min: 0
  2245. * @Max: 50
  2246. * @Default: 3
  2247. *
  2248. * Related: enable_idle_roam
  2249. *
  2250. * Supported Feature: Roaming
  2251. *
  2252. * Usage: Internal/External
  2253. *
  2254. * </ini>
  2255. */
  2256. #define CFG_LFR_IDLE_ROAM_RSSI_DELTA CFG_INI_UINT( \
  2257. "idle_roam_rssi_delta RoamIdle_RSSIVariation", \
  2258. 0, \
  2259. 50, \
  2260. 3, \
  2261. CFG_VALUE_OR_DEFAULT, \
  2262. "Configure RSSI delta to start idle roam")
  2263. /*
  2264. * <ini>
  2265. * idle_roam_inactive_time - Time duration in millseconds for which the
  2266. * connection is idle.
  2267. * @Min: 0
  2268. * @Max: 0xFFFFFFFF
  2269. * @Default: 10000
  2270. *
  2271. * This ini is used to configure the time in seconds for which the connection
  2272. * candidate is idle and after which idle roam scan can be triggered if
  2273. * other criteria of ini "enable_idle_roam" is met.
  2274. *
  2275. * Related: enable_idle_roam
  2276. *
  2277. * Supported Feature: Roaming
  2278. *
  2279. * Usage: Internal/External
  2280. *
  2281. * </ini>
  2282. */
  2283. #define CFG_LFR_IDLE_ROAM_INACTIVE_TIME CFG_INI_UINT( \
  2284. "idle_roam_inactive_time", \
  2285. 0, \
  2286. 0xFFFFFFFF, \
  2287. 10000, \
  2288. CFG_VALUE_OR_DEFAULT, \
  2289. "Configure RSSI delta to start idle roam")
  2290. /*
  2291. * <ini>
  2292. * RoamIdle_InactiveTime - Time duration in seconds for which the
  2293. * connection is idle.
  2294. * @Min: 0
  2295. * @Max: 20
  2296. * @Default: 10
  2297. *
  2298. * This ini is used to configure the time in seconds for which the connection
  2299. * candidate is idle and after which idle roam scan can be triggered if
  2300. * other criteria of ini "enable_idle_roam" is met.
  2301. *
  2302. * Related: enable_idle_roam
  2303. *
  2304. * Supported Feature: Roaming
  2305. *
  2306. * Usage: Internal/External
  2307. *
  2308. * </ini>
  2309. */
  2310. #define CFG_ROAM_IDLE_INACTIVE_TIME CFG_INI_UINT( \
  2311. "RoamIdle_InactiveTime", \
  2312. 0, \
  2313. 20, \
  2314. 10, \
  2315. CFG_VALUE_OR_DEFAULT, \
  2316. "Configure RSSI delta to start idle roam")
  2317. /*
  2318. * <ini>
  2319. * idle_data_packet_count/RoamIdle_InactivePacketCount - No of tx/rx packets
  2320. * above which the connection is not idle.
  2321. * @Min: 0
  2322. * @Max: 0xFFFFFFFF
  2323. * @Default: 10
  2324. *
  2325. * This ini is used to configure the acceptable number of tx/rx packets below
  2326. * which the connection is idle. Ex: If idle_data_packet_count is 10
  2327. * and if the tx/rx packet count is less than 10, the connection is
  2328. * idle. If there are more than 10 packets, the connection is active one.
  2329. *
  2330. * Related: enable_idle_roam
  2331. *
  2332. * Supported Feature: Roaming
  2333. *
  2334. * Usage: Internal/External
  2335. *
  2336. * </ini>
  2337. */
  2338. #define CFG_LFR_IDLE_ROAM_PACKET_COUNT CFG_INI_UINT( \
  2339. "idle_data_packet_count RoamIdle_InactivePacketCount", \
  2340. 0, \
  2341. 0xFFFFFFFF, \
  2342. 10, \
  2343. CFG_VALUE_OR_DEFAULT, \
  2344. "Configure idle packet count")
  2345. /*
  2346. * <ini>
  2347. * idle_roam_min_rssi/RoamIdle_MinRSSI - Minimum RSSI of connected AP, below
  2348. * which idle roam scan can be triggered if other criteria of ini
  2349. * "enable_idle_roam" is met.
  2350. * @Min: -96
  2351. * @Max: 0
  2352. * @Default: -65
  2353. *
  2354. * Related: enable_idle_roam
  2355. *
  2356. * Supported Feature: Roaming
  2357. *
  2358. * Usage: Internal/External
  2359. *
  2360. * </ini>
  2361. */
  2362. #define CFG_LFR_IDLE_ROAM_MIN_RSSI CFG_INI_INT( \
  2363. "idle_roam_min_rssi RoamIdle_MinRSSI", \
  2364. -96, \
  2365. 0, \
  2366. -65, \
  2367. CFG_VALUE_OR_DEFAULT, \
  2368. "Configure idle roam minimum RSSI")
  2369. /*
  2370. * <ini>
  2371. * idle_roam_band/RoamIdle_TriggerBand - Band on which idle roam scan will be
  2372. * enabled
  2373. * @Min: 0
  2374. * @Max: 2
  2375. * @Default: 0
  2376. *
  2377. * Value 0 - Allow idle roam on both bands
  2378. * Value 1 - Allow idle roam only on 2G band
  2379. * Value 2 - Allow idle roam only on 5G band
  2380. *
  2381. * Related: enable_idle_roam
  2382. *
  2383. * Supported Feature: Roaming
  2384. *
  2385. * Usage: Internal/External
  2386. *
  2387. * </ini>
  2388. */
  2389. #define CFG_LFR_IDLE_ROAM_BAND CFG_INI_UINT( \
  2390. "idle_roam_band RoamIdle_TriggerBand", \
  2391. 0, \
  2392. 2, \
  2393. 0, \
  2394. CFG_VALUE_OR_DEFAULT, \
  2395. "Band on which idle roam needs to be enabled")
  2396. /*
  2397. * <ini>
  2398. * roam_triggers - Bitmap of roaming triggers. Setting this to
  2399. * zero will disable roaming altogether for the STA interface.
  2400. * ESS report element of beacon explores BSS information, for roaming station
  2401. * uses it to consider next AP to roam. ROAM_TRIGGER_REASON_ESS_RSSI bit is
  2402. * to enable/disable roam trigger for ESS RSSI reason. This bit of ini is also
  2403. * used for WFA certification.
  2404. * @Min: 0
  2405. * @Max: 0xFFFFFFFF
  2406. * @Default: 0x3FFFF
  2407. *
  2408. * ROAM_TRIGGER_REASON_PER BIT 1
  2409. * ROAM_TRIGGER_REASON_BMISS BIT 2
  2410. * ROAM_TRIGGER_REASON_LOW_RSSI BIT 3
  2411. * ROAM_TRIGGER_REASON_HIGH_RSSI BIT 4
  2412. * ROAM_TRIGGER_REASON_PERIODIC BIT 5
  2413. * ROAM_TRIGGER_REASON_MAWC BIT 6
  2414. * ROAM_TRIGGER_REASON_DENSE BIT 7
  2415. * ROAM_TRIGGER_REASON_BACKGROUND BIT 8
  2416. * ROAM_TRIGGER_REASON_FORCED BIT 9
  2417. * ROAM_TRIGGER_REASON_BTM BIT 10
  2418. * ROAM_TRIGGER_REASON_UNIT_TEST BIT 11
  2419. * ROAM_TRIGGER_REASON_BSS_LOAD BIT 12
  2420. * ROAM_TRIGGER_REASON_DEAUTH BIT 13
  2421. * ROAM_TRIGGER_REASON_IDLE BIT 14
  2422. * ROAM_TRIGGER_REASON_STA_KICKOUT BIT 15
  2423. * ROAM_TRIGGER_REASON_ESS_RSSI BIT 16
  2424. * ROAM_TRIGGER_REASON_WTC_BTM BIT 17
  2425. * ROAM_TRIGGER_REASON_PMK_TIMEOUT BIT 18
  2426. * ROAM_TRIGGER_REASON_BTC BIT 19
  2427. * ROAM_TRIGGER_REASON_MAX BIT 20
  2428. *
  2429. * Related: none
  2430. *
  2431. * Supported Feature: Roaming
  2432. *
  2433. * Usage: External
  2434. *
  2435. * </ini>
  2436. */
  2437. #define CFG_ROAM_TRIGGER_BITMAP CFG_INI_UINT( \
  2438. "roam_triggers", \
  2439. 0, \
  2440. 0xFFFFFFFF, \
  2441. 0x7FFFF, \
  2442. CFG_VALUE_OR_DEFAULT, \
  2443. "Bitmap of roaming triggers")
  2444. /*
  2445. * <ini>
  2446. * sta_disable_roam - Disable Roam on sta interface
  2447. * @Min: 0 - Roam Enabled on sta interface
  2448. * @Max: 0xffffffff - Roam Disabled on sta interface irrespective
  2449. * of other interface connections
  2450. * @Default: 0x00
  2451. *
  2452. * Disable roaming on STA iface to avoid audio glitches on p2p and ndp if
  2453. * those are in connected state. Each bit for "sta_disable_roam" INI represents
  2454. * an interface for which sta roaming can be disabled.
  2455. *
  2456. * LFR3_STA_ROAM_DISABLE_BY_P2P BIT(0)
  2457. * LFR3_STA_ROAM_DISABLE_BY_NAN BIT(1)
  2458. *
  2459. * Related: None.
  2460. *
  2461. * Supported Feature: ROAM
  2462. *
  2463. * Usage: Internal
  2464. *
  2465. * </ini>
  2466. */
  2467. #define CFG_STA_DISABLE_ROAM CFG_INI_UINT( \
  2468. "sta_disable_roam", \
  2469. 0, \
  2470. 0xffffffff, \
  2471. 0x00, \
  2472. CFG_VALUE_OR_DEFAULT, \
  2473. "disable roam on STA iface if one of the iface mentioned in default is in connected state")
  2474. /*
  2475. * <ini>
  2476. * enable_dual_sta_roam_offload - Enable roaming offload on both interfaces
  2477. * for STA + STA
  2478. * @Min: 0 - Dual STA Roam offload Disabled
  2479. * @Max: 1 - Dual STA Roam offload Enabled
  2480. * @Default: 1
  2481. *
  2482. * Enabling this ini will:
  2483. * a) Enforce the STA + STA connection be DBS if the hw is capable.
  2484. * b) Enable Roam Scan Offload on both the STA vdev.
  2485. * c) Enable firmware to support sequential roaming on both STA vdev
  2486. * if the firmware is capable of dual sta roaming.
  2487. *
  2488. * Related: None.
  2489. *
  2490. * Supported Feature: ROAM
  2491. *
  2492. * Usage: External
  2493. *
  2494. * </ini>
  2495. */
  2496. #define CFG_ENABLE_DUAL_STA_ROAM_OFFLOAD CFG_INI_UINT( \
  2497. "enable_dual_sta_roam_offload", \
  2498. false, \
  2499. true, \
  2500. true, \
  2501. CFG_VALUE_OR_DEFAULT, \
  2502. "Enable roam on both STA vdev")
  2503. #define ROAM_OFFLOAD_ALL \
  2504. CFG(CFG_LFR3_ROAMING_OFFLOAD) \
  2505. CFG(CFG_LFR3_ENABLE_SELF_BSS_ROAM) \
  2506. CFG(CFG_LFR_ENABLE_DISCONNECT_ROAM) \
  2507. CFG(CFG_LFR_ENABLE_IDLE_ROAM) \
  2508. CFG(CFG_LFR_IDLE_ROAM_RSSI_DELTA) \
  2509. CFG(CFG_LFR_IDLE_ROAM_INACTIVE_TIME) \
  2510. CFG(CFG_ROAM_IDLE_INACTIVE_TIME) \
  2511. CFG(CFG_LFR_IDLE_ROAM_PACKET_COUNT) \
  2512. CFG(CFG_LFR_IDLE_ROAM_MIN_RSSI) \
  2513. CFG(CFG_LFR_IDLE_ROAM_BAND) \
  2514. CFG(CFG_ROAM_TRIGGER_BITMAP) \
  2515. CFG(CFG_STA_DISABLE_ROAM) \
  2516. CFG(CFG_ENABLE_DUAL_STA_ROAM_OFFLOAD) \
  2517. #else
  2518. #define ROAM_OFFLOAD_ALL
  2519. #endif
  2520. #ifdef FEATURE_WLAN_ESE
  2521. /*
  2522. * <ini>
  2523. * EseEnabled - Enable ESE feature
  2524. * @Min: 0
  2525. * @Max: 1
  2526. * @Default: 0
  2527. *
  2528. * This ini is used to enable/disable ESE feature
  2529. *
  2530. * Related: None
  2531. *
  2532. * Supported Feature: Roaming
  2533. *
  2534. * Usage: External
  2535. *
  2536. * </ini>
  2537. */
  2538. #define CFG_LFR_ESE_FEATURE_ENABLED CFG_INI_BOOL( \
  2539. "EseEnabled", \
  2540. 0, \
  2541. "Enable ESE")
  2542. #define LFR_ESE_ALL CFG(CFG_LFR_ESE_FEATURE_ENABLED)
  2543. #else
  2544. #define LFR_ESE_ALL
  2545. #endif
  2546. #ifdef FEATURE_LFR_SUBNET_DETECTION
  2547. /*
  2548. * <ini>
  2549. * gLFRSubnetDetectionEnable - Enable LFR3 subnet detection
  2550. * @Min: 0
  2551. * @Max: 1
  2552. * @Default: 1
  2553. *
  2554. * Enable IP subnet detection during legacy fast roming version 3. Legacy fast
  2555. * roaming could roam across IP subnets without host processors' knowledge.
  2556. * This feature enables firmware to wake up the host processor if it
  2557. * successfully determines change in the IP subnet. Change in IP subnet could
  2558. * potentially cause disruption in IP connnectivity if IP address is not
  2559. * refreshed.
  2560. *
  2561. * Related: None
  2562. *
  2563. * Supported Feature: Roaming
  2564. *
  2565. * Usage: External
  2566. *
  2567. * </ini>
  2568. */
  2569. #define CFG_LFR3_ENABLE_SUBNET_DETECTION CFG_INI_BOOL( \
  2570. "gLFRSubnetDetectionEnable", \
  2571. 1, \
  2572. "Enable LFR3 subnet detection")
  2573. #define LFR_SUBNET_DETECTION_ALL CFG(CFG_LFR3_ENABLE_SUBNET_DETECTION)
  2574. #else
  2575. #define LFR_SUBNET_DETECTION_ALL
  2576. #endif
  2577. #if defined(WLAN_SAE_SINGLE_PMK) && defined(WLAN_FEATURE_ROAM_OFFLOAD)
  2578. /*
  2579. * <ini>
  2580. * sae_single_pmk_feature_enabled - Enable/disable sae single pmk feature.
  2581. * @Min: 0
  2582. * @Max: 1
  2583. * @Default: 1
  2584. *
  2585. * This INI is to enable/disable SAE Roaming with same PMK/PMKID feature support
  2586. *
  2587. * Related: None.
  2588. *
  2589. * Supported Feature: Roaming
  2590. *
  2591. * Usage: Internal
  2592. *
  2593. * </ini>
  2594. */
  2595. #define CFG_SAE_SINGLE_PMK CFG_INI_BOOL( \
  2596. "sae_single_pmk_feature_enabled", \
  2597. true, \
  2598. "Enable/disable SAE Roaming with single PMK/PMKID")
  2599. #define SAE_SINGLE_PMK_ALL CFG(CFG_SAE_SINGLE_PMK)
  2600. #else
  2601. #define SAE_SINGLE_PMK_ALL
  2602. #endif
  2603. #ifdef WLAN_ADAPTIVE_11R
  2604. /*
  2605. * <ini>
  2606. * adaptive_11r - Enable/disable adaptive 11r feature.
  2607. * @Min: 0
  2608. * @Max: 1
  2609. * @Default: 0
  2610. *
  2611. * Adaptive 11r feature enables the AP to support FT-AKM without
  2612. * configuring the FT-AKM in the network. The AP will advertise non-FT akm
  2613. * with a vendor specific IE having Adaptive 11r bit set to 1 in the IE data.
  2614. * The AP also advertises the MDE in beacon/probe response.
  2615. *
  2616. * STA should check the adaptive 11r capability if the AP advertises MDE in
  2617. * beacon/probe and adaptive 11r capability in vendor specific IE. If adaptive
  2618. * 11r capability is found, STA can advertise the FT equivalent of the non-FT
  2619. * AKM and connect with 11r protocol.
  2620. *
  2621. * Related: None.
  2622. *
  2623. * Supported Feature: Fast BSS Transition
  2624. *
  2625. * Usage: External
  2626. *
  2627. * </ini>
  2628. */
  2629. #define CFG_ADAPTIVE_11R CFG_INI_BOOL( \
  2630. "enable_adaptive_11r", \
  2631. false, \
  2632. "Enable/disable adaptive 11r support")
  2633. #define ADAPTIVE_11R_ALL CFG(CFG_ADAPTIVE_11R)
  2634. #else
  2635. #define ADAPTIVE_11R_ALL
  2636. #endif
  2637. /*
  2638. * <ini>
  2639. * roaming_scan_policy - To config roaming scan policy
  2640. * @Min: 0
  2641. * @Max: 1
  2642. * @Default: 0
  2643. *
  2644. * This ini is used to configure roaming scan behavior from HOST
  2645. * 0 : DBS scan
  2646. * 1 : Non-DBS scan
  2647. *
  2648. * Related: None
  2649. *
  2650. * Supported Feature: Roaming
  2651. *
  2652. * Usage: External
  2653. *
  2654. * </ini>
  2655. */
  2656. #define CFG_ROAM_SCAN_SCAN_POLICY CFG_INI_BOOL( \
  2657. "roaming_scan_policy", \
  2658. 0, \
  2659. "Config roam scan policy")
  2660. /*
  2661. * <ini>
  2662. * enable_ft_im_roaming - FW needs to perform FT initial moiblity association
  2663. * instead of FT roaming for deauth roam trigger
  2664. * @Min: 0
  2665. * @Max: 1
  2666. * @Default: 1
  2667. *
  2668. * This ini is used to FT roaming for deauth roam trigger behavior from HOST
  2669. * 0 - To disable FT-IM
  2670. * 1 - To enable FT-IM
  2671. *
  2672. * Related: None
  2673. *
  2674. * Supported Feature: Roaming
  2675. *
  2676. * Usage: Internal
  2677. *
  2678. * </ini>
  2679. */
  2680. #define CFG_FT_IM_ROAMING CFG_INI_BOOL( \
  2681. "enable_ft_im_roaming", \
  2682. 1, \
  2683. "FT roaming for deauth roam trigger")
  2684. /*
  2685. * <ini>
  2686. * roam_scan_inactivity_time - Device inactivity monitoring time in
  2687. * milliseconds for which the device is considered to be inactive with data
  2688. * packets count is less than configured roam_inactive_data_count.
  2689. *
  2690. * @Min: 0
  2691. * @Max: 0xFFFFFFFF
  2692. * @Default: 0
  2693. *
  2694. * The below three ini values are used to control the roam scan after the
  2695. * firmware gets empty roam scan results during periodic roam scans.
  2696. * 1. roam_scan_inactivity_time
  2697. * 2. roam_inactive_data_count
  2698. * 3. roam_scan_period_after_inactivity
  2699. * The first two ini "roam_scan_inactivity_time" and "roam_inactive_data_count"
  2700. * is frames the criteria to detect if the DUT is inactive. If the device is
  2701. * identified to be inactive based on the above two ini, then the value,
  2702. * "roam_scan_period_after_inactivity" will be used as periodic roam scan
  2703. * duration.
  2704. *
  2705. * Related: roam_inactive_data_count
  2706. *
  2707. * Supported Feature: Roaming
  2708. *
  2709. * Usage: External
  2710. *
  2711. * </ini>
  2712. */
  2713. #define CFG_ROAM_SCAN_INACTIVITY_TIME CFG_INI_UINT( \
  2714. "roam_scan_inactivity_time", \
  2715. 0, \
  2716. 0xFFFFFFFF, \
  2717. 0, \
  2718. CFG_VALUE_OR_DEFAULT, \
  2719. "Device inactivity monitoring time")
  2720. /*
  2721. * <ini>
  2722. * RoamScan_SecondTimer - Device inactivity monitoring time in
  2723. * seconds for which the device is considered to be inactive with data
  2724. * packets count is less than configured RoamScan_InactiveCount.
  2725. *
  2726. * @Min: 60
  2727. * @Max: 300
  2728. * @Default: 120
  2729. *
  2730. * The below three ini values are used to control the roam scan after the
  2731. * firmware gets empty roam scan results during periodic roam scans.
  2732. * 1. RoamScan_SecondTimer
  2733. * 2. RoamScan_InactiveCount
  2734. * 3. RoamScan_InactiveTimer
  2735. * The first two ini "RoamScan_SecondTimer" and "RoamScan_InactiveCount"
  2736. * is frames the criteria to detect if the DUT is inactive. If the device is
  2737. * identified to be inactive based on the above two ini, then the value,
  2738. * "RoamScan_InactiveTimer" will be used as periodic roam scan
  2739. * duration.
  2740. *
  2741. * Related: RoamScan_InactiveCount
  2742. *
  2743. * Supported Feature: Roaming
  2744. *
  2745. * Usage: External
  2746. *
  2747. * </ini>
  2748. */
  2749. #define CFG_ROAM_SCAN_SECOND_TIMER CFG_INI_UINT( \
  2750. "RoamScan_SecondTimer", \
  2751. 60, \
  2752. 300, \
  2753. 120, \
  2754. CFG_VALUE_OR_DEFAULT, \
  2755. "Device inactivity monitoring time")
  2756. /*
  2757. * <ini>
  2758. * roam_inactive_data_count/RoamScan_InactiveCount - Maximum allowed data
  2759. * packets count during roam_scan_inactivity_time.
  2760. *
  2761. * @Min: 0
  2762. * @Max: 0xFFFFFFFF
  2763. * @Default: 10
  2764. *
  2765. * The DUT is said to be inactive only if the data packets count
  2766. * during this roam_scan_inactivity_time is less than the configured
  2767. * roam_inactive_data_count.
  2768. *
  2769. * Related: roam_scan_inactivity_time
  2770. *
  2771. * Supported Feature: Roaming
  2772. *
  2773. * Usage: External
  2774. *
  2775. * </ini>
  2776. */
  2777. #define CFG_ROAM_INACTIVE_COUNT CFG_INI_UINT( \
  2778. "roam_inactive_data_count RoamScan_InactiveCount", \
  2779. 0, \
  2780. 0xFFFFFFFF, \
  2781. 10, \
  2782. CFG_VALUE_OR_DEFAULT, \
  2783. "Roam scan inactivity period data pkt count")
  2784. /*
  2785. * <ini>
  2786. * roam_scan_period_after_inactivity - Roam scan duration in ms after device is
  2787. * out of inactivity state.
  2788. *
  2789. * @Min: 0
  2790. * @Max: 0xFFFFFFFF
  2791. * @Default: 120000
  2792. *
  2793. * If there is empty scan results during roam scan, firmware will move to
  2794. * roam scan inactive state if roam_scan_inactivity and
  2795. * roam_inactive_data_count criteria are met.
  2796. * This ini is used to configure the roam scan duration in ms once the
  2797. * inactivity is finished and roam scan can be started.
  2798. *
  2799. * Related: roam_scan_inactivity_time, roam_inactive_data_count
  2800. *
  2801. * Supported Feature: Roaming
  2802. *
  2803. * Usage: External
  2804. *
  2805. * </ini>
  2806. */
  2807. #define CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD CFG_INI_UINT( \
  2808. "roam_scan_period_after_inactivity", \
  2809. 0, \
  2810. 0xFFFFFFFF, \
  2811. 120000, \
  2812. CFG_VALUE_OR_DEFAULT, \
  2813. "Roam scan period post inactivity")
  2814. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  2815. /*
  2816. * <ini>
  2817. * enable_roam_reason_vsie - Enable/Disable inclusion of Roam Reason
  2818. * in Re(association) frame
  2819. *
  2820. * @Min: 0
  2821. * @Max: 1
  2822. * @Default: 0
  2823. *
  2824. * This ini is used to enable fw to include/exclude roam reason vsie in
  2825. * Re(association)
  2826. *
  2827. * Related: None
  2828. *
  2829. * Supported Feature: Roaming
  2830. *
  2831. * Usage: internal
  2832. *
  2833. * </ini>
  2834. */
  2835. #define CFG_ENABLE_ROAM_REASON_VSIE CFG_INI_BOOL( \
  2836. "enable_roam_reason_vsie", \
  2837. 0, \
  2838. "To Enable enable_roam_reason_vsie")
  2839. #define ROAM_REASON_VSIE_ALL CFG(CFG_ENABLE_ROAM_REASON_VSIE)
  2840. #else
  2841. #define ROAM_REASON_VSIE_ALL
  2842. #endif
  2843. #define CFG_LFR_ALL \
  2844. CFG(CFG_LFR_MAWC_ROAM_ENABLED) \
  2845. CFG(CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD) \
  2846. CFG(CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD) \
  2847. CFG(CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST) \
  2848. CFG(CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST) \
  2849. CFG(CFG_LFR_ROAM_RSSI_ABS_THRESHOLD) \
  2850. CFG(CFG_LFR_5G_RSSI_THRESHOLD_OFFSET) \
  2851. CFG(CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY) \
  2852. CFG(CFG_LFR_EARLY_STOP_SCAN_ENABLE) \
  2853. CFG(CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD) \
  2854. CFG(CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD) \
  2855. CFG(CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD) \
  2856. CFG(CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET) \
  2857. CFG(CFG_LFR_ROAM_DENSE_MIN_APS) \
  2858. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD) \
  2859. CFG(CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP) \
  2860. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G) \
  2861. CFG(CFG_ROAM_DATA_RSSI_THRESHOLD_TRIGGERS) \
  2862. CFG(CFG_ROAM_DATA_RSSI_THRESHOLD) \
  2863. CFG(CFG_RX_DATA_INACTIVITY_TIME) \
  2864. CFG(CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE) \
  2865. CFG(CFG_LFR_PER_ROAM_ENABLE) \
  2866. CFG(CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH) \
  2867. CFG(CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH) \
  2868. CFG(CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT) \
  2869. CFG(CFG_LFR_PER_ROAM_REST_TIME) \
  2870. CFG(CFG_LFR_PER_ROAM_MONITOR_TIME) \
  2871. CFG(CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI) \
  2872. CFG(CFG_LFR3_ROAM_DISALLOW_DURATION) \
  2873. CFG(CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION) \
  2874. CFG(CFG_LFR3_ROAM_NUM_DISALLOWED_APS) \
  2875. CFG(CFG_LFR_ENABLE_5G_BAND_PREF) \
  2876. CFG(CFG_LFR_5G_RSSI_BOOST_THRESHOLD) \
  2877. CFG(CFG_LFR_5G_RSSI_BOOST_FACTOR) \
  2878. CFG(CFG_LFR_5G_MAX_RSSI_BOOST) \
  2879. CFG(CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD) \
  2880. CFG(CFG_LFR_5G_RSSI_PENALIZE_FACTOR) \
  2881. CFG(CFG_LFR_5G_MAX_RSSI_PENALIZE) \
  2882. CFG(CFG_LFR_MAX_NUM_PRE_AUTH) \
  2883. CFG(CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT) \
  2884. CFG(CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT) \
  2885. CFG(CFG_LFR_FEATURE_ENABLED) \
  2886. CFG(CFG_LFR_MAWC_FEATURE_ENABLED) \
  2887. CFG(CFG_LFR_FAST_TRANSITION_ENABLED) \
  2888. CFG(CFG_LFR_ROAM_RSSI_DIFF) \
  2889. CFG(CFG_LFR_ROAM_BG_RSSI_TH) \
  2890. CFG(CFG_LFR_ENABLE_WES_MODE) \
  2891. CFG(CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED) \
  2892. CFG(CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST) \
  2893. CFG(CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD) \
  2894. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD) \
  2895. CFG(CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD) \
  2896. CFG(CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF) \
  2897. CFG(CFG_LFR_ROAM_RESCAN_RSSI_DIFF) \
  2898. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME) \
  2899. CFG(CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME) \
  2900. CFG(CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD) \
  2901. CFG(CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD) \
  2902. CFG(CFG_ROAM_SCAN_FIRST_TIMER) \
  2903. CFG(CFG_LFR_ROAM_BMISS_FIRST_BCNT) \
  2904. CFG(CFG_LFR_ROAM_BMISS_FINAL_BCNT) \
  2905. CFG(CFG_LFR_ROAMING_DFS_CHANNEL) \
  2906. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT) \
  2907. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA) \
  2908. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY) \
  2909. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_UB) \
  2910. CFG(CFG_LFR_ROAM_PREFER_5GHZ) \
  2911. CFG(CFG_LFR_ROAM_INTRA_BAND) \
  2912. CFG(CFG_LFR_ROAM_SCAN_N_PROBES) \
  2913. CFG(CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME) \
  2914. CFG(CFG_LFR_DELAY_BEFORE_VDEV_STOP) \
  2915. CFG(CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM) \
  2916. CFG(CFG_BSS_LOAD_THRESHOLD) \
  2917. CFG(CFG_BSS_LOAD_SAMPLE_TIME) \
  2918. CFG(CFG_LFR3_ROAM_HO_DELAY_FOR_RX) \
  2919. CFG(CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN) \
  2920. CFG(CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK) \
  2921. CFG(CFG_LFR_ROAM_FT_OPEN_ENABLE) \
  2922. CFG(CFG_LFR_ROAM_FORCE_RSSI_TRIGGER) \
  2923. CFG(CFG_ROAM_SCAN_SCAN_POLICY) \
  2924. CFG(CFG_ROAM_SCAN_INACTIVITY_TIME) \
  2925. CFG(CFG_ROAM_SCAN_SECOND_TIMER) \
  2926. CFG(CFG_FT_IM_ROAMING) \
  2927. CFG(CFG_ROAM_INACTIVE_COUNT) \
  2928. CFG(CFG_POST_INACTIVITY_ROAM_SCAN_PERIOD) \
  2929. CFG(CFG_BSS_LOAD_TRIG_5G_RSSI_THRES) \
  2930. CFG(CFG_BSS_LOAD_TRIG_2G_RSSI_THRES) \
  2931. CFG(CFG_LFR_FULL_ROAM_SCAN_REFRESH_PERIOD) \
  2932. ADAPTIVE_11R_ALL \
  2933. ROAM_OFFLOAD_ALL \
  2934. LFR_ESE_ALL \
  2935. LFR_SUBNET_DETECTION_ALL \
  2936. SAE_SINGLE_PMK_ALL \
  2937. ROAM_REASON_VSIE_ALL
  2938. #endif /* CFG_MLME_LFR_H__ */