wlan_tdls_cfg.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. /*
  2. * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. #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.
  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: 0
  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. 0, \
  160. "enable/disable TDLS support")
  161. /*
  162. * <ini>
  163. * gEnableTDLSImplicitTrigger - Enable Implicit TDLS.
  164. * @Min: 0
  165. * @Max: 1
  166. * @Default: 0
  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. 0, \
  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. * <ini>
  264. * gTDLSIdleTimeout - Duration within which number of TX / RX frames meet the
  265. * criteria for TDLS teardown.
  266. * @Min: 500
  267. * @Max: 40000
  268. * @Default: 5000
  269. *
  270. * This ini is used to configure the time period (in ms) to evaluate whether
  271. * the number of Tx/Rx packets exceeds gTDLSIdlePacketThreshold and thus meets
  272. * criteria for TDLS teardown.
  273. * Teardown notification interval (gTDLSIdleTimeout) should be multiple of
  274. * setup notification (gTDLSTxStatsPeriod) interval.
  275. * e.g.
  276. * if setup notification (gTDLSTxStatsPeriod) interval = 500, then
  277. * teardown notification (gTDLSIdleTimeout) interval should be 1000,
  278. * 1500, 2000, 2500...
  279. *
  280. * Related: gEnableTDLSSupport.
  281. *
  282. * Supported Feature: TDLS
  283. *
  284. * Usage: Internal/External
  285. *
  286. */
  287. #define CFG_TDLS_IDLE_TIMEOUT CFG_INI_UINT( \
  288. "gTDLSIdleTimeout", \
  289. 500, \
  290. 40000, \
  291. 5000, \
  292. CFG_VALUE_OR_DEFAULT, \
  293. "this is idle time period")
  294. /*
  295. * <ini>
  296. * gTDLSIdlePacketThreshold - Number of idle packet.
  297. * @Min: 0
  298. * @Max: 40000
  299. * @Default: 3
  300. *
  301. * This ini is used to configure the number of Tx/Rx packet, below which
  302. * within last gTDLSTxStatsPeriod period is considered as idle condition.
  303. *
  304. * Related: gEnableTDLSSupport.
  305. *
  306. * Supported Feature: TDLS
  307. *
  308. * Usage: Internal/External
  309. *
  310. * </ini>
  311. */
  312. #define CFG_TDLS_IDLE_PACKET_THRESHOLD CFG_INI_UINT( \
  313. "gTDLSIdlePacketThreshold", \
  314. 0, \
  315. 40000, \
  316. 3, \
  317. CFG_VALUE_OR_DEFAULT, \
  318. "Number of idle packet")
  319. /*
  320. * <ini>
  321. * gTDLSRSSITriggerThreshold - RSSI threshold for TDLS connection.
  322. * @Min: -120
  323. * @Max: 0
  324. * @Default: -75
  325. *
  326. * This ini is used to configure the absolute value (in dB) of the peer RSSI,
  327. * below which a TDLS setup request is triggered.
  328. *
  329. * Related: gEnableTDLSSupport.
  330. *
  331. * Supported Feature: TDLS
  332. *
  333. * Usage: Internal/External
  334. *
  335. * </ini>
  336. */
  337. #define CFG_TDLS_RSSI_TRIGGER_THRESHOLD CFG_INI_INT( \
  338. "gTDLSRSSITriggerThreshold", \
  339. -120, \
  340. 0, \
  341. -75, \
  342. CFG_VALUE_OR_DEFAULT, \
  343. "RSSI threshold for TDLS connection")
  344. /*
  345. * <ini>
  346. * gTDLSRSSITeardownThreshold - RSSI threshold for TDLS teardown.
  347. * @Min: -120
  348. * @Max: 0
  349. * @Default: -75
  350. *
  351. * This ini is used to configure the absolute value (in dB) of the peer RSSI,
  352. * when exceed, a TDLS teardown is triggered.
  353. *
  354. * Related: gEnableTDLSSupport.
  355. *
  356. * Supported Feature: TDLS
  357. *
  358. * Usage: Internal/External
  359. *
  360. * </ini>
  361. */
  362. #define CFG_TDLS_RSSI_TEARDOWN_THRESHOLD CFG_INI_INT( \
  363. "gTDLSRSSITeardownThreshold", \
  364. -120, \
  365. 0, \
  366. -75, \
  367. CFG_VALUE_OR_DEFAULT, \
  368. "RSSI threshold for TDLS teardown")
  369. /*
  370. * <ini>
  371. * gTDLSRSSITeardownThreshold - RSSI threshold for TDLS teardown.
  372. * @Min: -120
  373. * @Max: 0
  374. * @Default: -75
  375. *
  376. * This ini is used to configure the absolute value (in dB) of the peer RSSI,
  377. * when exceed, a TDLS teardown is triggered.
  378. *
  379. * Related: gEnableTDLSSupport.
  380. *
  381. * Supported Feature: TDLS
  382. *
  383. * Usage: Internal/External
  384. *
  385. * </ini>
  386. */
  387. #define CFG_TDLS_RSSI_DELTA CFG_INI_INT( \
  388. "gTDLSRSSIDelta", \
  389. -30, \
  390. 0, \
  391. -20, \
  392. CFG_VALUE_OR_DEFAULT, \
  393. "Delta value for the peer RSSI that can trigger teardown")
  394. /*
  395. * <ini>
  396. * gTDLSPrefOffChanNum - Preferred TDLS channel number when off-channel support
  397. * is enabled.
  398. * @Min: 1
  399. * @Max: 165
  400. * @Default: 36
  401. *
  402. * This ini is used to configure preferred TDLS channel number when off-channel
  403. * support is enabled.
  404. *
  405. * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
  406. *
  407. * Supported Feature: TDLS
  408. *
  409. * Usage: Internal/External
  410. *
  411. * </ini>
  412. */
  413. #define CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM CFG_INI_UINT( \
  414. "gTDLSPrefOffChanNum", \
  415. 1, \
  416. 165, \
  417. 36, \
  418. CFG_VALUE_OR_DEFAULT, \
  419. "Preferred TDLS channel number")
  420. /*
  421. * <ini>
  422. * gTDLSPrefOffChanBandwidth - Preferred TDLS channel bandwidth when
  423. * off-channel support is enabled.
  424. * @Min: 0x01
  425. * @Max: 0x0F
  426. * @Default: 0x07
  427. *
  428. * This ini is used to configure preferred TDLS channel bandwidth when
  429. * off-channel support is enabled.
  430. * 0x1: 20 MHz 0x2: 40 MHz 0x4: 80 MHz 0x8: 160 MHz
  431. * When more than one bits are set then firmware starts from the highest and
  432. * selects one based on capability of peer.
  433. *
  434. * Related: gEnableTDLSSupport, gEnableTDLSOffChannel.
  435. *
  436. * Supported Feature: TDLS
  437. *
  438. * Usage: Internal/External
  439. *
  440. * </ini>
  441. */
  442. #define CFG_TDLS_PREFERRED_OFF_CHANNEL_BW CFG_INI_UINT( \
  443. "gTDLSPrefOffChanBandwidth", \
  444. 1, \
  445. 15, \
  446. 7, \
  447. CFG_VALUE_OR_DEFAULT, \
  448. "Preferred TDLS channel bandwidth")
  449. /*
  450. * <ini>
  451. * gTDLSPuapsdInactivityTime - Peer UAPSD Inactivity time.
  452. * @Min: 0
  453. * @Max: 10
  454. * @Default: 0
  455. *
  456. * This ini is used to configure peer uapsd inactivity time.
  457. *
  458. * Related: gEnableTDLSSupport.
  459. *
  460. * Supported Feature: TDLS
  461. *
  462. * Usage: Internal/External
  463. *
  464. * </ini>
  465. */
  466. #define CFG_TDLS_PUAPSD_INACTIVITY_TIME CFG_INI_UINT( \
  467. "gTDLSPuapsdInactivityTime", \
  468. 0, \
  469. 10, \
  470. 0, \
  471. CFG_VALUE_OR_DEFAULT, \
  472. "Peer UAPSD Inactivity time")
  473. /*
  474. * <ini>
  475. * gTDLSPuapsdInactivityTime - Peer UAPSD Inactivity time.
  476. * @Min: 0
  477. * @Max: 10
  478. * @Default: 0
  479. *
  480. * This ini is used to configure peer uapsd inactivity time.
  481. *
  482. * Related: gEnableTDLSSupport.
  483. *
  484. * Supported Feature: TDLS
  485. *
  486. * Usage: Internal/External
  487. *
  488. * </ini>
  489. */
  490. #define CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD CFG_INI_UINT( \
  491. "gTDLSPuapsdRxFrameThreshold", \
  492. 10, \
  493. 20, \
  494. 10, \
  495. CFG_VALUE_OR_DEFAULT, \
  496. "Peer UAPSD Rx frame threshold")
  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_IND_WINDOW CFG_INI_UINT( \
  516. "gTDLSPuapsdPTIWindow", \
  517. 1, \
  518. 5, \
  519. 2, \
  520. CFG_VALUE_OR_DEFAULT, \
  521. "This ini is used to configure peer traffic indication")
  522. /*
  523. * <ini>
  524. * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
  525. * window.
  526. * @Min: 1
  527. * @Max: 5
  528. * @Default: 2
  529. *
  530. * This ini is used to configure buffering time in number of beacon intervals.
  531. *
  532. * Related: gEnableTDLSSupport.
  533. *
  534. * Supported Feature: TDLS
  535. *
  536. * Usage: Internal/External
  537. *
  538. * </ini>
  539. */
  540. #define CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT CFG_INI_UINT( \
  541. "gTDLSPuapsdPTRTimeout", \
  542. 0, \
  543. 10000, \
  544. 5000, \
  545. CFG_VALUE_OR_DEFAULT, \
  546. "Peer Traffic Response timer duration in ms")
  547. /*
  548. * <ini>
  549. * gTDLSPuapsdPTIWindow - This ini is used to configure peer traffic indication
  550. * window.
  551. * @Min: 1
  552. * @Max: 5
  553. * @Default: 2
  554. *
  555. * This ini is used to configure buffering time in number of beacon intervals.
  556. *
  557. * Related: gEnableTDLSSupport.
  558. *
  559. * Supported Feature: TDLS
  560. *
  561. * Usage: Internal/External
  562. *
  563. * </ini>
  564. */
  565. #define CFG_TDLS_EXTERNAL_CONTROL CFG_INI_BOOL( \
  566. "gTDLSExternalControl", \
  567. 1, \
  568. "Enable external TDLS control")
  569. /*
  570. * <ini>
  571. * gEnableTDLSWmmMode - Enables WMM support over TDLS link.
  572. * @Min: 0
  573. * @Max: 1
  574. * @Default: 1
  575. *
  576. * This ini is used to enable/disable WMM support over TDLS link.
  577. * This is required to be set to 1 for any TDLS and uAPSD functionality.
  578. *
  579. * Related: gEnableTDLSSupport.
  580. *
  581. * Supported Feature: TDLS
  582. *
  583. * Usage: Internal/External
  584. *
  585. * </ini>
  586. */
  587. #define CFG_TDLS_WMM_MODE_ENABLE CFG_INI_BOOL( \
  588. "gEnableTDLSWmmMode", \
  589. 1, \
  590. "Enables WMM support over TDLS link")
  591. /*
  592. * <ini>
  593. * gEnableTDLSScan - Allow scan and maintain TDLS link.
  594. * @Min: 0
  595. * @Max: 1
  596. * @Default: 0
  597. *
  598. * This ini is used to enable/disable TDLS scan.
  599. * 0: If peer is not buffer STA capable and device is not sleep STA
  600. * capable, then teardown TDLS link when scan is initiated. If peer
  601. * is buffer STA and we can be sleep STA then TDLS link is maintained
  602. * during scan.
  603. * 1: Maintain TDLS link and allow scan even if peer is not buffer STA
  604. * capable and device is not sleep STA capable. There will be loss of
  605. * Rx pkts since peer would not know when device moves away from tdls
  606. * channel. Tx on TDLS link would stop when device moves away from tdls
  607. * channel.
  608. *
  609. * Related: gEnableTDLSSupport.
  610. *
  611. * Supported Feature: TDLS
  612. *
  613. * Usage: Internal/External
  614. *
  615. * </ini>
  616. */
  617. #define CFG_TDLS_SCAN_ENABLE CFG_INI_BOOL( \
  618. "gEnableTDLSScan", \
  619. 0, \
  620. "Allow scan and maintain TDLS link")
  621. /*
  622. * <ini>
  623. * gTDLSPeerKickoutThreshold - TDLS peer kick out threshold to firmware.
  624. * @Min: 10
  625. * @Max: 5000
  626. * @Default: 96
  627. *
  628. * This ini is used to configure TDLS peer kick out threshold to firmware.
  629. * Firmware will use this value to determine, when to send TDLS
  630. * peer kick out event to host.
  631. * E.g.
  632. * if peer kick out threshold is 10, then firmware will wait for 10
  633. * consecutive packet failures and then send TDLS kick out
  634. * notification to host driver
  635. *
  636. * Related: gEnableTDLSSupport.
  637. *
  638. * Supported Feature: TDLS
  639. *
  640. * Usage: Internal/External
  641. *
  642. * </ini>
  643. */
  644. #define CFG_TDLS_PEER_KICKOUT_THRESHOLD CFG_INI_UINT( \
  645. "gTDLSPeerKickoutThreshold", \
  646. 10, \
  647. 5000, \
  648. 96, \
  649. CFG_VALUE_OR_DEFAULT, \
  650. "TDLS peer kick out threshold to firmware")
  651. /*
  652. * <ini>
  653. * gTDLSEnableDeferTime - Timer to defer for enabling TDLS on P2P listen.
  654. * @Min: 500
  655. * @Max: 6000
  656. * @Default: 2000
  657. *
  658. * This ini is used to set the timer to defer for enabling TDLS on P2P
  659. * listen (value in milliseconds).
  660. *
  661. * Related: gEnableTDLSSupport.
  662. *
  663. * Supported Feature: TDLS
  664. *
  665. * Usage: Internal/External
  666. *
  667. * </ini>
  668. */
  669. #define CFG_TDLS_ENABLE_DEFER_TIMER CFG_INI_UINT( \
  670. "gTDLSEnableDeferTime", \
  671. 500, \
  672. 6000, \
  673. 2000, \
  674. CFG_VALUE_OR_DEFAULT, \
  675. "Timer to defer for enabling TDLS on P2P listen")
  676. #define CFG_TDLS_ALL \
  677. CFG(CFG_TDLS_QOS_WMM_UAPSD_MASK) \
  678. CFG(CFG_TDLS_BUF_STA_ENABLED) \
  679. CFG(CFG_TDLS_PUAPSD_INACT_TIME) \
  680. CFG(CFG_TDLS_RX_FRAME_THRESHOLD) \
  681. CFG(CFG_TDLS_OFF_CHANNEL_ENABLED) \
  682. CFG(CFG_TDLS_SUPPORT_ENABLE) \
  683. CFG(CFG_TDLS_IMPLICIT_TRIGGER) \
  684. CFG(CFG_TDLS_TX_STATS_PERIOD) \
  685. CFG(CFG_TDLS_TX_PACKET_THRESHOLD) \
  686. CFG(CFG_TDLS_MAX_DISCOVERY_ATTEMPT) \
  687. CFG(CFG_TDLS_IDLE_TIMEOUT) \
  688. CFG(CFG_TDLS_IDLE_PACKET_THRESHOLD) \
  689. CFG(CFG_TDLS_RSSI_TRIGGER_THRESHOLD) \
  690. CFG(CFG_TDLS_RSSI_TEARDOWN_THRESHOLD) \
  691. CFG(CFG_TDLS_RSSI_DELTA) \
  692. CFG(CFG_TDLS_PREFERRED_OFF_CHANNEL_NUM) \
  693. CFG(CFG_TDLS_PREFERRED_OFF_CHANNEL_BW) \
  694. CFG(CFG_TDLS_PUAPSD_INACTIVITY_TIME) \
  695. CFG(CFG_TDLS_PUAPSD_RX_FRAME_THRESHOLD) \
  696. CFG(CFG_TDLS_PUAPSD_PEER_TRAFFIC_IND_WINDOW) \
  697. CFG(CFG_TDLS_PUAPSD_PEER_TRAFFIC_RSP_TIMEOUT) \
  698. CFG(CFG_TDLS_EXTERNAL_CONTROL) \
  699. CFG(CFG_TDLS_WMM_MODE_ENABLE) \
  700. CFG(CFG_TDLS_SCAN_ENABLE) \
  701. CFG(CFG_TDLS_PEER_KICKOUT_THRESHOLD) \
  702. CFG(CFG_TDLS_ENABLE_DEFER_TIMER)
  703. #endif