cfg_mlme_lfr.h 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235
  1. /*
  2. * Copyright (c) 2012-2019 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: 1
  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. 1, \
  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: -55
  841. * @Max: -70
  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. -55, \
  857. -70, \
  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: -65
  914. * @Max: -80
  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. -65, \
  930. -80, \
  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: 30
  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. 30, \
  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: 30
  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. 30, \
  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. * gEmptyScanRefreshPeriod - Set empty scan refresh period
  1422. * @Min: 0
  1423. * @Max: 60000
  1424. * @Default: 0
  1425. *
  1426. * This ini is used by firmware to set scan period in msecs
  1427. * following empty scan results.
  1428. *
  1429. * Related: None
  1430. *
  1431. * Supported Feature: LFR Scan
  1432. *
  1433. * Usage: External
  1434. *
  1435. * </ini>
  1436. */
  1437. #define CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD CFG_INI_UINT( \
  1438. "gEmptyScanRefreshPeriod", \
  1439. 0, \
  1440. 60000, \
  1441. 0, \
  1442. CFG_VALUE_OR_DEFAULT, \
  1443. "Empty scan refresh period")
  1444. /*
  1445. * <ini>
  1446. * gRoamBmissFirstBcnt - Beacon miss count to trigger 1st bmiss event
  1447. * @Min: 5
  1448. * @Max: 100
  1449. * @Default: 10
  1450. *
  1451. * This ini used to control how many beacon miss will trigger first bmiss
  1452. * event. First bmiss event will result in roaming scan.
  1453. *
  1454. * Related: None
  1455. *
  1456. * Usage: External
  1457. *
  1458. * </ini>
  1459. */
  1460. #define CFG_LFR_ROAM_BMISS_FIRST_BCNT CFG_INI_UINT( \
  1461. "gRoamBmissFirstBcnt", \
  1462. 5, \
  1463. 100, \
  1464. 10, \
  1465. CFG_VALUE_OR_DEFAULT, \
  1466. "First beacon miss count")
  1467. /*
  1468. * <ini>
  1469. * gRoamBmissFinalBcnt - Beacon miss count to trigger final bmiss event
  1470. * @Min: 5
  1471. * @Max: 100
  1472. * @Default: 20
  1473. *
  1474. * This ini used to control how many beacon miss will trigger final bmiss
  1475. * event. Final bmiss event will make roaming take place or cause the
  1476. * indication of final bmiss event.
  1477. *
  1478. * Related: None
  1479. *
  1480. * Usage: External
  1481. *
  1482. * </ini>
  1483. */
  1484. #define CFG_LFR_ROAM_BMISS_FINAL_BCNT CFG_INI_UINT( \
  1485. "gRoamBmissFinalBcnt", \
  1486. 5, \
  1487. 100, \
  1488. 20, \
  1489. CFG_VALUE_OR_DEFAULT, \
  1490. "Final beacon miss count")
  1491. /*
  1492. * <ini>
  1493. * gRoamBeaconRssiWeight - Set beacon miss weight
  1494. * @Min: 5
  1495. * @Max: 16
  1496. * @Default: 14
  1497. *
  1498. * This ini controls how many beacons' RSSI values will be used to calculate
  1499. * the average value of RSSI.
  1500. *
  1501. * Related: None
  1502. *
  1503. * Usage: External
  1504. *
  1505. * </ini>
  1506. */
  1507. #define CFG_LFR_ROAM_BEACON_RSSI_WEIGHT CFG_INI_UINT( \
  1508. "gRoamBeaconRssiWeight", \
  1509. 0, \
  1510. 16, \
  1511. 14, \
  1512. CFG_VALUE_OR_DEFAULT, \
  1513. "Beacon miss weight")
  1514. /*
  1515. * <ini>
  1516. * gAllowDFSChannelRoam - Allow dfs channel in roam
  1517. * @Min: 0
  1518. * @Max: 2
  1519. * @Default: 0
  1520. *
  1521. * This ini is used to set default dfs channel
  1522. *
  1523. * Related: None
  1524. *
  1525. * Supported Feature: STA
  1526. *
  1527. * Usage: Internal/External
  1528. *
  1529. * </ini>
  1530. */
  1531. #define CFG_LFR_ROAMING_DFS_CHANNEL CFG_INI_UINT( \
  1532. "gAllowDFSChannelRoam", \
  1533. 0, \
  1534. 2, \
  1535. 0, \
  1536. CFG_VALUE_OR_DEFAULT, \
  1537. "Allow dfs channel in roam")
  1538. /*
  1539. * <ini>
  1540. * gRoamScanHiRssiMaxCount - Sets 5GHz maximum scan count
  1541. * @Min: 0
  1542. * @Max: 10
  1543. * @Default: 3
  1544. *
  1545. * This INI is used to set maximum scan count in 5GHz
  1546. *
  1547. * Related: None
  1548. *
  1549. * Supported Feature: Roaming
  1550. *
  1551. * Usage: External
  1552. *
  1553. * </ini>
  1554. */
  1555. #define CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT CFG_INI_UINT( \
  1556. "gRoamScanHiRssiMaxCount", \
  1557. 0, \
  1558. 10, \
  1559. 3, \
  1560. CFG_VALUE_OR_DEFAULT, \
  1561. "5GHz maximum scan count")
  1562. /*
  1563. * <ini>
  1564. * gRoamScanHiRssiDelta - Sets RSSI Delta for scan trigger
  1565. * @Min: 0
  1566. * @Max: 16
  1567. * @Default: 10
  1568. *
  1569. * This INI is used to set change in RSSI at which scan is triggered
  1570. * in 5GHz.
  1571. *
  1572. * Related: None
  1573. *
  1574. * Supported Feature: Roaming
  1575. *
  1576. * Usage: External
  1577. *
  1578. * </ini>
  1579. */
  1580. #define CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA CFG_INI_UINT( \
  1581. "gRoamScanHiRssiDelta", \
  1582. 0, \
  1583. 16, \
  1584. 10, \
  1585. CFG_VALUE_OR_DEFAULT, \
  1586. "RSSI Delta for scan trigger")
  1587. /*
  1588. * <ini>
  1589. * gRoamScanHiRssiDelay - Sets minimum delay between 5GHz scans
  1590. * @Min: 5000
  1591. * @Max: 0x7fffffff
  1592. * @Default: 15000
  1593. *
  1594. * This INI is used to set the minimum delay between 5GHz scans.
  1595. *
  1596. * Related: None
  1597. *
  1598. * Supported Feature: Roaming
  1599. *
  1600. * Usage: External
  1601. *
  1602. * </ini>
  1603. */
  1604. #define CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY CFG_INI_UINT( \
  1605. "gRoamScanHiRssiDelay", \
  1606. 5000, \
  1607. 0x7fffffff, \
  1608. 15000, \
  1609. CFG_VALUE_OR_DEFAULT, \
  1610. "Minimum delay between 5GHz scans")
  1611. /*
  1612. * <ini>
  1613. * gRoamScanHiRssiUpperBound - Sets upper bound after which 5GHz scan
  1614. * @Min: -66
  1615. * @Max: 0
  1616. * @Default: -30
  1617. *
  1618. * This INI is used to set the RSSI upper bound above which the 5GHz scan
  1619. * will not be performed.
  1620. *
  1621. * Related: None
  1622. *
  1623. * Supported Feature: Roaming
  1624. *
  1625. * Usage: External
  1626. *
  1627. * </ini>
  1628. */
  1629. #define CFG_LFR_ROAM_SCAN_HI_RSSI_UB CFG_INI_INT( \
  1630. "gRoamScanHiRssiUpperBound", \
  1631. -66, \
  1632. 0, \
  1633. -30, \
  1634. CFG_VALUE_OR_DEFAULT, \
  1635. "Upper bound after which 5GHz scan")
  1636. /*
  1637. * <ini>
  1638. * gRoamPrefer5GHz - Prefer roaming to 5GHz Bss
  1639. * @Min: 0
  1640. * @Max: 1
  1641. * @Default: 1
  1642. *
  1643. * This ini is used to inform FW to prefer roaming to 5GHz BSS
  1644. *
  1645. * Related: None
  1646. *
  1647. * Supported Feature: Roaming
  1648. *
  1649. * Usage: External
  1650. *
  1651. * </ini>
  1652. */
  1653. #define CFG_LFR_ROAM_PREFER_5GHZ CFG_INI_BOOL( \
  1654. "gRoamPrefer5GHz", \
  1655. 1, \
  1656. "Prefer roaming to 5GHz Bss")
  1657. /*
  1658. * <ini>
  1659. * gRoamIntraBand - Prefer roaming within Band
  1660. * @Min: 0
  1661. * @Max: 1
  1662. * @Default: 0
  1663. *
  1664. * This ini is used to inform FW to prefer roaming within band
  1665. *
  1666. * Related: None
  1667. *
  1668. * Supported Feature: Roaming
  1669. *
  1670. * Usage: External
  1671. *
  1672. * </ini>
  1673. */
  1674. #define CFG_LFR_ROAM_INTRA_BAND CFG_INI_BOOL( \
  1675. "gRoamIntraBand", \
  1676. 0, \
  1677. "Prefer roaming within Band")
  1678. /*
  1679. * <ini>
  1680. * gRoamScanNProbes - Sets the number of probes to be sent for firmware roaming
  1681. * @Min: 1
  1682. * @Max: 10
  1683. * @Default: 2
  1684. *
  1685. * This INI is used to set the maximum number of probes the firmware can send
  1686. * for firmware internal roaming cases.
  1687. *
  1688. * Related: None
  1689. *
  1690. * Supported Feature: Roaming
  1691. *
  1692. * Usage: External
  1693. *
  1694. * </ini>
  1695. */
  1696. #define CFG_LFR_ROAM_SCAN_N_PROBES CFG_INI_UINT( \
  1697. "gRoamScanNProbes", \
  1698. 1, \
  1699. 10, \
  1700. 2, \
  1701. CFG_VALUE_OR_DEFAULT, \
  1702. "The number of probes to be sent for firmware roaming")
  1703. /*
  1704. * <ini>
  1705. * gRoamScanHomeAwayTime - Sets the Home Away Time to firmware
  1706. * @Min: 0
  1707. * @Max: 300
  1708. * @Default: 0
  1709. *
  1710. * Home Away Time should be at least equal to (gNeighborScanChannelMaxTime
  1711. * + (2*RFS)), where RFS is the RF Switching time(3). It is twice RFS
  1712. * to consider the time to go off channel and return to the home channel.
  1713. *
  1714. * Related: gNeighborScanChannelMaxTime
  1715. *
  1716. * Supported Feature: Roaming
  1717. *
  1718. * Usage: External
  1719. *
  1720. * </ini>
  1721. */
  1722. #define CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME CFG_INI_UINT( \
  1723. "gRoamScanHomeAwayTime", \
  1724. 0, \
  1725. 300, \
  1726. 0, \
  1727. CFG_VALUE_OR_DEFAULT, \
  1728. "the home away time to firmware")
  1729. /*
  1730. * <ini>
  1731. * gDelayBeforeVdevStop - wait time for tx complete before vdev stop
  1732. * @Min: 2
  1733. * @Max: 200
  1734. * @Default: 20
  1735. *
  1736. * This INI is used to set wait time for tx complete before vdev stop.
  1737. *
  1738. * Related: None
  1739. *
  1740. * Usage: External
  1741. *
  1742. * </ini>
  1743. */
  1744. #define CFG_LFR_DELAY_BEFORE_VDEV_STOP CFG_INI_UINT( \
  1745. "gDelayBeforeVdevStop", \
  1746. 2, \
  1747. 200, \
  1748. 20, \
  1749. CFG_VALUE_OR_DEFAULT, \
  1750. "wait time for tx complete before vdev stop")
  1751. /*
  1752. * <ini>
  1753. * enable_bss_load_roam_trigger - enable/disable bss load based roam trigger
  1754. * @Min: 0
  1755. * @Max: 1
  1756. * @Default: 0
  1757. *
  1758. * This ini when enabled, allows the firmware to roam when bss load outpaces
  1759. * the configured bss load threshold. When this ini is disabled, firmware
  1760. * doesn't consider bss load values to trigger roam.
  1761. *
  1762. * Related: None
  1763. *
  1764. * Supported Feature: Roaming
  1765. *
  1766. * Usage: External
  1767. *
  1768. * </ini>
  1769. */
  1770. #define CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM CFG_INI_BOOL( \
  1771. "enable_bss_load_roam_trigger", \
  1772. 0, \
  1773. "enable bss load triggered roaming")
  1774. /*
  1775. * <ini>
  1776. * bss_load_threshold - bss load above which the STA should trigger roaming
  1777. * @Min: 0
  1778. * @Max: 100
  1779. * @Default: 70
  1780. *
  1781. * When the bss laod value that is sampled exceeds this threshold, firmware
  1782. * will trigger roaming if bss load trigger is enabled.
  1783. *
  1784. * Related: None
  1785. *
  1786. * Supported Feature: Roaming
  1787. *
  1788. * Usage: External
  1789. *
  1790. * </ini>
  1791. */
  1792. #define CFG_BSS_LOAD_THRESHOLD CFG_INI_UINT( \
  1793. "bss_load_threshold", \
  1794. 0, \
  1795. 100, \
  1796. 70, \
  1797. CFG_VALUE_OR_DEFAULT, \
  1798. "bss load threshold")
  1799. /*
  1800. * <ini>
  1801. * bss_load_sample_time - Time in milliseconds for which the bss load values
  1802. * obtained from the beacons is sampled.
  1803. * @Min: 0
  1804. * @Max: 0xffffffff
  1805. * @Default: 10000
  1806. *
  1807. * Related: None
  1808. *
  1809. * Supported Feature: Roaming
  1810. *
  1811. * Usage: External
  1812. *
  1813. * </ini>
  1814. */
  1815. #define CFG_BSS_LOAD_SAMPLE_TIME CFG_INI_UINT( \
  1816. "bss_load_sample_time", \
  1817. 0, \
  1818. 0xffffffff, \
  1819. 10000, \
  1820. CFG_VALUE_OR_DEFAULT, \
  1821. "bss load sampling time")
  1822. /*
  1823. * <ini>
  1824. * ho_delay_for_rx - Delay hand-off (in msec) by this duration to receive
  1825. * pending rx frames from current BSS
  1826. * @Min: 0
  1827. * @Max: 200
  1828. * @Default: 0
  1829. *
  1830. * For LFR 3.0 roaming scenario, once roam candidate is found, firmware
  1831. * waits for minimum this much duration to receive pending rx frames from
  1832. * current BSS before switching to new channel for handoff to new AP.
  1833. *
  1834. * Related: None
  1835. *
  1836. * Supported Feature: Roaming
  1837. *
  1838. * Usage: External
  1839. *
  1840. * </ini>
  1841. */
  1842. #define CFG_LFR3_ROAM_HO_DELAY_FOR_RX CFG_INI_UINT( \
  1843. "ho_delay_for_rx", \
  1844. 0, \
  1845. 200, \
  1846. 0, \
  1847. CFG_VALUE_OR_DEFAULT, \
  1848. "Delay Hand-off by this duration to receive")
  1849. /*
  1850. * <ini>
  1851. * min_delay_btw_roam_scans - Min duration (in sec) allowed btw two
  1852. * consecutive roam scans
  1853. * @Min: 0
  1854. * @Max: 60
  1855. * @Default: 10
  1856. *
  1857. * Roam scan is not allowed if duration between two consecutive
  1858. * roam scans is less than this time.
  1859. *
  1860. * Related: None
  1861. *
  1862. * Supported Feature: Roaming
  1863. *
  1864. * Usage: External
  1865. *
  1866. * </ini>
  1867. */
  1868. #define CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN CFG_INI_UINT( \
  1869. "min_delay_btw_roam_scans", \
  1870. 0, \
  1871. 60, \
  1872. 10, \
  1873. CFG_VALUE_OR_DEFAULT, \
  1874. "Min duration")
  1875. /*
  1876. * <ini>
  1877. * roam_trigger_reason_bitmask - Contains roam_trigger_reasons
  1878. * @Min: 0
  1879. * @Max: 0xFFFFFFFF
  1880. * @Default: 0x10DA
  1881. *
  1882. * Bitmask containing roam_trigger_reasons for which
  1883. * min_delay_btw_roam_scans constraint should be applied.
  1884. * Currently supported bit positions are as follows:
  1885. * Bit 0 is reserved in the firmware.
  1886. * WMI_ROAM_TRIGGER_REASON_PER - 1
  1887. * WMI_ROAM_TRIGGER_REASON_BMISS - 2
  1888. * WMI_ROAM_TRIGGER_REASON_LOW_RSSI - 3
  1889. * WMI_ROAM_TRIGGER_REASON_HIGH_RSSI - 4
  1890. * WMI_ROAM_TRIGGER_REASON_PERIODIC - 5
  1891. * WMI_ROAM_TRIGGER_REASON_MAWC - 6
  1892. * WMI_ROAM_TRIGGER_REASON_DENSE - 7
  1893. * WMI_ROAM_TRIGGER_REASON_BACKGROUND - 8
  1894. * WMI_ROAM_TRIGGER_REASON_FORCED - 9
  1895. * WMI_ROAM_TRIGGER_REASON_BTM - 10
  1896. * WMI_ROAM_TRIGGER_REASON_UNIT_TEST - 11
  1897. * WMI_ROAM_TRIGGER_REASON_BSS_LOAD - 12
  1898. * WMI_ROAM_TRIGGER_REASON_MAX - 13
  1899. *
  1900. * For Ex: 0xDA (PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE)
  1901. *
  1902. * Related: None
  1903. *
  1904. * Supported Feature: Roaming
  1905. *
  1906. * Usage: External
  1907. *
  1908. * </ini>
  1909. */
  1910. #define CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK CFG_INI_UINT( \
  1911. "roam_trigger_reason_bitmask", \
  1912. 0, \
  1913. 0xFFFFFFFF, \
  1914. 0x10DA, \
  1915. CFG_VALUE_OR_DEFAULT, \
  1916. "Contains roam_trigger_reasons")
  1917. /*
  1918. * <ini>
  1919. * enable_ftopen - enable/disable FT open feature
  1920. * @Min: 0
  1921. * @Max: 1
  1922. * @Default: 1
  1923. *
  1924. * This INI is used to enable/disable FT open feature
  1925. *
  1926. * Related: None
  1927. *
  1928. * Supported Feature: Roaming
  1929. *
  1930. * Usage: External
  1931. *
  1932. * </ini>
  1933. */
  1934. #define CFG_LFR_ROAM_FT_OPEN_ENABLE CFG_INI_BOOL( \
  1935. "enable_ftopen", \
  1936. 1, \
  1937. "enable/disable FT open feature")
  1938. /*
  1939. * <ini>
  1940. * roam_force_rssi_trigger - To force RSSI trigger
  1941. * irrespective of channel list type
  1942. * @Min: 0
  1943. * @Max: 1
  1944. * @Default: 1
  1945. *
  1946. * This ini is used to set roam scan mode
  1947. * WMI_ROAM_SCAN_MODE_RSSI_CHANGE, irrespective of whether
  1948. * channel list type is CHANNEL_LIST_STATIC or not
  1949. *
  1950. * Related: None
  1951. *
  1952. * Supported Feature: Roaming
  1953. *
  1954. * Usage: External
  1955. *
  1956. * </ini>
  1957. */
  1958. #define CFG_LFR_ROAM_FORCE_RSSI_TRIGGER CFG_INI_BOOL( \
  1959. "roam_force_rssi_trigger", \
  1960. 1, \
  1961. "To force RSSI trigger")
  1962. #ifdef WLAN_FEATURE_ROAM_OFFLOAD
  1963. /*
  1964. * <ini>
  1965. * gRoamOffloadEnabled - enable/disable roam offload feature
  1966. * @Min: 0
  1967. * @Max: 1
  1968. * @Default: 1
  1969. *
  1970. * This INI is used to enable/disable roam offload feature
  1971. *
  1972. * Related: None
  1973. *
  1974. * Supported Feature: Roaming
  1975. *
  1976. * Usage: External
  1977. *
  1978. * </ini>
  1979. */
  1980. #define CFG_LFR3_ROAMING_OFFLOAD CFG_INI_BOOL( \
  1981. "gRoamOffloadEnabled", \
  1982. 1, \
  1983. "enable roam offload")
  1984. #define ROAM_OFFLOAD_ALL CFG(CFG_LFR3_ROAMING_OFFLOAD)
  1985. #else
  1986. #define ROAM_OFFLOAD_ALL
  1987. #endif
  1988. #ifdef FEATURE_WLAN_ESE
  1989. /*
  1990. * <ini>
  1991. * EseEnabled - Enable ESE feature
  1992. * @Min: 0
  1993. * @Max: 1
  1994. * @Default: 0
  1995. *
  1996. * This ini is used to enable/disable ESE feature
  1997. *
  1998. * Related: None
  1999. *
  2000. * Supported Feature: Roaming
  2001. *
  2002. * Usage: External
  2003. *
  2004. * </ini>
  2005. */
  2006. #define CFG_LFR_ESE_FEATURE_ENABLED CFG_INI_BOOL( \
  2007. "EseEnabled", \
  2008. 0, \
  2009. "Enable ESE")
  2010. #define LFR_ESE_ALL CFG(CFG_LFR_ESE_FEATURE_ENABLED)
  2011. #else
  2012. #define LFR_ESE_ALL
  2013. #endif
  2014. #ifdef FEATURE_LFR_SUBNET_DETECTION
  2015. /*
  2016. * <ini>
  2017. * gLFRSubnetDetectionEnable - Enable LFR3 subnet detection
  2018. * @Min: 0
  2019. * @Max: 1
  2020. * @Default: 1
  2021. *
  2022. * Enable IP subnet detection during legacy fast roming version 3. Legacy fast
  2023. * roaming could roam across IP subnets without host processors' knowledge.
  2024. * This feature enables firmware to wake up the host processor if it
  2025. * successfully determines change in the IP subnet. Change in IP subnet could
  2026. * potentially cause disruption in IP connnectivity if IP address is not
  2027. * refreshed.
  2028. *
  2029. * Related: None
  2030. *
  2031. * Supported Feature: Roaming
  2032. *
  2033. * Usage: External
  2034. *
  2035. * </ini>
  2036. */
  2037. #define CFG_LFR3_ENABLE_SUBNET_DETECTION CFG_INI_BOOL( \
  2038. "gLFRSubnetDetectionEnable", \
  2039. 1, \
  2040. "Enable LFR3 subnet detection")
  2041. #define LFR_SUBNET_DETECTION_ALL CFG(CFG_LFR3_ENABLE_SUBNET_DETECTION)
  2042. #else
  2043. #define LFR_SUBNET_DETECTION_ALL
  2044. #endif
  2045. /*
  2046. * <ini>
  2047. * roaming_scan_policy - To config roaming scan policy
  2048. * @Min: 0
  2049. * @Max: 1
  2050. * @Default: 0
  2051. *
  2052. * This ini is used to configure roaming scan behavior from HOST
  2053. * 0 : DBS scan
  2054. * 1 : Non-DBS scan
  2055. *
  2056. * Related: None
  2057. *
  2058. * Supported Feature: Roaming
  2059. *
  2060. * Usage: External
  2061. *
  2062. * </ini>
  2063. */
  2064. #define CFG_ROAM_SCAN_SCAN_POLICY CFG_INI_BOOL( \
  2065. "roaming_scan_policy", \
  2066. 0, \
  2067. "Config roam scan policy")
  2068. #define CFG_LFR_ALL \
  2069. CFG(CFG_LFR_MAWC_ROAM_ENABLED) \
  2070. CFG(CFG_LFR_MAWC_ROAM_TRAFFIC_THRESHOLD) \
  2071. CFG(CFG_LFR_MAWC_ROAM_AP_RSSI_THRESHOLD) \
  2072. CFG(CFG_LFR_MAWC_ROAM_RSSI_HIGH_ADJUST) \
  2073. CFG(CFG_LFR_MAWC_ROAM_RSSI_LOW_ADJUST) \
  2074. CFG(CFG_LFR_ROAM_RSSI_ABS_THRESHOLD) \
  2075. CFG(CFG_LFR_5G_RSSI_THRESHOLD_OFFSET) \
  2076. CFG(CFG_LFR_ENABLE_FAST_ROAM_IN_CONCURRENCY) \
  2077. CFG(CFG_LFR_EARLY_STOP_SCAN_ENABLE) \
  2078. CFG(CFG_LFR_EARLY_STOP_SCAN_MIN_THRESHOLD) \
  2079. CFG(CFG_LFR_EARLY_STOP_SCAN_MAX_THRESHOLD) \
  2080. CFG(CFG_LFR_FIRST_SCAN_BUCKET_THRESHOLD) \
  2081. CFG(CFG_LFR_ROAM_DENSE_TRAFFIC_THRESHOLD) \
  2082. CFG(CFG_LFR_ROAM_DENSE_RSSI_THRE_OFFSET) \
  2083. CFG(CFG_LFR_ROAM_DENSE_MIN_APS) \
  2084. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_THRESHOLD) \
  2085. CFG(CFG_LFR_ROAM_BG_SCAN_CLIENT_BITMAP) \
  2086. CFG(CFG_LFR_ROAM_BG_SCAN_BAD_RSSI_OFFSET_2G) \
  2087. CFG(CFG_LFR_ADAPTIVE_ROAMSCAN_DWELL_MODE) \
  2088. CFG(CFG_LFR_PER_ROAM_ENABLE) \
  2089. CFG(CFG_LFR_PER_ROAM_CONFIG_HIGH_RATE_TH) \
  2090. CFG(CFG_LFR_PER_ROAM_CONFIG_LOW_RATE_TH) \
  2091. CFG(CFG_LFR_PER_ROAM_CONFIG_RATE_TH_PERCENT) \
  2092. CFG(CFG_LFR_PER_ROAM_REST_TIME) \
  2093. CFG(CFG_LFR_PER_ROAM_MONITOR_TIME) \
  2094. CFG(CFG_LFR_PER_ROAM_MIN_CANDIDATE_RSSI) \
  2095. CFG(CFG_LFR3_ROAM_DISALLOW_DURATION) \
  2096. CFG(CFG_LFR3_ROAM_RSSI_CHANNEL_PENALIZATION) \
  2097. CFG(CFG_LFR3_ROAM_NUM_DISALLOWED_APS) \
  2098. CFG(CFG_LFR_ENABLE_5G_BAND_PREF) \
  2099. CFG(CFG_LFR_5G_RSSI_BOOST_THRESHOLD) \
  2100. CFG(CFG_LFR_5G_RSSI_BOOST_FACTOR) \
  2101. CFG(CFG_LFR_5G_MAX_RSSI_BOOST) \
  2102. CFG(CFG_LFR_5G_RSSI_PENALIZE_THRESHOLD) \
  2103. CFG(CFG_LFR_5G_RSSI_PENALIZE_FACTOR) \
  2104. CFG(CFG_LFR_5G_MAX_RSSI_PENALIZE) \
  2105. CFG(CFG_LFR_MAX_NUM_PRE_AUTH) \
  2106. CFG(CFG_LFR3_ROAM_PREAUTH_RETRY_COUNT) \
  2107. CFG(CFG_LFR3_ROAM_PREAUTH_NO_ACK_TIMEOUT) \
  2108. CFG(CFG_LFR_FEATURE_ENABLED) \
  2109. CFG(CFG_LFR_MAWC_FEATURE_ENABLED) \
  2110. CFG(CFG_LFR_FAST_TRANSITION_ENABLED) \
  2111. CFG(CFG_LFR_ROAM_RSSI_DIFF) \
  2112. CFG(CFG_LFR_ENABLE_WES_MODE) \
  2113. CFG(CFG_LFR_ROAM_SCAN_OFFLOAD_ENABLED) \
  2114. CFG(CFG_LFR_NEIGHBOR_SCAN_CHANNEL_LIST) \
  2115. CFG(CFG_LFR_NEIGHBOR_SCAN_TIMER_PERIOD) \
  2116. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_TIMER_PERIOD) \
  2117. CFG(CFG_LFR_NEIGHBOR_LOOKUP_RSSI_THRESHOLD) \
  2118. CFG(CFG_LFR_OPPORTUNISTIC_SCAN_THRESHOLD_DIFF) \
  2119. CFG(CFG_LFR_ROAM_RESCAN_RSSI_DIFF) \
  2120. CFG(CFG_LFR_NEIGHBOR_SCAN_MIN_CHAN_TIME) \
  2121. CFG(CFG_LFR_NEIGHBOR_SCAN_MAX_CHAN_TIME) \
  2122. CFG(CFG_LFR_NEIGHBOR_SCAN_RESULTS_REFRESH_PERIOD) \
  2123. CFG(CFG_LFR_EMPTY_SCAN_REFRESH_PERIOD) \
  2124. CFG(CFG_LFR_ROAM_BMISS_FIRST_BCNT) \
  2125. CFG(CFG_LFR_ROAM_BMISS_FINAL_BCNT) \
  2126. CFG(CFG_LFR_ROAM_BEACON_RSSI_WEIGHT) \
  2127. CFG(CFG_LFR_ROAMING_DFS_CHANNEL) \
  2128. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_MAXCOUNT) \
  2129. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELTA) \
  2130. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_DELAY) \
  2131. CFG(CFG_LFR_ROAM_SCAN_HI_RSSI_UB) \
  2132. CFG(CFG_LFR_ROAM_PREFER_5GHZ) \
  2133. CFG(CFG_LFR_ROAM_INTRA_BAND) \
  2134. CFG(CFG_LFR_ROAM_SCAN_N_PROBES) \
  2135. CFG(CFG_LFR_ROAM_SCAN_HOME_AWAY_TIME) \
  2136. CFG(CFG_LFR_DELAY_BEFORE_VDEV_STOP) \
  2137. CFG(CFG_ENABLE_BSS_LOAD_TRIGGERED_ROAM) \
  2138. CFG(CFG_BSS_LOAD_THRESHOLD) \
  2139. CFG(CFG_BSS_LOAD_SAMPLE_TIME) \
  2140. CFG(CFG_LFR3_ROAM_HO_DELAY_FOR_RX) \
  2141. CFG(CFG_LFR_MIN_DELAY_BTW_ROAM_SCAN) \
  2142. CFG(CFG_LFR_ROAM_SCAN_TRIGGER_REASON_BITMASK) \
  2143. CFG(CFG_LFR_ROAM_FT_OPEN_ENABLE) \
  2144. CFG(CFG_LFR_ROAM_FORCE_RSSI_TRIGGER) \
  2145. CFG(CFG_ROAM_SCAN_SCAN_POLICY) \
  2146. ROAM_OFFLOAD_ALL \
  2147. LFR_ESE_ALL \
  2148. LFR_SUBNET_DETECTION_ALL
  2149. #endif /* CFG_MLME_LFR_H__ */