cfg_mlme_generic.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. /*
  2. * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /**
  19. * DOC: This file contains centralized definitions of converged configuration.
  20. */
  21. #ifndef __CFG_MLME_GENERIC_H
  22. #define __CFG_MLME_GENERIC_H
  23. #ifdef WLAN_FEATURE_11W
  24. #define CFG_PMF_SA_QUERY_MAX_RETRIES_TYPE CFG_INI_UINT
  25. #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_TYPE CFG_INI_UINT
  26. #else
  27. #define CFG_PMF_SA_QUERY_MAX_RETRIES_TYPE CFG_UINT
  28. #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_TYPE CFG_UINT
  29. #endif /*WLAN_FEATURE_11W*/
  30. /**
  31. * enum monitor_mode_concurrency - Monitor mode concurrency
  32. * @MONITOR_MODE_CONC_NO_SUPPORT: No concurrency supported with monitor mode
  33. * @MONITOR_MODE_CONC_STA_SCAN_MON: STA + monitor mode concurrency is supported
  34. */
  35. enum monitor_mode_concurrency {
  36. MONITOR_MODE_CONC_NO_SUPPORT,
  37. MONITOR_MODE_CONC_STA_SCAN_MON,
  38. MONITOR_MODE_CONC_AFTER_LAST,
  39. MONITOR_MODE_CONC_MAX = MONITOR_MODE_CONC_AFTER_LAST - 1,
  40. };
  41. /*
  42. * pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
  43. * @Min: 0
  44. * @Max: 20
  45. * @Default: 5
  46. *
  47. * This ini to set the number of PMF SA query retries for SAP
  48. *
  49. * Related: None.
  50. *
  51. * Supported Feature: PMF(11W)
  52. *
  53. */
  54. #define CFG_PMF_SA_QUERY_MAX_RETRIES CFG_PMF_SA_QUERY_MAX_RETRIES_TYPE( \
  55. "pmfSaQueryMaxRetries", \
  56. 0, \
  57. 20, \
  58. 5, \
  59. CFG_VALUE_OR_DEFAULT, \
  60. "PMF SA query retries for SAP")
  61. /*
  62. * pmfSaQueryRetryInterval - Control PMF SA query retry interval
  63. * for SAP in ms
  64. * @Min: 10
  65. * @Max: 2000
  66. * @Default: 200
  67. *
  68. * This ini to set the PMF SA query retry interval for SAP in ms
  69. *
  70. * Related: None.
  71. *
  72. * Supported Feature: PMF(11W)
  73. *
  74. */
  75. #define CFG_PMF_SA_QUERY_RETRY_INTERVAL CFG_PMF_SA_QUERY_RETRY_INTERVAL_TYPE( \
  76. "pmfSaQueryRetryInterval", \
  77. 10, \
  78. 2000, \
  79. 200, \
  80. CFG_VALUE_OR_DEFAULT, \
  81. "PMF SA query retry interval for SAP")
  82. /*
  83. * <ini>
  84. * enable_rtt_mac_randomization - Enable/Disable rtt mac randomization
  85. * @Min: 0
  86. * @Max: 1
  87. * @Default: 0
  88. *
  89. * Usage: External
  90. *
  91. * </ini>
  92. */
  93. #define CFG_ENABLE_RTT_MAC_RANDOMIZATION CFG_INI_BOOL( \
  94. "enable_rtt_mac_randomization", \
  95. 0, \
  96. "Enable RTT MAC randomization")
  97. #define CFG_RTT3_ENABLE CFG_BOOL( \
  98. "rtt3_enabled", \
  99. 1, \
  100. "RTT3 enable/disable info")
  101. /*
  102. * <ini>
  103. * g11hSupportEnabled - Enable 11h support
  104. * @Min: 0
  105. * @Max: 1
  106. * @Default: 1
  107. *
  108. * This ini is used to set 11h support flag
  109. *
  110. * Related: None
  111. *
  112. * Supported Feature: STA
  113. *
  114. * Usage: External
  115. *
  116. * </ini>
  117. */
  118. #define CFG_11H_SUPPORT_ENABLED CFG_INI_BOOL( \
  119. "g11hSupportEnabled", \
  120. 1, \
  121. "11h Enable Flag")
  122. /*
  123. * <ini>
  124. * g11dSupportEnabled - Enable 11d support
  125. * @Min: 0
  126. * @Max: 1
  127. * @Default: 1
  128. *
  129. * This ini is used to set 11d support flag
  130. *
  131. * Related: None
  132. *
  133. * Supported Feature: STA
  134. *
  135. * Usage: External
  136. *
  137. * </ini>
  138. */
  139. #define CFG_11D_SUPPORT_ENABLED CFG_INI_BOOL( \
  140. "g11dSupportEnabled", \
  141. 1, \
  142. "11d Enable Flag")
  143. /*
  144. * <ini>
  145. * BandCapability - Preferred band (0: 2.4G, 5G, and 6G,
  146. * 1: 2.4G only,
  147. * 2: 5G only,
  148. * 3: Both 2.4G and 5G,
  149. * 4: 6G only,
  150. * 5: Both 2.4G and 6G,
  151. * 6: Both 5G and 6G,
  152. * 7: 2.4G, 5G, and 6G)
  153. * @Min: 0
  154. * @Max: 7
  155. * @Default: 7
  156. *
  157. * This ini is used to set default band capability
  158. * (0: Both 2.4G and 5G, 1: 2.4G only, 2: 5G only, 3: Both 2.4G and 5G,
  159. * 4: 6G only, 5: Both 2.4G and 6G, 6: Both 5G and 6G, 7: 2.4G, 5G, and 6G)
  160. *
  161. * Related: None
  162. *
  163. * Supported Feature: STA
  164. *
  165. * Usage: External
  166. *
  167. * </ini>
  168. */
  169. #define CFG_BAND_CAPABILITY CFG_INI_UINT( \
  170. "BandCapability", \
  171. 0, \
  172. 7, \
  173. 7, \
  174. CFG_VALUE_OR_DEFAULT, \
  175. "Band Capability")
  176. /*
  177. * <ini>
  178. * gPreventLinkDown - Enable to prevent bus link from going down
  179. * @Min: 0
  180. * @Max: 1
  181. * @Default: 0
  182. *
  183. * Enable to prevent bus link from going down. Useful for platforms that do not
  184. * (yet) support link down suspend cases.
  185. *
  186. * Related: N/A
  187. *
  188. * Supported Feature: Suspend/Resume
  189. *
  190. * Usage: Internal
  191. *
  192. * </ini>
  193. */
  194. #if defined(QCA_WIFI_NAPIER_EMULATION) || defined(QCA_WIFI_QCA6290)
  195. #define CFG_PREVENT_LINK_DOWN CFG_INI_BOOL( \
  196. "gPreventLinkDown", \
  197. 1, \
  198. "Prevent Bus Link Down")
  199. #else
  200. #define CFG_PREVENT_LINK_DOWN CFG_INI_BOOL( \
  201. "gPreventLinkDown", \
  202. 0, \
  203. "Prevent Bus Link Down")
  204. #endif /* QCA_WIFI_NAPIER_EMULATION */
  205. /*
  206. * <ini>
  207. * gSelect5GHzMargin - Sets RSSI preference for 5GHz over 2.4GHz AP.
  208. * @Min: 0
  209. * @Max: 60
  210. * @Default: 0
  211. *
  212. * Prefer connecting to 5G AP even if its RSSI is lower by gSelect5GHzMargin
  213. * dBm than 2.4G AP. This feature requires the dependent cfg.ini
  214. * "gRoamPrefer5GHz" set to 1
  215. *
  216. * Related: gRoamPrefer5GHz
  217. *
  218. * Supported Feature: Roaming
  219. *
  220. * Usage: External
  221. *
  222. * </ini>
  223. */
  224. #define CFG_SELECT_5GHZ_MARGIN CFG_INI_UINT( \
  225. "gSelect5GHzMargin", \
  226. 0, \
  227. 60, \
  228. 0, \
  229. CFG_VALUE_OR_DEFAULT, \
  230. "Select 5Ghz Margin")
  231. /*
  232. * <ini>
  233. * gEnableMemDeepSleep - Sets Memory Deep Sleep on/off.
  234. * @Min: 0
  235. * @Max: 1
  236. * @Default: 1
  237. *
  238. * This option enables/disables memory deep sleep.
  239. * Related: None
  240. *
  241. * Supported Feature: General
  242. *
  243. * Usage: External
  244. *
  245. * </ini>
  246. */
  247. #define CFG_ENABLE_MEM_DEEP_SLEEP CFG_INI_BOOL( \
  248. "gEnableMemDeepSleep", \
  249. 1, \
  250. "Enable Memory Deep Sleep")
  251. /*
  252. * <ini>
  253. *
  254. * gEnableCckTxFirOverride - Enable/disable CCK TxFIR Override
  255. * @Min: 0 (disabled)
  256. * @Max: 1 (enabled)
  257. * @Default: 0 (disabled)
  258. *
  259. * When operating in an 802.11b mode, this configuration item forces a 2x2 radio
  260. * configuration into 1x for Tx and 2x for Rx (ie 1x2) for regulatory compliance
  261. * reasons.
  262. *
  263. * Related: enable2x2
  264. *
  265. * Supported Feature: 802.11b, 2x2
  266. *
  267. * Usage: External
  268. *
  269. * </ini>
  270. */
  271. #define CFG_ENABLE_CCK_TX_FIR_OVERRIDE CFG_INI_BOOL( \
  272. "gEnableCckTxFirOverride", \
  273. 0, \
  274. "Enable CCK TX FIR Override")
  275. /*
  276. * <ini>
  277. *
  278. * gEnableForceTargetAssert - Enable/disable SSR
  279. * @Min: 0 (disabled)
  280. * @Max: 1 (enabled)
  281. * @Default: 0 (disabled)
  282. *
  283. * This INI item is used to control subsystem restart(SSR) test framework
  284. * Set it's value to 1 to enable APPS trigerred SSR testing
  285. *
  286. * Related: None
  287. *
  288. * Supported Feature: General
  289. *
  290. * Usage: External
  291. *
  292. * </ini>
  293. */
  294. #define CFG_ENABLE_CRASH_INJECT CFG_INI_BOOL( \
  295. "gEnableForceTargetAssert", \
  296. 0, \
  297. "Enable Crash Inject")
  298. /*
  299. * <ini>
  300. *
  301. * gEnableLpassSupport - Enable/disable LPASS Support
  302. * @Min: 0 (disabled)
  303. * @Max: 1 (enabled)
  304. * @Default: 0 (disabled)
  305. *
  306. * Related: None
  307. *
  308. * Supported Feature: General
  309. *
  310. * Usage: External
  311. *
  312. * </ini>
  313. */
  314. #ifdef WLAN_FEATURE_LPSS
  315. #define CFG_ENABLE_LPASS_SUPPORT CFG_INI_BOOL( \
  316. "gEnableLpassSupport", \
  317. 0, \
  318. "Enable LPASS Support")
  319. #else
  320. #define CFG_ENABLE_LPASS_SUPPORT CFG_BOOL( \
  321. "gEnableLpassSupport", \
  322. 0, \
  323. "Enable LPASS Support")
  324. #endif
  325. /*
  326. * <ini>
  327. *
  328. * gEnableSelfRecovery - Enable/disable Self Recovery
  329. * @Min: 0 (disabled)
  330. * @Max: 1 (enabled)
  331. * @Default: 0 (disabled)
  332. *
  333. * Related: None
  334. *
  335. * Supported Feature: General
  336. *
  337. * Usage: External
  338. *
  339. * </ini>
  340. */
  341. #define CFG_ENABLE_SELF_RECOVERY CFG_INI_BOOL( \
  342. "gEnableSelfRecovery", \
  343. 0, \
  344. "Enable Self Recovery")
  345. /*
  346. * <ini>
  347. *
  348. * gSapDot11mc - Enable/disable SAP 802.11mc support
  349. * @Min: 0 (disabled)
  350. * @Max: 1 (enabled)
  351. * @Default: 0 (disabled)
  352. *
  353. * Related: None
  354. *
  355. * Supported Feature: General
  356. *
  357. * Usage: External
  358. *
  359. * </ini>
  360. */
  361. #define CFG_SAP_DOT11MC CFG_INI_BOOL( \
  362. "gSapDot11mc", \
  363. 0, \
  364. "SAP 802.11mc support")
  365. /*
  366. * <ini>
  367. *
  368. * gEnableFatalEvent - Enable/Disable BUG report in case of fatal event
  369. * @Min: 0 (disabled)
  370. * @Max: 1 (enabled)
  371. * @Default: 1 (enabled)
  372. *
  373. * Related: None
  374. *
  375. * Supported Feature: General
  376. *
  377. * Usage: External
  378. *
  379. * </ini>
  380. */
  381. #define CFG_ENABLE_FATAL_EVENT_TRIGGER CFG_INI_BOOL( \
  382. "gEnableFatalEvent", \
  383. 1, \
  384. "Enable Fatal Event Trigger")
  385. /*
  386. * <ini>
  387. * gSub20ChannelWidth - Control sub 20 channel width (5/10 Mhz)
  388. * @Min: 0
  389. * @Max: 2
  390. * @Default: 0
  391. *
  392. * This ini is used to set the sub 20 channel width.
  393. * gSub20ChannelWidth=0: indicates do not use Sub 20 MHz bandwidth
  394. * gSub20ChannelWidth=1: Bring up SAP/STA in 5 MHz bandwidth
  395. * gSub20ChannelWidth=2: Bring up SAP/STA in 10 MHz bandwidth
  396. *
  397. * Related: None
  398. *
  399. * Supported Feature: 5/10 Mhz channel width support
  400. *
  401. * Usage: External
  402. *
  403. * </ini>
  404. */
  405. #define CFG_SUB_20_CHANNEL_WIDTH CFG_INI_UINT( \
  406. "gSub20ChannelWidth", \
  407. 0, \
  408. 2, \
  409. 0, \
  410. CFG_VALUE_OR_DEFAULT, \
  411. "Sub 20 Channel Width")
  412. /*
  413. * <ini>
  414. * goptimize_chan_avoid_event - Optimize channel avoidance indication
  415. * coming from firmware
  416. * @Min: 0
  417. * @Max: 1
  418. * @Default: 0
  419. *
  420. * Related: None
  421. *
  422. * Supported Feature: General
  423. *
  424. * Usage: External
  425. *
  426. * </ini>
  427. */
  428. #define CFG_OPTIMIZE_CA_EVENT CFG_INI_BOOL( \
  429. "goptimize_chan_avoid_event", \
  430. 0, \
  431. "Optimize FW CA Event")
  432. /*
  433. * <ini>
  434. * fw_timeout_crash - Enable/Disable BUG ON
  435. * @Min: 0
  436. * @Max: 1
  437. * @Default: 1
  438. *
  439. * This ini is used to Trigger host crash when firmware fails to send the
  440. * response to host
  441. * fw_timeout_crash = 0 Disabled
  442. * fw_timeout_crash = 1 Trigger host crash
  443. *
  444. * Related: None
  445. *
  446. * Supported Feature: SSR
  447. *
  448. * Usage: External
  449. *
  450. * </ini>
  451. */
  452. #define CFG_CRASH_FW_TIMEOUT CFG_INI_BOOL( \
  453. "fw_timeout_crash", \
  454. 1, \
  455. "Enable FW Timeout Crash")
  456. /*
  457. * <ini>
  458. * gDroppedPktDisconnectTh - Sets dropped packet threshold in firmware
  459. * @Min: 0
  460. * @Max: 65535
  461. * @Default: 512
  462. *
  463. * This INI is the packet drop threshold will trigger disconnect from remote
  464. * peer.
  465. *
  466. * Related: None
  467. *
  468. * Supported Feature: connection
  469. *
  470. * Usage: External
  471. *
  472. * </ini>
  473. */
  474. #define CFG_DROPPED_PKT_DISCONNECT_THRESHOLD CFG_INI_UINT( \
  475. "gDroppedPktDisconnectTh", \
  476. 0, \
  477. 65535, \
  478. 512, \
  479. CFG_VALUE_OR_DEFAULT, \
  480. "Dropped Pkt Disconnect threshold")
  481. /*
  482. * <ini>
  483. * gItoRepeatCount - sets ito repeated count
  484. * @Min: 0
  485. * @Max: 5
  486. * @Default: 0
  487. *
  488. * This ini sets the ito count in FW
  489. *
  490. * Usage: External
  491. *
  492. * </ini>
  493. */
  494. #define CFG_ITO_REPEAT_COUNT CFG_INI_UINT( \
  495. "gItoRepeatCount", \
  496. 0, \
  497. 5, \
  498. 0, \
  499. CFG_VALUE_OR_DEFAULT, \
  500. "ITO Repeat Count")
  501. /*
  502. * <ini>
  503. * gEnableDeauthToDisassocMap - Enables deauth to disassoc map
  504. * @Min: 0
  505. * @Max: 1
  506. * @Default: 0
  507. *
  508. * This ini is used to set default disassoc map
  509. *
  510. * Related: None
  511. *
  512. * Supported Feature: STA
  513. *
  514. * Usage: External
  515. *
  516. * </ini>
  517. */
  518. #define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP CFG_INI_BOOL( \
  519. "gEnableDeauthToDisassocMap", \
  520. 0, \
  521. "Enables deauth to disassoc map")
  522. /*
  523. * <ini>
  524. * gEnableDebugLog - Enable/Disable the Connection related logs
  525. * @Min: 0
  526. * @Max: 0xFF
  527. * @Default: 0x0F
  528. *
  529. * This ini is used to enable/disable the connection related logs
  530. * 0x1 - Enable mgmt pkt logs (excpet probe req/rsp, beacons).
  531. * 0x2 - Enable EAPOL pkt logs.
  532. * 0x4 - Enable DHCP pkt logs.
  533. * 0x8 - Enable mgmt action frames logs.
  534. * 0x0 - Disable all the above connection related logs.
  535. * The default value of 0x0F will enable all the above logs
  536. *
  537. * Related: None
  538. *
  539. * Supported Feature: STA
  540. *
  541. * Usage: External
  542. *
  543. * </ini>
  544. */
  545. #define CFG_ENABLE_DEBUG_PACKET_LOG CFG_INI_UINT( \
  546. "gEnableDebugLog", \
  547. 0, 0xFF, 0x0F, \
  548. CFG_VALUE_OR_DEFAULT, \
  549. "Enable debug log")
  550. /*
  551. * <ini>
  552. * enable_beacon_reception_stats - Enable disable beacon reception stats
  553. * @Min: 0
  554. * @Max: 1
  555. * @Default: 0
  556. *
  557. * This ini is used to enable/disable the beacon reception stats collected per
  558. * vdev and then sent to the driver to be displayed in sysfs
  559. *
  560. * Related: None
  561. *
  562. * Supported Feature: Stats
  563. *
  564. * Usage: External
  565. *
  566. * </ini>
  567. */
  568. #define CFG_ENABLE_BEACON_RECEPTION_STATS CFG_INI_BOOL( \
  569. "enable_beacon_reception_stats", \
  570. 0, \
  571. "Enable disable beacon reception stats")
  572. /*
  573. * <ini>
  574. * gRemoveTimeStampSyncCmd - Enable/Disable to remove time stamp sync cmd
  575. * @Min: 0
  576. * @Max: 1
  577. * @Default: 0
  578. *
  579. * This ini is used to enable/disable the removal of time stamp sync cmd.
  580. * If we disable this periodic time sync update to firmware then roaming
  581. * timestamp updates to kmsg will have invalid timestamp as firmware will
  582. * use this timestamp to capture when roaming has happened with respect
  583. * to host timestamp.
  584. *
  585. *
  586. * Usage: External
  587. *
  588. * </ini>
  589. */
  590. #define CFG_REMOVE_TIME_STAMP_SYNC_CMD CFG_INI_BOOL( \
  591. "gRemoveTimeStampSyncCmd", \
  592. 0, \
  593. "Enable to remove time stamp sync cmd")
  594. /*
  595. * <ini>
  596. * disable_4way_hs_offload - Enable/Disable 4 way handshake offload to firmware
  597. * @Min: 0
  598. * @Max: 1
  599. * @Default: 0
  600. *
  601. * 0 4-way HS to be handled in firmware
  602. * 1 4-way HS to be handled in supplicant
  603. *
  604. * Related: None
  605. *
  606. * Supported Feature: STA Roaming
  607. *
  608. * Usage: External
  609. *
  610. * </ini>
  611. */
  612. #define CFG_DISABLE_4WAY_HS_OFFLOAD CFG_INI_BOOL("disable_4way_hs_offload", \
  613. 0, \
  614. "Enable/disable 4 way handshake offload to firmware")
  615. /*
  616. * <ini>
  617. * mgmt_retry_max - Maximum Retries for mgmt frames
  618. * @Min: 0
  619. * @Max: 31
  620. * @Default: 15
  621. *
  622. * This ini is used to set maximum retries for mgmt frames
  623. *
  624. * Supported Feature: STA/SAP
  625. *
  626. * Usage: External
  627. *
  628. * </ini>
  629. */
  630. #define CFG_MGMT_RETRY_MAX CFG_INI_UINT( \
  631. "mgmt_retry_max", \
  632. 0, \
  633. 31, \
  634. 15, \
  635. CFG_VALUE_OR_DEFAULT, \
  636. "Max retries for mgmt frames")
  637. /*
  638. * <ini>
  639. * bmiss_skip_full_scan - To decide whether firmware does channel map based
  640. * partial scan or partial scan followed by full scan in case no candidate is
  641. * found in partial scan.
  642. * @Min: 0
  643. * @Max: 1
  644. * @Default: 0
  645. *
  646. * 0 : Based on the channel map , firmware does scan to find new AP. if AP is
  647. * not found then it does a full scan on all valid channels.
  648. * 1 : Firmware does channel map based partial scan only.
  649. *
  650. * Related: None
  651. *
  652. * Supported Feature: STA Roaming
  653. *
  654. * Usage: External
  655. *
  656. * </ini>
  657. */
  658. #define CFG_BMISS_SKIP_FULL_SCAN CFG_INI_BOOL("bmiss_skip_full_scan", \
  659. 0, \
  660. "To decide partial/partial scan followed by full scan")
  661. /*
  662. * <ini>
  663. * gEnableRingBuffer - Enable Ring Buffer for Bug Report
  664. * @Min: 0
  665. * @Max: 1
  666. * @Default: 1
  667. *
  668. * This ini is used to enable Ring Buffer
  669. *
  670. * Related: None
  671. *
  672. * Supported Feature: STA/SAP
  673. *
  674. * Usage: External
  675. *
  676. * </ini>
  677. */
  678. #define CFG_ENABLE_RING_BUFFER CFG_INI_BOOL( \
  679. "gEnableRingBuffer", \
  680. 1, \
  681. "To Enable Ring Buffer")
  682. /*
  683. * <ini>
  684. * dfs_chan_ageout_time - Set DFS Channel ageout time(in seconds)
  685. * @Min: 0
  686. * @Max: 8
  687. * Default: 0
  688. *
  689. * Ageout time is the time upto which DFS channel information such as beacon
  690. * found is remembered. So that Firmware performs Active scan instead of the
  691. * Passive to reduce the Dwell time.
  692. * This ini Parameter used to set ageout timer value from host to FW.
  693. * If not set, Firmware will disable ageout time.
  694. *
  695. * Supported Feature: STA scan in DFS channels
  696. *
  697. * Usage: External
  698. *
  699. * </ini>
  700. */
  701. #define CFG_DFS_CHAN_AGEOUT_TIME CFG_INI_UINT("dfs_chan_ageout_time", \
  702. 0, 8, 0, CFG_VALUE_OR_DEFAULT, \
  703. "Set DFS Channel ageout time from host to firmware")
  704. /*
  705. * <ini>
  706. * sae_connect_retries - Bit mask to retry Auth and full connection on assoc
  707. * timeout to same AP and auth retries during roaming
  708. * @Min: 0x0
  709. * @Max: 0x53
  710. * @Default: 0x52
  711. *
  712. * This ini is used to set max auth retry in auth phase of roaming and initial
  713. * connection and max connection retry in case of assoc timeout. MAX Auth
  714. * retries are capped to 3, connection retries are capped to 2 and roam Auth
  715. * retry is capped to 1.
  716. * Default is 0x52 i.e. 1 roam auth retry, 2 auth retry and 2 full connection
  717. * retry.
  718. *
  719. * Bits Retry Type
  720. * BIT[0:2] AUTH retries
  721. * BIT[3:5] Connection reties
  722. * BIT[6:8] ROAM AUTH retries
  723. *
  724. * Some Possible values are as below
  725. * 0 - NO auth/roam Auth retry and NO full connection retry after
  726. * assoc timeout
  727. * 0x49 - 1 auth/roam auth retry and 1 full connection retry
  728. * 0x52 - 1 roam auth retry, 2 auth retry and 2 full connection retry
  729. * 0x1 /0x2 - 0 roam auth retry, 1 or 2 auth retry respectively and NO full
  730. * connection retry
  731. * 0x8 /0x10 - 0 roam auth retry,NO auth retry and 1 or 2 full connection retry
  732. * respectively.
  733. * 0x4A - 1 roam auth retry,2 auth retry and 1 full connection retry
  734. * 0x51 - 1 auth/roam auth retry and 2 full connection retry
  735. *
  736. * Related: None
  737. *
  738. * Supported Feature: STA SAE
  739. *
  740. * Usage: External
  741. *
  742. * </ini>
  743. */
  744. #define CFG_SAE_CONNECION_RETRIES CFG_INI_UINT("sae_connect_retries", \
  745. 0, 0x53, 0x52, CFG_VALUE_OR_DEFAULT, \
  746. "Bit mask to retry Auth and full connection on assoc timeout to same AP for SAE connection")
  747. /*
  748. * <ini>
  749. *
  750. * wls_6ghz_capable - WiFi Location Service(WLS) is 6Ghz capable
  751. * @Min: 0 (WLS 6Ghz non-capable)
  752. * @Max: 1 (WLS 6Ghz capable)
  753. * @Default: 0 (WLS 6Ghz non-capable)
  754. *
  755. * Related: None
  756. *
  757. * Supported Feature: General
  758. *
  759. * Usage: Internal
  760. *
  761. * </ini>
  762. */
  763. #define CFG_WLS_6GHZ_CAPABLE CFG_INI_BOOL( \
  764. "wls_6ghz_capable", \
  765. 0, \
  766. "WiFi Location Service(WLS) is 6Ghz capable or not")
  767. /*
  768. * <ini>
  769. *
  770. * monitor_mode_conc - Monitor mode concurrency supported
  771. * @Min: 0
  772. * @Max: 1
  773. * @Default: 0
  774. *
  775. * Related: None
  776. *
  777. * Monitor mode concurrency supported
  778. * 0 - No concurrency supported
  779. * 1 - Allow STA scan + Monitor mode concurrency
  780. *
  781. * Supported Feature: General
  782. *
  783. * Usage: External
  784. *
  785. * </ini>
  786. */
  787. #define CFG_MONITOR_MODE_CONCURRENCY CFG_INI_UINT( \
  788. "monitor_mode_concurrency", \
  789. MONITOR_MODE_CONC_NO_SUPPORT, \
  790. MONITOR_MODE_CONC_MAX, \
  791. MONITOR_MODE_CONC_NO_SUPPORT, \
  792. CFG_VALUE_OR_DEFAULT, \
  793. "Monitor mode concurrency supported")
  794. #define CFG_GENERIC_ALL \
  795. CFG(CFG_ENABLE_DEBUG_PACKET_LOG) \
  796. CFG(CFG_PMF_SA_QUERY_MAX_RETRIES) \
  797. CFG(CFG_PMF_SA_QUERY_RETRY_INTERVAL) \
  798. CFG(CFG_ENABLE_RTT_MAC_RANDOMIZATION) \
  799. CFG(CFG_RTT3_ENABLE) \
  800. CFG(CFG_11H_SUPPORT_ENABLED) \
  801. CFG(CFG_11D_SUPPORT_ENABLED) \
  802. CFG(CFG_BAND_CAPABILITY) \
  803. CFG(CFG_PREVENT_LINK_DOWN) \
  804. CFG(CFG_SELECT_5GHZ_MARGIN) \
  805. CFG(CFG_ENABLE_MEM_DEEP_SLEEP) \
  806. CFG(CFG_ENABLE_CCK_TX_FIR_OVERRIDE) \
  807. CFG(CFG_ENABLE_CRASH_INJECT) \
  808. CFG(CFG_ENABLE_LPASS_SUPPORT) \
  809. CFG(CFG_ENABLE_SELF_RECOVERY) \
  810. CFG(CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP) \
  811. CFG(CFG_DISABLE_4WAY_HS_OFFLOAD) \
  812. CFG(CFG_SAP_DOT11MC) \
  813. CFG(CFG_ENABLE_FATAL_EVENT_TRIGGER) \
  814. CFG(CFG_SUB_20_CHANNEL_WIDTH) \
  815. CFG(CFG_OPTIMIZE_CA_EVENT) \
  816. CFG(CFG_CRASH_FW_TIMEOUT) \
  817. CFG(CFG_DROPPED_PKT_DISCONNECT_THRESHOLD) \
  818. CFG(CFG_ITO_REPEAT_COUNT) \
  819. CFG(CFG_ENABLE_BEACON_RECEPTION_STATS) \
  820. CFG(CFG_REMOVE_TIME_STAMP_SYNC_CMD) \
  821. CFG(CFG_MGMT_RETRY_MAX) \
  822. CFG(CFG_BMISS_SKIP_FULL_SCAN) \
  823. CFG(CFG_ENABLE_RING_BUFFER) \
  824. CFG(CFG_DFS_CHAN_AGEOUT_TIME) \
  825. CFG(CFG_SAE_CONNECION_RETRIES) \
  826. CFG(CFG_WLS_6GHZ_CAPABLE) \
  827. CFG(CFG_MONITOR_MODE_CONCURRENCY)
  828. #endif /* __CFG_MLME_GENERIC_H */