cfg_mlme_lfr.h 73 KB

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