cfg_mlme_lfr.h 62 KB

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