wlan_tdls_cfg.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  1. /*
  2. * Copyright (c) 2018-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. #if !defined(CONFIG_TDLS_H__)
  19. #define CONFIG_TDLS_H__
  20. #include "cfg_define.h"
  21. #include "cfg_converged.h"
  22. #include "qdf_types.h"
  23. /*
  24. * <ini>
  25. * gTDLSUapsdMask - ACs to setup U-APSD for TDLS Sta.
  26. * @Min: 0
  27. * @Max: 0x0F
  28. * @Default: 0x0F
  29. *
  30. * This ini is used to configure the ACs for which mask needs to be enabled.
  31. * 0x1: Background 0x2: Best effort
  32. * 0x4: Video 0x8: Voice
  33. *
  34. * Related: gEnableTDLSSupport.
  35. *
  36. * Supported Feature: TDLS
  37. *
  38. * Usage: Internal/External
  39. *
  40. * </ini>
  41. */
  42. #define CFG_TDLS_QOS_WMM_UAPSD_MASK CFG_INI_UINT( \
  43. "gTDLSUapsdMask", \
  44. 0, \
  45. 0x0F, \
  46. 0x0F, \
  47. CFG_VALUE_OR_DEFAULT, \
  48. "ACs to setup U-APSD for TDLS Sta")
  49. /*
  50. * <ini>
  51. * gEnableTDLSBufferSta - Controls the TDLS buffer.
  52. * @Min: 0
  53. * @Max: 1
  54. * @Default: 1
  55. *
  56. * This ini is used to control the TDLS buffer.
  57. * Buffer STA is not enabled in CLD 2.0 yet.
  58. *
  59. * Related: gEnableTDLSSupport.
  60. *
  61. * Supported Feature: TDLS
  62. *
  63. * Usage: Internal/External
  64. *
  65. * </ini>
  66. */
  67. #define CFG_TDLS_BUF_STA_ENABLED CFG_INI_BOOL( \
  68. "gEnableTDLSBufferSta", \
  69. 1, \
  70. "Controls the TDLS buffer")
  71. /*
  72. * <ini>
  73. * gTDLSPuapsdInactivityTime - Peer UAPSD Inactivity time.
  74. * @Min: 0
  75. * @Max: 10
  76. * @Default: 0
  77. *
  78. * This ini is used to configure peer uapsd inactivity time(in ms).
  79. *
  80. * Related: gEnableTDLSSupport.
  81. *
  82. * Supported Feature: TDLS
  83. *
  84. * Usage: Internal/External
  85. *
  86. * </ini>
  87. */
  88. #define CFG_TDLS_PUAPSD_INACT_TIME CFG_INI_UINT( \
  89. "gTDLSPuapsdInactivityTime", \
  90. 0, \
  91. 10, \
  92. 0, \
  93. CFG_VALUE_OR_DEFAULT, \
  94. "Peer UAPSD Inactivity time")
  95. /*
  96. * <ini>
  97. * gTDLSPuapsdRxFrameThreshold - Peer UAPSD Rx frame threshold.
  98. * @Min: 10
  99. * @Max: 20
  100. * @Default: 10
  101. *
  102. * This ini is used to configure maximum Rx frame during SP.
  103. *
  104. * Related: gEnableTDLSSupport.
  105. *
  106. * Supported Feature: TDLS
  107. *
  108. * Usage: Internal/External
  109. *
  110. * </ini>
  111. */
  112. #define CFG_TDLS_RX_FRAME_THRESHOLD CFG_INI_UINT( \
  113. "gTDLSPuapsdRxFrameThreshold", \
  114. 10, \
  115. 20, \
  116. 10, \
  117. CFG_VALUE_OR_DEFAULT, \
  118. "Peer UAPSD Rx frame threshold")
  119. /*
  120. * <ini>
  121. * gEnableTDLSOffChannel - Enables off-channel support for TDLS link.
  122. * @Min: 0
  123. * @Max: 1
  124. * @Default: 0
  125. *
  126. * This ini is used to enable/disable off-channel support for TDLS link.
  127. *
  128. * Related: gEnableTDLSSupport.
  129. *
  130. * Supported Feature: TDLS
  131. *
  132. * Usage: Internal/External
  133. *
  134. * </ini>
  135. */
  136. #define CFG_TDLS_OFF_CHANNEL_ENABLED CFG_INI_BOOL( \
  137. "gEnableTDLSOffChannel", \
  138. 0, \
  139. "Enables off-channel support for TDLS")
  140. /*
  141. * <ini>
  142. * gEnableTDLSSupport - Enable support for TDLS.
  143. * @Min: 0
  144. * @Max: 1
  145. * @Default: 1
  146. *
  147. * This ini is used to enable/disable TDLS support.
  148. *
  149. * Related: None.
  150. *
  151. * Supported Feature: TDLS
  152. *
  153. * Usage: Internal/External
  154. *
  155. * </ini>
  156. */
  157. #define CFG_TDLS_SUPPORT_ENABLE CFG_INI_BOOL( \
  158. "gEnableTDLSSupport", \
  159. 1, \
  160. "enable/disable TDLS support")
  161. /*
  162. * <ini>
  163. * gEnableTDLSImplicitTrigger - Enable Implicit TDLS.
  164. * @Min: 0
  165. * @Max: 1
  166. * @Default: 1
  167. *
  168. * This ini is used to enable/disable implicit TDLS.
  169. * CLD driver initiates TDLS Discovery towards a peer whenever TDLS Setup
  170. * criteria (throughput and RSSI thresholds) is met and then it tears down
  171. * TDLS when teardown criteria (idle packet count and RSSI) is met.
  172. *
  173. * Related: gEnableTDLSSupport.
  174. *
  175. * Supported Feature: TDLS
  176. *
  177. * Usage: Internal/External
  178. *
  179. * </ini>
  180. */
  181. #define CFG_TDLS_IMPLICIT_TRIGGER CFG_INI_BOOL( \
  182. "gEnableTDLSImplicitTrigger", \
  183. 1, \
  184. "enable/disable implicit TDLS")
  185. /*
  186. * <ini>
  187. * gTDLSTxStatsPeriod - TDLS TX statistics time period.
  188. * @Min: 1000
  189. * @Max: 4294967295
  190. * @Default: 2000
  191. *
  192. * This ini is used to configure the time period (in ms) to evaluate whether
  193. * the number of Tx/Rx packets exceeds TDLSTxPacketThreshold and triggers a
  194. * TDLS Discovery request.
  195. *
  196. * Related: gEnableTDLSSupport.
  197. *
  198. * Supported Feature: TDLS
  199. *
  200. * Usage: Internal/External
  201. *
  202. * </ini>
  203. */
  204. #define CFG_TDLS_TX_STATS_PERIOD CFG_INI_UINT( \
  205. "gTDLSTxStatsPeriod", \
  206. 1000, \
  207. 4294967295UL, \
  208. 2000, \
  209. CFG_VALUE_OR_DEFAULT, \
  210. "TDLS TX statistics time period")
  211. /*
  212. * <ini>
  213. * gTDLSTxPacketThreshold - Tx/Rx Packet threshold for initiating TDLS.
  214. * @Min: 0
  215. * @Max: 4294967295
  216. * @Default: 40
  217. *
  218. * This ini is used to configure the number of Tx/Rx packets during the
  219. * period of gTDLSTxStatsPeriod when exceeded, a TDLS Discovery request
  220. * is triggered.
  221. * Related: gEnableTDLSSupport.
  222. *
  223. * Supported Feature: TDLS
  224. *
  225. * Usage: Internal/External
  226. *
  227. * </ini>
  228. */
  229. #define CFG_TDLS_TX_PACKET_THRESHOLD CFG_INI_UINT( \
  230. "gTDLSTxPacketThreshold", \
  231. 0, \
  232. 4294967295UL, \
  233. 40, \
  234. CFG_VALUE_OR_DEFAULT, \
  235. "Tx/Rx Packet threshold for initiating TDLS")
  236. /*
  237. * <ini>
  238. * gTDLSMaxDiscoveryAttempt - Attempts for sending TDLS discovery requests.
  239. * @Min: 1
  240. * @Max: 100
  241. * @Default: 5
  242. *
  243. * This ini is used to configure the number of failures of discover request,
  244. * when exceeded, the peer is assumed to be not TDLS capable and no further
  245. * TDLS Discovery request is made.
  246. *
  247. * Related: gEnableTDLSSupport.
  248. *
  249. * Supported Feature: TDLS
  250. *
  251. * Usage: Internal/External
  252. *
  253. * </ini>
  254. */
  255. #define CFG_TDLS_MAX_DISCOVERY_ATTEMPT CFG_INI_UINT( \
  256. "gTDLSMaxDiscoveryAttempt", \
  257. 1, \
  258. 100, \
  259. 5, \
  260. CFG_VALUE_OR_DEFAULT, \
  261. "Attempts for sending TDLS discovery requests")
  262. /*
  263. * gTDLSMaxPeerCount - Max TDLS connected peer count
  264. * @Min: 1
  265. * @Max: 8
  266. * @Default: 8
  267. *
  268. * This ini is used to configure the max connected TDLS peer count.
  269. *
  270. * Related: gEnableTDLSSupport.
  271. *
  272. * Supported Feature: TDLS
  273. *
  274. * Usage: External
  275. *
  276. * </ini>
  277. */
  278. #define CFG_TDLS_MAX_PEER_COUNT CFG_INI_UINT( \
  279. "gTDLSMaxPeerCount", \
  280. 1, \
  281. 8, \
  282. 8, \
  283. CFG_VALUE_OR_DEFAULT, \
  284. "Max TDLS peer count")
  285. /*
  286. * <ini>
  287. * gTDLSIdleTimeout - Duration within which number of TX / RX frames meet the
  288. * criteria for TDLS teardown.
  289. * @Min: 500
  290. * @Max: 40000
  291. * @Default: 5000
  292. *
  293. * This ini is used to configure the time period (in ms) to evaluate whether
  294. * the number of Tx/Rx packets exceeds gTDLSIdlePacketThreshold and thus meets
  295. * criteria for TDLS teardown.
  296. * Teardown notification interval (gTDLSIdleTimeout) should be multiple of
  297. * setup notification (gTDLSTxStatsPeriod) interval.
  298. * e.g.
  299. * if setup notification (gTDLSTxStatsPeriod) interval = 500, then
  300. * teardown notification (gTDLSIdleTimeout) interval should be 1000,
  301. * 1500, 2000, 2500...
  302. *
  303. * Related: gEnableTDLSSupport.
  304. *
  305. * Supported Feature: TDLS
  306. *
  307. * Usage: Internal/External
  308. *
  309. */
  310. #define CFG_TDLS_IDLE_TIMEOUT CFG_INI_UINT( \
  311. "gTDLSIdleTimeout", \
  312. 500, \
  313. 40000, \
  314. 5000, \
  315. CFG_VALUE_OR_DEFAULT, \
  316. "this is idle time period")
  317. /*
  318. * <ini>
  319. * gTDLSIdlePacketThreshold - Number of idle packet.
  320. * @Min: 0
  321. * @Max: 40000
  322. * @Default: 3
  323. *
  324. * This ini is used to configure the number of Tx/Rx packet, below which
  325. * within last gTDLSTxStatsPeriod period is considered as idle condition.
  326. *
  327. * Related: gEnableTDLSSupport.
  328. *
  329. * Supported Feature: TDLS
  330. *
  331. * Usage: Internal/External
  332. *
  333. * </ini>
  334. */
  335. #define CFG_TDLS_IDLE_PACKET_THRESHOLD CFG_INI_UINT( \
  336. "gTDLSIdlePacketThreshold", \
  337. 0, \
  338. 40000, \
  339. 3, \
  340. CFG_VALUE_OR_DEFAULT, \
  341. "Number of idle packet")
  342. /*
  343. * <ini>
  344. * gTDLSRSSITriggerThreshold - RSSI threshold for TDLS connection.
  345. * @Min: -120
  346. * @Max: 0
  347. * @Default: -75
  348. *
  349. * This ini is used to configure the absolute value (in dB) of the peer RSSI,
  350. * below which a TDLS setup request is triggered.
  351. *
  352. * Related: gEnableTDLSSupport.
  353. *
  354. * Supported Feature: TDLS
  355. *
  356. * Usage: Internal/External
  357. *
  358. * </ini>
  359. */
  360. #define CFG_TDLS_RSSI_TRIGGER_THRESHOLD CFG_INI_INT( \
  361. "gTDLSRSSITriggerThreshold", \
  362. -120, \
  363. 0, \
  364. -75, \
  365. CFG_VALUE_OR_DEFAULT, \
  366. "RSSI threshold for TDLS connection")
  367. /*
  368. * <ini>
  369. * gTDLSRSSITeardownThreshold - RSSI threshold for TDLS teardown.
  370. * @Min: -120
  371. * @Max: 0
  372. * @Default: -75
  373. *
  374. * This ini is used to configure the absolute value (in dB) of the peer RSSI,
  375. * when exceed, a TDLS teardown is triggered.
  376. *
  377. * Related: gEnableTDLSSupport.
  378. *
  379. * Supported Feature: TDLS
  380. *
  381. * Usage: Internal/External
  382. *
  383. * </ini>
  384. */
  385. #define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD CFG_INI_INT( \
  386. "gTDLSRSSITeardownThreshold", \
  387. -120, \
  388. 0, \
  389. -75, \
  390. CFG_VALUE_OR_DEFAULT, \
  391. "RSSI threshold for TDLS teardown")
  392. /*
  393. * <ini>
  394. * gTDLSRSSIDelta - Delta value for the peer RSSI that can trigger teardown.
  395. * @Min: -30
  396. * @Max: 0
  397. * @Default: -20
  398. *
  399. * This ini is used to configure delta for peer RSSI such that if Peer RSSI
  400. * is less than AP RSSI plus delta will trigger a teardown.
  401. *
  402. * Related: gEnableTDLSSupport.
  403. *
  404. * Supported Feature: TDLS
  405. *
  406. * Usage: Internal/External
  407. *
  408. * </ini>
  409. */
  410. #define CFG_TDLS_RSSI_DELTA CFG_INI_INT( \
  411. "gTDLSRSSIDelta", \
  412. -30, \
  413. 0, \
  414. -20, \
  415. CFG_VALUE_OR_DEFAULT, \
  416. "Delta value for the peer RSSI that can trigger teardown")
  417. /*
  418. * <ini>
  419. * gTDLSPrefOffChanNum - Preferred TDLS channel number when off-channel support
  420. * is enabled.
  421. * @Min: 1
  422. * @Max: 165
  423. * @Default: 36
  424. *
  425. * This ini is used to configure preferred TDLS channel number when off-channel
  426. * support is enabled.
  427. *
  428. * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
  429. *
  430. * Supported Feature: TDLS
  431. *
  432. * Usage: Internal/External
  433. *
  434. * </ini>
  435. */
  436. #define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM CFG_INI_UINT( \
  437. "gTDLSPrefOffChanNum", \
  438. 1, \
  439. 165, \
  440. 36, \
  441. CFG_VALUE_OR_DEFAULT, \
  442. "Preferred TDLS channel number")
  443. /*
  444. * <ini>
  445. * gTDLSPrefOffChanBandwidth - Preferred TDLS channel bandwidth when
  446. * off-channel support is enabled.
  447. * @Min: 0x01
  448. * @Max: 0x0F
  449. * @Default: 0x07
  450. *
  451. * This ini is used to configure preferred TDLS channel bandwidth when
  452. * off-channel support is enabled.
  453. * 0x1: 20 MHz 0x2: 40 MHz 0x4: 80 MHz 0x8: 160 MHz
  454. * When more than one bits are set then firmware starts from the highest and
  455. * selects one based on capability of peer.
  456. *
  457. * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
  458. *
  459. * Supported Feature: TDLS
  460. *
  461. * Usage: Internal/External
  462. *
  463. * </ini>
  464. */
  465. #define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW CFG_INI_UINT( \
  466. "gTDLSPrefOffChanBandwidth", \
  467. 1, \
  468. 15, \
  469. 7, \
  470. CFG_VALUE_OR_DEFAULT, \
  471. "Preferred TDLS channel bandwidth")
  472. /*
  473. * <ini>
  474. * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
  475. * window.
  476. * @Min: 1
  477. * @Max: 5
  478. * @Default: 2
  479. *
  480. * This ini is used to configure buffering time in number of beacon intervals.
  481. *
  482. * Related: gEnableTDLSSupport.
  483. *
  484. * Supported Feature: TDLS
  485. *
  486. * Usage: Internal/External
  487. *
  488. * </ini>
  489. */
  490. #define CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW CFG_INI_UINT( \
  491. "gTDLSPuapsdPTIWindow", \
  492. 1, \
  493. 5, \
  494. 2, \
  495. CFG_VALUE_OR_DEFAULT, \
  496. "This ini is used to configure peer traffic indication")
  497. /*
  498. * <ini>
  499. * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
  500. * window.
  501. * @Min: 1
  502. * @Max: 5
  503. * @Default: 2
  504. *
  505. * This ini is used to configure buffering time in number of beacon intervals.
  506. *
  507. * Related: gEnableTDLSSupport.
  508. *
  509. * Supported Feature: TDLS
  510. *
  511. * Usage: Internal/External
  512. *
  513. * </ini>
  514. */
  515. #define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT CFG_INI_UINT( \
  516. "gTDLSPuapsdPTRTimeout", \
  517. 0, \
  518. 10000, \
  519. 5000, \
  520. CFG_VALUE_OR_DEFAULT, \
  521. "Peer Traffic Response timer duration in ms")
  522. /*
  523. * <ini>
  524. * gTDLSExternalControl - Enable external TDLS control.
  525. * @Min: 0
  526. * @Max: 2
  527. * @Default: 1
  528. *
  529. * This ini is used to enable/disable external TDLS control.
  530. * TDLS external control works with TDLS implicit trigger. TDLS external
  531. * control allows a user to add a MAC address of potential TDLS peers so
  532. * that the CLD driver can initiate implicit TDLS setup to only those peers
  533. * when criteria for TDLS setup (throughput and RSSI threshold) is met.
  534. * There are two flavors of external control supported. If control default
  535. * is set 1 it means strict external control where only for configured
  536. * tdls peer mac address tdls link will be established. If control default
  537. * is set 2 liberal tdls external control is needed which means
  538. * tdls link will be established with configured peer mac address as well
  539. * as any other peer which supports tdls.
  540. *
  541. * Related: gEnableTDLSSupport, gEnableTDLSImplicitTrigger.
  542. *
  543. * Supported Feature: TDLS
  544. *
  545. * Usage: Internal/External
  546. *
  547. * </ini>
  548. */
  549. #define CFG_TDLS_EXTERNAL_CONTROL CFG_INI_UINT( \
  550. "gTDLSExternalControl", \
  551. 0, \
  552. 2, \
  553. 1, \
  554. CFG_VALUE_OR_DEFAULT, \
  555. "Enable external TDLS control")
  556. /*
  557. * <ini>
  558. * gEnableTDLSWmmMode - Enables WMM support over TDLS link.
  559. * @Min: 0
  560. * @Max: 1
  561. * @Default: 1
  562. *
  563. * This ini is used to enable/disable WMM support over TDLS link.
  564. * This is required to be set to 1 for any TDLS and uAPSD functionality.
  565. *
  566. * Related: gEnableTDLSSupport.
  567. *
  568. * Supported Feature: TDLS
  569. *
  570. * Usage: Internal/External
  571. *
  572. * </ini>
  573. */
  574. #define CFG_TDLS_WMM_MODE_ENABLE CFG_INI_BOOL( \
  575. "gEnableTDLSWmmMode", \
  576. 1, \
  577. "Enables WMM support over TDLS link")
  578. /*
  579. * <ini>
  580. * gEnableTDLSScan - Allow scan and maintain TDLS link.
  581. * @Min: 0
  582. * @Max: 1
  583. * @Default: 1
  584. *
  585. * This ini is used to enable/disable TDLS scan.
  586. * 0: If peer is not buffer STA capable and device is not sleep STA
  587. * capable, then teardown TDLS link when scan is initiated. If peer
  588. * is buffer STA and we can be sleep STA then TDLS link is maintained
  589. * during scan.
  590. * 1: Maintain TDLS link and allow scan even if peer is not buffer STA
  591. * capable and device is not sleep STA capable. There will be loss of
  592. * Rx pkts since peer would not know when device moves away from tdls
  593. * channel. Tx on TDLS link would stop when device moves away from tdls
  594. * channel.
  595. *
  596. * Related: gEnableTDLSSupport.
  597. *
  598. * Supported Feature: TDLS
  599. *
  600. * Usage: Internal/External
  601. *
  602. * </ini>
  603. */
  604. #define CFG_TDLS_SCAN_ENABLE CFG_INI_BOOL( \
  605. "gEnableTDLSScan", \
  606. 1, \
  607. "Allow scan and maintain TDLS link")
  608. /*
  609. * <ini>
  610. * gTDLSPeerKickoutThreshold - TDLS peer kick out threshold to firmware.
  611. * @Min: 10
  612. * @Max: 5000
  613. * @Default: 96
  614. *
  615. * This ini is used to configure TDLS peer kick out threshold to firmware.
  616. * Firmware will use this value to determine, when to send TDLS
  617. * peer kick out event to host.
  618. * E.g.
  619. * if peer kick out threshold is 10, then firmware will wait for 10
  620. * consecutive packet failures and then send TDLS kick out
  621. * notification to host driver
  622. *
  623. * Related: gEnableTDLSSupport.
  624. *
  625. * Supported Feature: TDLS
  626. *
  627. * Usage: Internal/External
  628. *
  629. * </ini>
  630. */
  631. #define CFG_TDLS_PEER_KICKOUT_THRESHOLD CFG_INI_UINT( \
  632. "gTDLSPeerKickoutThreshold", \
  633. 10, \
  634. 5000, \
  635. 96, \
  636. CFG_VALUE_OR_DEFAULT, \
  637. "TDLS peer kick out threshold to firmware")
  638. /*
  639. * <ini>
  640. * gTDLSDiscoveryWakeTimeout - TDLS discovery WAKE timeout in ms.
  641. * @Min: 10
  642. * @Max: 5000
  643. * @Default: 96
  644. *
  645. * DUT will wake until this timeout to receive TDLS discovery response
  646. * from peer. If tdls_discovery_wake_timeout is 0x0, the DUT will
  647. * choose autonomously what wake timeout value to use.
  648. *
  649. *
  650. * Related: gEnableTDLSSupport.
  651. *
  652. * Supported Feature: TDLS
  653. *
  654. * Usage: External
  655. *
  656. * </ini>
  657. */
  658. #define CFG_TDLS_DISCOVERY_WAKE_TIMEOUT CFG_INI_UINT( \
  659. "gTDLSDiscoveryWakeTimeout", \
  660. 0, \
  661. 2000, \
  662. 200, \
  663. CFG_VALUE_OR_DEFAULT, \
  664. "TDLS peer kick out threshold to firmware")
  665. /*
  666. * <ini>
  667. * gTDLSEnableDeferTime - Timer to defer for enabling TDLS on P2P listen.
  668. * @Min: 500
  669. * @Max: 6000
  670. * @Default: 2000
  671. *
  672. * This ini is used to set the timer to defer for enabling TDLS on P2P
  673. * listen (value in milliseconds).
  674. *
  675. * Related: gEnableTDLSSupport.
  676. *
  677. * Supported Feature: TDLS
  678. *
  679. * Usage: Internal/External
  680. *
  681. * </ini>
  682. */
  683. #define CFG_TDLS_ENABLE_DEFER_TIMER CFG_INI_UINT( \
  684. "gTDLSEnableDeferTime", \
  685. 500, \
  686. 6000, \
  687. 2000, \
  688. CFG_VALUE_OR_DEFAULT, \
  689. "Timer to defer for enabling TDLS on P2P listen")
  690. #define CFG_TDLS_ALL \
  691. CFG(CFG_TDLS_QOS_WMM_UAPSD_MASK) \
  692. CFG(CFG_TDLS_BUF_STA_ENABLED) \
  693. CFG(CFG_TDLS_PUAPSD_INACT_TIME) \
  694. CFG(CFG_TDLS_RX_FRAME_THRESHOLD) \
  695. CFG(CFG_TDLS_OFF_CHANNEL_ENABLED) \
  696. CFG(CFG_TDLS_SUPPORT_ENABLE) \
  697. CFG(CFG_TDLS_IMPLICIT_TRIGGER) \
  698. CFG(CFG_TDLS_TX_STATS_PERIOD) \
  699. CFG(CFG_TDLS_TX_PACKET_THRESHOLD) \
  700. CFG(CFG_TDLS_MAX_DISCOVERY_ATTEMPT) \
  701. CFG(CFG_TDLS_MAX_PEER_COUNT) \
  702. CFG(CFG_TDLS_IDLE_TIMEOUT) \
  703. CFG(CFG_TDLS_IDLE_PACKET_THRESHOLD) \
  704. CFG(CFG_TDLS_RSSI_TRIGGER_THRESHOLD) \
  705. CFG(CFG_TDLS_RSSI_TEARDOWN_THRESHOLD) \
  706. CFG(CFG_TDLS_RSSI_DELTA) \
  707. CFG(CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM) \
  708. CFG(CFG_TDLS_PREFERRED_OFF_CHANNEL_BW) \
  709. CFG(CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW) \
  710. CFG(CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT) \
  711. CFG(CFG_TDLS_EXTERNAL_CONTROL) \
  712. CFG(CFG_TDLS_WMM_MODE_ENABLE) \
  713. CFG(CFG_TDLS_SCAN_ENABLE) \
  714. CFG(CFG_TDLS_PEER_KICKOUT_THRESHOLD) \
  715. CFG(CFG_TDLS_DISCOVERY_WAKE_TIMEOUT) \
  716. CFG(CFG_TDLS_ENABLE_DEFER_TIMER)
  717. #endif