cfg_mlme_lfr.h 66 KB

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