cfg_mlme_lfr.h 80 KB

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