cfg_mlme_generic.h 20 KB

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