cfg_mlme_lfr.h 63 KB

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