cfg_mlme_lfr.h 66 KB

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