cfg_mlme_lfr.h 63 KB

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