wl1271_conf.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. /*
  2. * This file is part of wl1271
  3. *
  4. * Copyright (C) 2009 Nokia Corporation
  5. *
  6. * Contact: Luciano Coelho <luciano.coelho@nokia.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * version 2 as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA
  21. *
  22. */
  23. #ifndef __WL1271_CONF_H__
  24. #define __WL1271_CONF_H__
  25. enum {
  26. CONF_HW_BIT_RATE_1MBPS = BIT(0),
  27. CONF_HW_BIT_RATE_2MBPS = BIT(1),
  28. CONF_HW_BIT_RATE_5_5MBPS = BIT(2),
  29. CONF_HW_BIT_RATE_6MBPS = BIT(3),
  30. CONF_HW_BIT_RATE_9MBPS = BIT(4),
  31. CONF_HW_BIT_RATE_11MBPS = BIT(5),
  32. CONF_HW_BIT_RATE_12MBPS = BIT(6),
  33. CONF_HW_BIT_RATE_18MBPS = BIT(7),
  34. CONF_HW_BIT_RATE_22MBPS = BIT(8),
  35. CONF_HW_BIT_RATE_24MBPS = BIT(9),
  36. CONF_HW_BIT_RATE_36MBPS = BIT(10),
  37. CONF_HW_BIT_RATE_48MBPS = BIT(11),
  38. CONF_HW_BIT_RATE_54MBPS = BIT(12),
  39. CONF_HW_BIT_RATE_MCS_0 = BIT(13),
  40. CONF_HW_BIT_RATE_MCS_1 = BIT(14),
  41. CONF_HW_BIT_RATE_MCS_2 = BIT(15),
  42. CONF_HW_BIT_RATE_MCS_3 = BIT(16),
  43. CONF_HW_BIT_RATE_MCS_4 = BIT(17),
  44. CONF_HW_BIT_RATE_MCS_5 = BIT(18),
  45. CONF_HW_BIT_RATE_MCS_6 = BIT(19),
  46. CONF_HW_BIT_RATE_MCS_7 = BIT(20)
  47. };
  48. enum {
  49. CONF_HW_RATE_INDEX_1MBPS = 0,
  50. CONF_HW_RATE_INDEX_2MBPS = 1,
  51. CONF_HW_RATE_INDEX_5_5MBPS = 2,
  52. CONF_HW_RATE_INDEX_6MBPS = 3,
  53. CONF_HW_RATE_INDEX_9MBPS = 4,
  54. CONF_HW_RATE_INDEX_11MBPS = 5,
  55. CONF_HW_RATE_INDEX_12MBPS = 6,
  56. CONF_HW_RATE_INDEX_18MBPS = 7,
  57. CONF_HW_RATE_INDEX_22MBPS = 8,
  58. CONF_HW_RATE_INDEX_24MBPS = 9,
  59. CONF_HW_RATE_INDEX_36MBPS = 10,
  60. CONF_HW_RATE_INDEX_48MBPS = 11,
  61. CONF_HW_RATE_INDEX_54MBPS = 12,
  62. CONF_HW_RATE_INDEX_MAX = CONF_HW_RATE_INDEX_54MBPS,
  63. };
  64. struct conf_sg_settings {
  65. /*
  66. * Defines the PER threshold in PPM of the BT voice of which reaching
  67. * this value will trigger raising the priority of the BT voice by
  68. * the BT IP until next NFS sample interval time as defined in
  69. * nfs_sample_interval.
  70. *
  71. * Unit: PER value in PPM (parts per million)
  72. * #Error_packets / #Total_packets
  73. * Range: u32
  74. */
  75. u32 per_threshold;
  76. /*
  77. * This value is an absolute time in micro-seconds to limit the
  78. * maximum scan duration compensation while in SG
  79. */
  80. u32 max_scan_compensation_time;
  81. /* Defines the PER threshold of the BT voice of which reaching this
  82. * value will trigger raising the priority of the BT voice until next
  83. * NFS sample interval time as defined in sample_interval.
  84. *
  85. * Unit: msec
  86. * Range: 1-65000
  87. */
  88. u16 nfs_sample_interval;
  89. /*
  90. * Defines the load ratio for the BT.
  91. * The WLAN ratio is: 100 - load_ratio
  92. *
  93. * Unit: Percent
  94. * Range: 0-100
  95. */
  96. u8 load_ratio;
  97. /*
  98. * true - Co-ex is allowed to enter/exit P.S automatically and
  99. * transparently to the host
  100. *
  101. * false - Co-ex is disallowed to enter/exit P.S and will trigger an
  102. * event to the host to notify for the need to enter/exit P.S
  103. * due to BT change state
  104. *
  105. */
  106. u8 auto_ps_mode;
  107. /*
  108. * This parameter defines the compensation percentage of num of probe
  109. * requests in case scan is initiated during BT voice/BT ACL
  110. * guaranteed link.
  111. *
  112. * Unit: Percent
  113. * Range: 0-255 (0 - No compensation)
  114. */
  115. u8 probe_req_compensation;
  116. /*
  117. * This parameter defines the compensation percentage of scan window
  118. * size in case scan is initiated during BT voice/BT ACL Guaranteed
  119. * link.
  120. *
  121. * Unit: Percent
  122. * Range: 0-255 (0 - No compensation)
  123. */
  124. u8 scan_window_compensation;
  125. /*
  126. * Defines the antenna configuration.
  127. *
  128. * Range: 0 - Single Antenna; 1 - Dual Antenna
  129. */
  130. u8 antenna_config;
  131. /*
  132. * The percent out of the Max consecutive beacon miss roaming trigger
  133. * which is the threshold for raising the priority of beacon
  134. * reception.
  135. *
  136. * Range: 1-100
  137. * N = MaxConsecutiveBeaconMiss
  138. * P = coexMaxConsecutiveBeaconMissPrecent
  139. * Threshold = MIN( N-1, round(N * P / 100))
  140. */
  141. u8 beacon_miss_threshold;
  142. /*
  143. * The RX rate threshold below which rate adaptation is assumed to be
  144. * occurring at the AP which will raise priority for ACTIVE_RX and RX
  145. * SP.
  146. *
  147. * Range: HW_BIT_RATE_*
  148. */
  149. u32 rate_adaptation_threshold;
  150. /*
  151. * The SNR above which the RX rate threshold indicating AP rate
  152. * adaptation is valid
  153. *
  154. * Range: -128 - 127
  155. */
  156. s8 rate_adaptation_snr;
  157. };
  158. enum conf_rx_queue_type {
  159. CONF_RX_QUEUE_TYPE_LOW_PRIORITY, /* All except the high priority */
  160. CONF_RX_QUEUE_TYPE_HIGH_PRIORITY, /* Management and voice packets */
  161. };
  162. struct conf_rx_settings {
  163. /*
  164. * The maximum amount of time, in TU, before the
  165. * firmware discards the MSDU.
  166. *
  167. * Range: 0 - 0xFFFFFFFF
  168. */
  169. u32 rx_msdu_life_time;
  170. /*
  171. * Packet detection threshold in the PHY.
  172. *
  173. * FIXME: details unknown.
  174. */
  175. u32 packet_detection_threshold;
  176. /*
  177. * The longest time the STA will wait to receive traffic from the AP
  178. * after a PS-poll has been transmitted.
  179. *
  180. * Range: 0 - 200000
  181. */
  182. u16 ps_poll_timeout;
  183. /*
  184. * The longest time the STA will wait to receive traffic from the AP
  185. * after a frame has been sent from an UPSD enabled queue.
  186. *
  187. * Range: 0 - 200000
  188. */
  189. u16 upsd_timeout;
  190. /*
  191. * The number of octets in an MPDU, below which an RTS/CTS
  192. * handshake is not performed.
  193. *
  194. * Range: 0 - 4096
  195. */
  196. u16 rts_threshold;
  197. /*
  198. * The RX Clear Channel Assessment threshold in the PHY
  199. * (the energy threshold).
  200. *
  201. * Range: ENABLE_ENERGY_D == 0x140A
  202. * DISABLE_ENERGY_D == 0xFFEF
  203. */
  204. u16 rx_cca_threshold;
  205. /*
  206. * Occupied Rx mem-blocks number which requires interrupting the host
  207. * (0 = no buffering, 0xffff = disabled).
  208. *
  209. * Range: u16
  210. */
  211. u16 irq_blk_threshold;
  212. /*
  213. * Rx packets number which requires interrupting the host
  214. * (0 = no buffering).
  215. *
  216. * Range: u16
  217. */
  218. u16 irq_pkt_threshold;
  219. /*
  220. * Max time in msec the FW may delay RX-Complete interrupt.
  221. *
  222. * Range: 1 - 100
  223. */
  224. u16 irq_timeout;
  225. /*
  226. * The RX queue type.
  227. *
  228. * Range: RX_QUEUE_TYPE_RX_LOW_PRIORITY, RX_QUEUE_TYPE_RX_HIGH_PRIORITY,
  229. */
  230. u8 queue_type;
  231. };
  232. #define CONF_TX_MAX_RATE_CLASSES 8
  233. #define CONF_TX_RATE_MASK_UNSPECIFIED 0
  234. #define CONF_TX_RATE_MASK_BASIC (CONF_HW_BIT_RATE_1MBPS | \
  235. CONF_HW_BIT_RATE_2MBPS)
  236. #define CONF_TX_RATE_RETRY_LIMIT 10
  237. struct conf_tx_rate_class {
  238. /*
  239. * The rates enabled for this rate class.
  240. *
  241. * Range: CONF_HW_BIT_RATE_* bit mask
  242. */
  243. u32 enabled_rates;
  244. /*
  245. * The dot11 short retry limit used for TX retries.
  246. *
  247. * Range: u8
  248. */
  249. u8 short_retry_limit;
  250. /*
  251. * The dot11 long retry limit used for TX retries.
  252. *
  253. * Range: u8
  254. */
  255. u8 long_retry_limit;
  256. /*
  257. * Flags controlling the attributes of TX transmission.
  258. *
  259. * Range: bit 0: Truncate - when set, FW attempts to send a frame stop
  260. * when the total valid per-rate attempts have
  261. * been exhausted; otherwise transmissions
  262. * will continue at the lowest available rate
  263. * until the appropriate one of the
  264. * short_retry_limit, long_retry_limit,
  265. * dot11_max_transmit_msdu_life_time, or
  266. * max_tx_life_time, is exhausted.
  267. * 1: Preamble Override - indicates if the preamble type
  268. * should be used in TX.
  269. * 2: Preamble Type - the type of the preamble to be used by
  270. * the policy (0 - long preamble, 1 - short preamble.
  271. */
  272. u8 aflags;
  273. };
  274. #define CONF_TX_MAX_AC_COUNT 4
  275. /* Slot number setting to start transmission at PIFS interval */
  276. #define CONF_TX_AIFS_PIFS 1
  277. /* Slot number setting to start transmission at DIFS interval normal
  278. * DCF access */
  279. #define CONF_TX_AIFS_DIFS 2
  280. enum conf_tx_ac {
  281. CONF_TX_AC_BE = 0, /* best effort / legacy */
  282. CONF_TX_AC_BK = 1, /* background */
  283. CONF_TX_AC_VI = 2, /* video */
  284. CONF_TX_AC_VO = 3, /* voice */
  285. CONF_TX_AC_CTS2SELF = 4, /* fictious AC, follows AC_VO */
  286. CONF_TX_AC_ANY_TID = 0x1f
  287. };
  288. struct conf_tx_ac_category {
  289. /*
  290. * The AC class identifier.
  291. *
  292. * Range: enum conf_tx_ac
  293. */
  294. u8 ac;
  295. /*
  296. * The contention window minimum size (in slots) for the access
  297. * class.
  298. *
  299. * Range: u8
  300. */
  301. u8 cw_min;
  302. /*
  303. * The contention window maximum size (in slots) for the access
  304. * class.
  305. *
  306. * Range: u8
  307. */
  308. u16 cw_max;
  309. /*
  310. * The AIF value (in slots) for the access class.
  311. *
  312. * Range: u8
  313. */
  314. u8 aifsn;
  315. /*
  316. * The TX Op Limit (in microseconds) for the access class.
  317. *
  318. * Range: u16
  319. */
  320. u16 tx_op_limit;
  321. };
  322. #define CONF_TX_MAX_TID_COUNT 7
  323. enum {
  324. CONF_CHANNEL_TYPE_DCF = 0, /* DC/LEGACY*/
  325. CONF_CHANNEL_TYPE_EDCF = 1, /* EDCA*/
  326. CONF_CHANNEL_TYPE_HCCA = 2, /* HCCA*/
  327. };
  328. enum {
  329. CONF_PS_SCHEME_LEGACY = 0,
  330. CONF_PS_SCHEME_UPSD_TRIGGER = 1,
  331. CONF_PS_SCHEME_LEGACY_PSPOLL = 2,
  332. CONF_PS_SCHEME_SAPSD = 3,
  333. };
  334. enum {
  335. CONF_ACK_POLICY_LEGACY = 0,
  336. CONF_ACK_POLICY_NO_ACK = 1,
  337. CONF_ACK_POLICY_BLOCK = 2,
  338. };
  339. struct conf_tx_tid {
  340. u8 queue_id;
  341. u8 channel_type;
  342. u8 tsid;
  343. u8 ps_scheme;
  344. u8 ack_policy;
  345. u32 apsd_conf[2];
  346. };
  347. struct conf_tx_settings {
  348. /*
  349. * The TX ED value for TELEC Enable/Disable.
  350. *
  351. * Range: 0, 1
  352. */
  353. u8 tx_energy_detection;
  354. /*
  355. * Configuration for rate classes for TX (currently only one
  356. * rate class supported.)
  357. */
  358. struct conf_tx_rate_class rc_conf;
  359. /*
  360. * Configuration for access categories for TX rate control.
  361. */
  362. u8 ac_conf_count;
  363. struct conf_tx_ac_category ac_conf[CONF_TX_MAX_AC_COUNT];
  364. /*
  365. * Configuration for TID parameters.
  366. */
  367. u8 tid_conf_count;
  368. struct conf_tx_tid tid_conf[CONF_TX_MAX_TID_COUNT];
  369. /*
  370. * The TX fragmentation threshold.
  371. *
  372. * Range: u16
  373. */
  374. u16 frag_threshold;
  375. /*
  376. * Max time in msec the FW may delay frame TX-Complete interrupt.
  377. *
  378. * Range: u16
  379. */
  380. u16 tx_compl_timeout;
  381. /*
  382. * Completed TX packet count which requires to issue the TX-Complete
  383. * interrupt.
  384. *
  385. * Range: u16
  386. */
  387. u16 tx_compl_threshold;
  388. };
  389. enum {
  390. CONF_WAKE_UP_EVENT_BEACON = 0x01, /* Wake on every Beacon*/
  391. CONF_WAKE_UP_EVENT_DTIM = 0x02, /* Wake on every DTIM*/
  392. CONF_WAKE_UP_EVENT_N_DTIM = 0x04, /* Wake every Nth DTIM */
  393. CONF_WAKE_UP_EVENT_N_BEACONS = 0x08, /* Wake every Nth beacon */
  394. CONF_WAKE_UP_EVENT_BITS_MASK = 0x0F
  395. };
  396. #define CONF_MAX_BCN_FILT_IE_COUNT 32
  397. #define CONF_BCN_RULE_PASS_ON_CHANGE BIT(0)
  398. #define CONF_BCN_RULE_PASS_ON_APPEARANCE BIT(1)
  399. #define CONF_BCN_IE_OUI_LEN 3
  400. #define CONF_BCN_IE_VER_LEN 2
  401. struct conf_bcn_filt_rule {
  402. /*
  403. * IE number to which to associate a rule.
  404. *
  405. * Range: u8
  406. */
  407. u8 ie;
  408. /*
  409. * Rule to associate with the specific ie.
  410. *
  411. * Range: CONF_BCN_RULE_PASS_ON_*
  412. */
  413. u8 rule;
  414. /*
  415. * OUI for the vendor specifie IE (221)
  416. */
  417. u8 oui[CONF_BCN_IE_OUI_LEN];
  418. /*
  419. * Type for the vendor specifie IE (221)
  420. */
  421. u8 type;
  422. /*
  423. * Version for the vendor specifie IE (221)
  424. */
  425. u8 version[CONF_BCN_IE_VER_LEN];
  426. };
  427. #define CONF_MAX_RSSI_SNR_TRIGGERS 8
  428. enum {
  429. CONF_TRIG_METRIC_RSSI_BEACON = 0,
  430. CONF_TRIG_METRIC_RSSI_DATA,
  431. CONF_TRIG_METRIC_SNR_BEACON,
  432. CONF_TRIG_METRIC_SNR_DATA
  433. };
  434. enum {
  435. CONF_TRIG_EVENT_TYPE_LEVEL = 0,
  436. CONF_TRIG_EVENT_TYPE_EDGE
  437. };
  438. enum {
  439. CONF_TRIG_EVENT_DIR_LOW = 0,
  440. CONF_TRIG_EVENT_DIR_HIGH,
  441. CONF_TRIG_EVENT_DIR_BIDIR
  442. };
  443. struct conf_sig_trigger {
  444. /*
  445. * The RSSI / SNR threshold value.
  446. *
  447. * FIXME: what is the range?
  448. */
  449. s16 threshold;
  450. /*
  451. * Minimum delay between two trigger events for this trigger in ms.
  452. *
  453. * Range: 0 - 60000
  454. */
  455. u16 pacing;
  456. /*
  457. * The measurement data source for this trigger.
  458. *
  459. * Range: CONF_TRIG_METRIC_*
  460. */
  461. u8 metric;
  462. /*
  463. * The trigger type of this trigger.
  464. *
  465. * Range: CONF_TRIG_EVENT_TYPE_*
  466. */
  467. u8 type;
  468. /*
  469. * The direction of the trigger.
  470. *
  471. * Range: CONF_TRIG_EVENT_DIR_*
  472. */
  473. u8 direction;
  474. /*
  475. * Hysteresis range of the trigger around the threshold (in dB)
  476. *
  477. * Range: u8
  478. */
  479. u8 hysteresis;
  480. /*
  481. * Index of the trigger rule.
  482. *
  483. * Range: 0 - CONF_MAX_RSSI_SNR_TRIGGERS-1
  484. */
  485. u8 index;
  486. /*
  487. * Enable / disable this rule (to use for clearing rules.)
  488. *
  489. * Range: 1 - Enabled, 2 - Not enabled
  490. */
  491. u8 enable;
  492. };
  493. struct conf_sig_weights {
  494. /*
  495. * RSSI from beacons average weight.
  496. *
  497. * Range: u8
  498. */
  499. u8 rssi_bcn_avg_weight;
  500. /*
  501. * RSSI from data average weight.
  502. *
  503. * Range: u8
  504. */
  505. u8 rssi_pkt_avg_weight;
  506. /*
  507. * SNR from beacons average weight.
  508. *
  509. * Range: u8
  510. */
  511. u8 snr_bcn_avg_weight;
  512. /*
  513. * SNR from data average weight.
  514. *
  515. * Range: u8
  516. */
  517. u8 snr_pkt_avg_weight;
  518. };
  519. enum conf_bcn_filt_mode {
  520. CONF_BCN_FILT_MODE_DISABLED = 0,
  521. CONF_BCN_FILT_MODE_ENABLED = 1
  522. };
  523. enum conf_bet_mode {
  524. CONF_BET_MODE_DISABLE = 0,
  525. CONF_BET_MODE_ENABLE = 1,
  526. };
  527. struct conf_conn_settings {
  528. /*
  529. * Firmware wakeup conditions configuration. The host may set only
  530. * one bit.
  531. *
  532. * Range: CONF_WAKE_UP_EVENT_*
  533. */
  534. u8 wake_up_event;
  535. /*
  536. * Listen interval for beacons or Dtims.
  537. *
  538. * Range: 0 for beacon and Dtim wakeup
  539. * 1-10 for x Dtims
  540. * 1-255 for x beacons
  541. */
  542. u8 listen_interval;
  543. /*
  544. * Enable or disable the beacon filtering.
  545. *
  546. * Range: CONF_BCN_FILT_MODE_*
  547. */
  548. enum conf_bcn_filt_mode bcn_filt_mode;
  549. /*
  550. * Configure Beacon filter pass-thru rules.
  551. */
  552. u8 bcn_filt_ie_count;
  553. struct conf_bcn_filt_rule bcn_filt_ie[CONF_MAX_BCN_FILT_IE_COUNT];
  554. /*
  555. * The number of consequtive beacons to lose, before the firmware
  556. * becomes out of synch.
  557. *
  558. * Range: u32
  559. */
  560. u32 synch_fail_thold;
  561. /*
  562. * After out-of-synch, the number of TU's to wait without a further
  563. * received beacon (or probe response) before issuing the BSS_EVENT_LOSE
  564. * event.
  565. *
  566. * Range: u32
  567. */
  568. u32 bss_lose_timeout;
  569. /*
  570. * Beacon receive timeout.
  571. *
  572. * Range: u32
  573. */
  574. u32 beacon_rx_timeout;
  575. /*
  576. * Broadcast receive timeout.
  577. *
  578. * Range: u32
  579. */
  580. u32 broadcast_timeout;
  581. /*
  582. * Enable/disable reception of broadcast packets in power save mode
  583. *
  584. * Range: 1 - enable, 0 - disable
  585. */
  586. u8 rx_broadcast_in_ps;
  587. /*
  588. * Consequtive PS Poll failures before sending event to driver
  589. *
  590. * Range: u8
  591. */
  592. u8 ps_poll_threshold;
  593. /*
  594. * Configuration of signal (rssi/snr) triggers.
  595. */
  596. u8 sig_trigger_count;
  597. struct conf_sig_trigger sig_trigger[CONF_MAX_RSSI_SNR_TRIGGERS];
  598. /*
  599. * Configuration of signal average weights.
  600. */
  601. struct conf_sig_weights sig_weights;
  602. /*
  603. * Specifies if beacon early termination procedure is enabled or
  604. * disabled.
  605. *
  606. * Range: CONF_BET_MODE_*
  607. */
  608. u8 bet_enable;
  609. /*
  610. * Specifies the maximum number of consecutive beacons that may be
  611. * early terminated. After this number is reached at least one full
  612. * beacon must be correctly received in FW before beacon ET
  613. * resumes.
  614. *
  615. * Range 0 - 255
  616. */
  617. u8 bet_max_consecutive;
  618. /*
  619. * Specifies the maximum number of times to try PSM entry if it fails
  620. * (if sending the appropriate null-func message fails.)
  621. *
  622. * Range 0 - 255
  623. */
  624. u8 psm_entry_retries;
  625. };
  626. enum {
  627. CONF_REF_CLK_19_2_E,
  628. CONF_REF_CLK_26_E,
  629. CONF_REF_CLK_38_4_E,
  630. CONF_REF_CLK_52_E
  631. };
  632. enum single_dual_band_enum {
  633. CONF_SINGLE_BAND,
  634. CONF_DUAL_BAND
  635. };
  636. #define CONF_RSSI_AND_PROCESS_COMPENSATION_SIZE 15
  637. #define CONF_NUMBER_OF_SUB_BANDS_5 7
  638. #define CONF_NUMBER_OF_RATE_GROUPS 6
  639. #define CONF_NUMBER_OF_CHANNELS_2_4 14
  640. #define CONF_NUMBER_OF_CHANNELS_5 35
  641. struct conf_radio_parms {
  642. /*
  643. * FEM parameter set to use
  644. *
  645. * Range: 0 or 1
  646. */
  647. u8 fem;
  648. };
  649. struct conf_init_settings {
  650. /*
  651. * Configure radio parameters.
  652. */
  653. struct conf_radio_parms radioparam;
  654. };
  655. struct conf_itrim_settings {
  656. /* enable dco itrim */
  657. u8 enable;
  658. /* moderation timeout in microsecs from the last TX */
  659. u32 timeout;
  660. };
  661. struct conf_pm_config_settings {
  662. /*
  663. * Host clock settling time
  664. *
  665. * Range: 0 - 30000 us
  666. */
  667. u32 host_clk_settling_time;
  668. /*
  669. * Host fast wakeup support
  670. *
  671. * Range: true, false
  672. */
  673. bool host_fast_wakeup_support;
  674. };
  675. struct conf_drv_settings {
  676. struct conf_sg_settings sg;
  677. struct conf_rx_settings rx;
  678. struct conf_tx_settings tx;
  679. struct conf_conn_settings conn;
  680. struct conf_init_settings init;
  681. struct conf_itrim_settings itrim;
  682. struct conf_pm_config_settings pm_config;
  683. };
  684. #endif