wl12xx.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. /*
  2. * This file is part of wl1271
  3. *
  4. * Copyright (C) 1998-2009 Texas Instruments. All rights reserved.
  5. * Copyright (C) 2008-2009 Nokia Corporation
  6. *
  7. * Contact: Luciano Coelho <luciano.coelho@nokia.com>
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. * 02110-1301 USA
  22. *
  23. */
  24. #ifndef __WL12XX_H__
  25. #define __WL12XX_H__
  26. #include <linux/mutex.h>
  27. #include <linux/completion.h>
  28. #include <linux/spinlock.h>
  29. #include <linux/list.h>
  30. #include <linux/bitops.h>
  31. #include <net/mac80211.h>
  32. #include "conf.h"
  33. #include "ini.h"
  34. /*
  35. * FW versions support BA 11n
  36. * versions marks x.x.x.50-60.x
  37. */
  38. #define WL12XX_BA_SUPPORT_FW_COST_VER2_START 50
  39. #define WL12XX_BA_SUPPORT_FW_COST_VER2_END 60
  40. #define WL127X_FW_NAME "ti-connectivity/wl127x-fw-3.bin"
  41. #define WL128X_FW_NAME "ti-connectivity/wl128x-fw-3.bin"
  42. /*
  43. * wl127x and wl128x are using the same NVS file name. However, the
  44. * ini parameters between them are different. The driver validates
  45. * the correct NVS size in wl1271_boot_upload_nvs().
  46. */
  47. #define WL12XX_NVS_NAME "ti-connectivity/wl1271-nvs.bin"
  48. #define WL1271_TX_SECURITY_LO16(s) ((u16)((s) & 0xffff))
  49. #define WL1271_TX_SECURITY_HI32(s) ((u32)(((s) >> 16) & 0xffffffff))
  50. #define WL1271_TX_SQN_POST_RECOVERY_PADDING 0xff
  51. #define WL1271_CIPHER_SUITE_GEM 0x00147201
  52. #define WL1271_BUSY_WORD_CNT 1
  53. #define WL1271_BUSY_WORD_LEN (WL1271_BUSY_WORD_CNT * sizeof(u32))
  54. #define WL1271_ELP_HW_STATE_ASLEEP 0
  55. #define WL1271_ELP_HW_STATE_IRQ 1
  56. #define WL1271_DEFAULT_BEACON_INT 100
  57. #define WL1271_DEFAULT_DTIM_PERIOD 1
  58. #define WL12XX_MAX_ROLES 4
  59. #define WL12XX_MAX_LINKS 12
  60. #define WL12XX_INVALID_ROLE_ID 0xff
  61. #define WL12XX_INVALID_LINK_ID 0xff
  62. #define WL12XX_MAX_RATE_POLICIES 16
  63. /* Defined by FW as 0. Will not be freed or allocated. */
  64. #define WL12XX_SYSTEM_HLID 0
  65. /*
  66. * When in AP-mode, we allow (at least) this number of packets
  67. * to be transmitted to FW for a STA in PS-mode. Only when packets are
  68. * present in the FW buffers it will wake the sleeping STA. We want to put
  69. * enough packets for the driver to transmit all of its buffered data before
  70. * the STA goes to sleep again. But we don't want to take too much memory
  71. * as it might hurt the throughput of active STAs.
  72. */
  73. #define WL1271_PS_STA_MAX_PACKETS 2
  74. #define WL1271_AP_BSS_INDEX 0
  75. #define WL1271_AP_DEF_BEACON_EXP 20
  76. #define ACX_TX_DESCRIPTORS 16
  77. #define WL1271_AGGR_BUFFER_SIZE (4 * PAGE_SIZE)
  78. enum wl1271_state {
  79. WL1271_STATE_OFF,
  80. WL1271_STATE_ON,
  81. WL1271_STATE_PLT,
  82. };
  83. enum wl1271_partition_type {
  84. PART_DOWN,
  85. PART_WORK,
  86. PART_DRPW,
  87. PART_TABLE_LEN
  88. };
  89. struct wl1271_partition {
  90. u32 size;
  91. u32 start;
  92. };
  93. struct wl1271_partition_set {
  94. struct wl1271_partition mem;
  95. struct wl1271_partition reg;
  96. struct wl1271_partition mem2;
  97. struct wl1271_partition mem3;
  98. };
  99. struct wl1271;
  100. enum {
  101. FW_VER_CHIP,
  102. FW_VER_IF_TYPE,
  103. FW_VER_MAJOR,
  104. FW_VER_SUBTYPE,
  105. FW_VER_MINOR,
  106. NUM_FW_VER
  107. };
  108. #define FW_VER_CHIP_WL127X 6
  109. #define FW_VER_CHIP_WL128X 7
  110. #define FW_VER_IF_TYPE_STA 1
  111. #define FW_VER_IF_TYPE_AP 2
  112. #define FW_VER_MINOR_1_SPARE_STA_MIN 58
  113. #define FW_VER_MINOR_1_SPARE_AP_MIN 47
  114. #define FW_VER_MINOR_FWLOG_STA_MIN 70
  115. struct wl1271_chip {
  116. u32 id;
  117. char fw_ver_str[ETHTOOL_BUSINFO_LEN];
  118. unsigned int fw_ver[NUM_FW_VER];
  119. };
  120. struct wl1271_stats {
  121. struct acx_statistics *fw_stats;
  122. unsigned long fw_stats_update;
  123. unsigned int retry_count;
  124. unsigned int excessive_retries;
  125. };
  126. #define NUM_TX_QUEUES 4
  127. #define NUM_RX_PKT_DESC 8
  128. #define AP_MAX_STATIONS 8
  129. /* FW status registers */
  130. struct wl12xx_fw_status {
  131. __le32 intr;
  132. u8 fw_rx_counter;
  133. u8 drv_rx_counter;
  134. u8 reserved;
  135. u8 tx_results_counter;
  136. __le32 rx_pkt_descs[NUM_RX_PKT_DESC];
  137. __le32 fw_localtime;
  138. /*
  139. * A bitmap (where each bit represents a single HLID)
  140. * to indicate if the station is in PS mode.
  141. */
  142. __le32 link_ps_bitmap;
  143. /*
  144. * A bitmap (where each bit represents a single HLID) to indicate
  145. * if the station is in Fast mode
  146. */
  147. __le32 link_fast_bitmap;
  148. /* Cumulative counter of total released mem blocks since FW-reset */
  149. __le32 total_released_blks;
  150. /* Size (in Memory Blocks) of TX pool */
  151. __le32 tx_total;
  152. /* Cumulative counter of released packets per AC */
  153. u8 tx_released_pkts[NUM_TX_QUEUES];
  154. /* Cumulative counter of freed packets per HLID */
  155. u8 tx_lnk_free_pkts[WL12XX_MAX_LINKS];
  156. /* Cumulative counter of released Voice memory blocks */
  157. u8 tx_voice_released_blks;
  158. u8 padding_1[3];
  159. __le32 log_start_addr;
  160. } __packed;
  161. struct wl1271_rx_mem_pool_addr {
  162. u32 addr;
  163. u32 addr_extra;
  164. };
  165. #define WL1271_MAX_CHANNELS 64
  166. struct wl1271_scan {
  167. struct cfg80211_scan_request *req;
  168. unsigned long scanned_ch[BITS_TO_LONGS(WL1271_MAX_CHANNELS)];
  169. bool failed;
  170. u8 state;
  171. u8 ssid[IEEE80211_MAX_SSID_LEN+1];
  172. size_t ssid_len;
  173. };
  174. struct wl1271_if_operations {
  175. void (*read)(struct device *child, int addr, void *buf, size_t len,
  176. bool fixed);
  177. void (*write)(struct device *child, int addr, void *buf, size_t len,
  178. bool fixed);
  179. void (*reset)(struct device *child);
  180. void (*init)(struct device *child);
  181. int (*power)(struct device *child, bool enable);
  182. void (*set_block_size) (struct device *child, unsigned int blksz);
  183. };
  184. #define MAX_NUM_KEYS 14
  185. #define MAX_KEY_SIZE 32
  186. struct wl1271_ap_key {
  187. u8 id;
  188. u8 key_type;
  189. u8 key_size;
  190. u8 key[MAX_KEY_SIZE];
  191. u8 hlid;
  192. u32 tx_seq_32;
  193. u16 tx_seq_16;
  194. };
  195. enum wl12xx_flags {
  196. WL1271_FLAG_GPIO_POWER,
  197. WL1271_FLAG_TX_QUEUE_STOPPED,
  198. WL1271_FLAG_TX_PENDING,
  199. WL1271_FLAG_IN_ELP,
  200. WL1271_FLAG_ELP_REQUESTED,
  201. WL1271_FLAG_IRQ_RUNNING,
  202. WL1271_FLAG_IDLE,
  203. WL1271_FLAG_FW_TX_BUSY,
  204. WL1271_FLAG_DUMMY_PACKET_PENDING,
  205. WL1271_FLAG_SUSPENDED,
  206. WL1271_FLAG_PENDING_WORK,
  207. WL1271_FLAG_SOFT_GEMINI,
  208. WL1271_FLAG_RECOVERY_IN_PROGRESS,
  209. };
  210. enum wl12xx_vif_flags {
  211. WLVIF_FLAG_INITIALIZED,
  212. WLVIF_FLAG_STA_ASSOCIATED,
  213. WLVIF_FLAG_IBSS_JOINED,
  214. WLVIF_FLAG_AP_STARTED,
  215. WLVIF_FLAG_PSM,
  216. WLVIF_FLAG_PSM_REQUESTED,
  217. WLVIF_FLAG_STA_STATE_SENT,
  218. WLVIF_FLAG_RX_STREAMING_STARTED,
  219. WLVIF_FLAG_PSPOLL_FAILURE,
  220. WLVIF_FLAG_CS_PROGRESS,
  221. };
  222. struct wl1271_link {
  223. /* AP-mode - TX queue per AC in link */
  224. struct sk_buff_head tx_queue[NUM_TX_QUEUES];
  225. /* accounting for allocated / freed packets in FW */
  226. u8 allocated_pkts;
  227. u8 prev_freed_pkts;
  228. u8 addr[ETH_ALEN];
  229. /* bitmap of TIDs where RX BA sessions are active for this link */
  230. u8 ba_bitmap;
  231. };
  232. struct wl1271 {
  233. struct ieee80211_hw *hw;
  234. bool mac80211_registered;
  235. struct device *dev;
  236. void *if_priv;
  237. struct wl1271_if_operations *if_ops;
  238. void (*set_power)(bool enable);
  239. int irq;
  240. int ref_clock;
  241. spinlock_t wl_lock;
  242. enum wl1271_state state;
  243. struct mutex mutex;
  244. unsigned long flags;
  245. struct wl1271_partition_set part;
  246. struct wl1271_chip chip;
  247. int cmd_box_addr;
  248. int event_box_addr;
  249. u8 *fw;
  250. size_t fw_len;
  251. void *nvs;
  252. size_t nvs_len;
  253. s8 hw_pg_ver;
  254. u8 mac_addr[ETH_ALEN];
  255. int channel;
  256. u8 system_hlid;
  257. unsigned long links_map[BITS_TO_LONGS(WL12XX_MAX_LINKS)];
  258. unsigned long roles_map[BITS_TO_LONGS(WL12XX_MAX_ROLES)];
  259. unsigned long roc_map[BITS_TO_LONGS(WL12XX_MAX_ROLES)];
  260. unsigned long rate_policies_map[
  261. BITS_TO_LONGS(WL12XX_MAX_RATE_POLICIES)];
  262. struct list_head wlvif_list;
  263. u8 sta_count;
  264. u8 ap_count;
  265. struct wl1271_acx_mem_map *target_mem_map;
  266. /* Accounting for allocated / available TX blocks on HW */
  267. u32 tx_blocks_freed;
  268. u32 tx_blocks_available;
  269. u32 tx_allocated_blocks;
  270. u32 tx_results_count;
  271. /* amount of spare TX blocks to use */
  272. u32 tx_spare_blocks;
  273. /* Accounting for allocated / available Tx packets in HW */
  274. u32 tx_pkts_freed[NUM_TX_QUEUES];
  275. u32 tx_allocated_pkts[NUM_TX_QUEUES];
  276. /* Transmitted TX packets counter for chipset interface */
  277. u32 tx_packets_count;
  278. /* Time-offset between host and chipset clocks */
  279. s64 time_offset;
  280. /* Frames scheduled for transmission, not handled yet */
  281. int tx_queue_count[NUM_TX_QUEUES];
  282. long stopped_queues_map;
  283. /* Frames received, not handled yet by mac80211 */
  284. struct sk_buff_head deferred_rx_queue;
  285. /* Frames sent, not returned yet to mac80211 */
  286. struct sk_buff_head deferred_tx_queue;
  287. struct work_struct tx_work;
  288. struct workqueue_struct *freezable_wq;
  289. /* Pending TX frames */
  290. unsigned long tx_frames_map[BITS_TO_LONGS(ACX_TX_DESCRIPTORS)];
  291. struct sk_buff *tx_frames[ACX_TX_DESCRIPTORS];
  292. int tx_frames_cnt;
  293. /* FW Rx counter */
  294. u32 rx_counter;
  295. /* Rx memory pool address */
  296. struct wl1271_rx_mem_pool_addr rx_mem_pool_addr;
  297. /* Intermediate buffer, used for packet aggregation */
  298. u8 *aggr_buf;
  299. /* Reusable dummy packet template */
  300. struct sk_buff *dummy_packet;
  301. /* Network stack work */
  302. struct work_struct netstack_work;
  303. /* FW log buffer */
  304. u8 *fwlog;
  305. /* Number of valid bytes in the FW log buffer */
  306. ssize_t fwlog_size;
  307. /* Sysfs FW log entry readers wait queue */
  308. wait_queue_head_t fwlog_waitq;
  309. /* Hardware recovery work */
  310. struct work_struct recovery_work;
  311. /* The mbox event mask */
  312. u32 event_mask;
  313. /* Mailbox pointers */
  314. u32 mbox_ptr[2];
  315. /* Are we currently scanning */
  316. struct ieee80211_vif *scan_vif;
  317. struct wl1271_scan scan;
  318. struct delayed_work scan_complete_work;
  319. bool sched_scanning;
  320. /* The current band */
  321. enum ieee80211_band band;
  322. struct completion *elp_compl;
  323. struct delayed_work elp_work;
  324. /* in dBm */
  325. int power_level;
  326. struct wl1271_stats stats;
  327. __le32 buffer_32;
  328. u32 buffer_cmd;
  329. u32 buffer_busyword[WL1271_BUSY_WORD_CNT];
  330. struct wl12xx_fw_status *fw_status;
  331. struct wl1271_tx_hw_res_if *tx_res_if;
  332. struct ieee80211_vif *vif;
  333. /* Current chipset configuration */
  334. struct conf_drv_settings conf;
  335. bool sg_enabled;
  336. bool enable_11a;
  337. struct list_head list;
  338. /* Most recently reported noise in dBm */
  339. s8 noise;
  340. /* bands supported by this instance of wl12xx */
  341. struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
  342. int tcxo_clock;
  343. /*
  344. * wowlan trigger was configured during suspend.
  345. * (currently, only "ANY" trigger is supported)
  346. */
  347. bool wow_enabled;
  348. bool irq_wake_enabled;
  349. /*
  350. * AP-mode - links indexed by HLID. The global and broadcast links
  351. * are always active.
  352. */
  353. struct wl1271_link links[WL12XX_MAX_LINKS];
  354. /* AP-mode - a bitmap of links currently in PS mode according to FW */
  355. u32 ap_fw_ps_map;
  356. /* AP-mode - a bitmap of links currently in PS mode in mac80211 */
  357. unsigned long ap_ps_map;
  358. /* Quirks of specific hardware revisions */
  359. unsigned int quirks;
  360. /* Platform limitations */
  361. unsigned int platform_quirks;
  362. /* number of currently active RX BA sessions */
  363. int ba_rx_session_count;
  364. /* AP-mode - number of currently connected stations */
  365. int active_sta_count;
  366. /* last wlvif we transmitted from */
  367. struct wl12xx_vif *last_wlvif;
  368. };
  369. struct wl1271_station {
  370. u8 hlid;
  371. };
  372. struct wl12xx_vif {
  373. struct wl1271 *wl;
  374. struct list_head list;
  375. unsigned long flags;
  376. u8 bss_type;
  377. u8 p2p; /* we are using p2p role */
  378. u8 role_id;
  379. /* sta/ibss specific */
  380. u8 dev_role_id;
  381. u8 dev_hlid;
  382. union {
  383. struct {
  384. u8 hlid;
  385. u8 ba_rx_bitmap;
  386. u8 basic_rate_idx;
  387. u8 ap_rate_idx;
  388. u8 p2p_rate_idx;
  389. } sta;
  390. struct {
  391. u8 global_hlid;
  392. u8 bcast_hlid;
  393. /* HLIDs bitmap of associated stations */
  394. unsigned long sta_hlid_map[BITS_TO_LONGS(
  395. WL12XX_MAX_LINKS)];
  396. /* recoreded keys - set here before AP startup */
  397. struct wl1271_ap_key *recorded_keys[MAX_NUM_KEYS];
  398. u8 mgmt_rate_idx;
  399. u8 bcast_rate_idx;
  400. u8 ucast_rate_idx[CONF_TX_MAX_AC_COUNT];
  401. } ap;
  402. };
  403. /* the hlid of the last transmitted skb */
  404. int last_tx_hlid;
  405. unsigned long links_map[BITS_TO_LONGS(WL12XX_MAX_LINKS)];
  406. u8 ssid[IEEE80211_MAX_SSID_LEN + 1];
  407. u8 ssid_len;
  408. /* The current band */
  409. enum ieee80211_band band;
  410. int channel;
  411. u32 bitrate_masks[IEEE80211_NUM_BANDS];
  412. u32 basic_rate_set;
  413. /*
  414. * currently configured rate set:
  415. * bits 0-15 - 802.11abg rates
  416. * bits 16-23 - 802.11n MCS index mask
  417. * support only 1 stream, thus only 8 bits for the MCS rates (0-7).
  418. */
  419. u32 basic_rate;
  420. u32 rate_set;
  421. /* probe-req template for the current AP */
  422. struct sk_buff *probereq;
  423. /* Beaconing interval (needed for ad-hoc) */
  424. u32 beacon_int;
  425. /* Default key (for WEP) */
  426. u32 default_key;
  427. /* Our association ID */
  428. u16 aid;
  429. /* Session counter for the chipset */
  430. int session_counter;
  431. struct completion *ps_compl;
  432. struct delayed_work pspoll_work;
  433. /* counter for ps-poll delivery failures */
  434. int ps_poll_failures;
  435. /* retry counter for PSM entries */
  436. u8 psm_entry_retry;
  437. /* in dBm */
  438. int power_level;
  439. int rssi_thold;
  440. int last_rssi_event;
  441. /* RX BA constraint value */
  442. bool ba_support;
  443. bool ba_allowed;
  444. /* Rx Streaming */
  445. struct work_struct rx_streaming_enable_work;
  446. struct work_struct rx_streaming_disable_work;
  447. struct timer_list rx_streaming_timer;
  448. /*
  449. * This struct must be last!
  450. * data that has to be saved acrossed reconfigs (e.g. recovery)
  451. * should be declared in this struct.
  452. */
  453. struct {
  454. u8 persistent[0];
  455. /*
  456. * Security sequence number
  457. * bits 0-15: lower 16 bits part of sequence number
  458. * bits 16-47: higher 32 bits part of sequence number
  459. * bits 48-63: not in use
  460. */
  461. u64 tx_security_seq;
  462. /* 8 bits of the last sequence number in use */
  463. u8 tx_security_last_seq_lsb;
  464. };
  465. };
  466. static inline struct wl12xx_vif *wl12xx_vif_to_data(struct ieee80211_vif *vif)
  467. {
  468. return (struct wl12xx_vif *)vif->drv_priv;
  469. }
  470. static inline
  471. struct ieee80211_vif *wl12xx_wlvif_to_vif(struct wl12xx_vif *wlvif)
  472. {
  473. return container_of((void *)wlvif, struct ieee80211_vif, drv_priv);
  474. }
  475. #define wl12xx_for_each_wlvif(wl, wlvif) \
  476. list_for_each_entry(wlvif, &wl->wlvif_list, list)
  477. #define wl12xx_for_each_wlvif_continue(wl, wlvif) \
  478. list_for_each_entry_continue(wlvif, &wl->wlvif_list, list)
  479. #define wl12xx_for_each_wlvif_bss_type(wl, wlvif, _bss_type) \
  480. wl12xx_for_each_wlvif(wl, wlvif) \
  481. if (wlvif->bss_type == _bss_type)
  482. #define wl12xx_for_each_wlvif_sta(wl, wlvif) \
  483. wl12xx_for_each_wlvif_bss_type(wl, wlvif, BSS_TYPE_STA_BSS)
  484. #define wl12xx_for_each_wlvif_ap(wl, wlvif) \
  485. wl12xx_for_each_wlvif_bss_type(wl, wlvif, BSS_TYPE_AP_BSS)
  486. int wl1271_plt_start(struct wl1271 *wl);
  487. int wl1271_plt_stop(struct wl1271 *wl);
  488. int wl1271_recalc_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif);
  489. void wl12xx_queue_recovery_work(struct wl1271 *wl);
  490. size_t wl12xx_copy_fwlog(struct wl1271 *wl, u8 *memblock, size_t maxlen);
  491. #define JOIN_TIMEOUT 5000 /* 5000 milliseconds to join */
  492. #define SESSION_COUNTER_MAX 6 /* maximum value for the session counter */
  493. #define SESSION_COUNTER_INVALID 7 /* used with dummy_packet */
  494. #define WL1271_DEFAULT_POWER_LEVEL 0
  495. #define WL1271_TX_QUEUE_LOW_WATERMARK 32
  496. #define WL1271_TX_QUEUE_HIGH_WATERMARK 256
  497. #define WL1271_DEFERRED_QUEUE_LIMIT 64
  498. /* WL1271 needs a 200ms sleep after power on, and a 20ms sleep before power
  499. on in case is has been shut down shortly before */
  500. #define WL1271_PRE_POWER_ON_SLEEP 20 /* in milliseconds */
  501. #define WL1271_POWER_ON_SLEEP 200 /* in milliseconds */
  502. /* Macros to handle wl1271.sta_rate_set */
  503. #define HW_BG_RATES_MASK 0xffff
  504. #define HW_HT_RATES_OFFSET 16
  505. /* Quirks */
  506. /* Each RX/TX transaction requires an end-of-transaction transfer */
  507. #define WL12XX_QUIRK_END_OF_TRANSACTION BIT(0)
  508. /* wl127x and SPI don't support SDIO block size alignment */
  509. #define WL12XX_QUIRK_NO_BLOCKSIZE_ALIGNMENT BIT(2)
  510. /* Older firmwares did not implement the FW logger over bus feature */
  511. #define WL12XX_QUIRK_FWLOG_NOT_IMPLEMENTED BIT(4)
  512. #define WL12XX_HW_BLOCK_SIZE 256
  513. #endif