cfg_mlme_lfr.h 72 KB

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