cfg_mlme_lfr.h 59 KB

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