cfg_mlme_generic.h 17 KB

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