fw-api-d3.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. /******************************************************************************
  2. *
  3. * This file is provided under a dual BSD/GPLv2 license. When using or
  4. * redistributing this file, you may do so under either license.
  5. *
  6. * GPL LICENSE SUMMARY
  7. *
  8. * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
  9. * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
  10. * Copyright(c) 2015 Intel Deutschland GmbH
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of version 2 of the GNU General Public License as
  14. * published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful, but
  17. * WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. * General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
  24. * USA
  25. *
  26. * The full GNU General Public License is included in this distribution
  27. * in the file called COPYING.
  28. *
  29. * Contact Information:
  30. * Intel Linux Wireless <linuxwifi@intel.com>
  31. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  32. *
  33. * BSD LICENSE
  34. *
  35. * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
  36. * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH
  37. * All rights reserved.
  38. *
  39. * Redistribution and use in source and binary forms, with or without
  40. * modification, are permitted provided that the following conditions
  41. * are met:
  42. *
  43. * * Redistributions of source code must retain the above copyright
  44. * notice, this list of conditions and the following disclaimer.
  45. * * Redistributions in binary form must reproduce the above copyright
  46. * notice, this list of conditions and the following disclaimer in
  47. * the documentation and/or other materials provided with the
  48. * distribution.
  49. * * Neither the name Intel Corporation nor the names of its
  50. * contributors may be used to endorse or promote products derived
  51. * from this software without specific prior written permission.
  52. *
  53. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  54. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  55. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  56. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  57. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  58. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  59. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  60. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  61. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  62. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  63. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  64. *****************************************************************************/
  65. #ifndef __fw_api_d3_h__
  66. #define __fw_api_d3_h__
  67. /**
  68. * enum iwl_d3_wakeup_flags - D3 manager wakeup flags
  69. * @IWL_WAKEUP_D3_CONFIG_FW_ERROR: wake up on firmware sysassert
  70. */
  71. enum iwl_d3_wakeup_flags {
  72. IWL_WAKEUP_D3_CONFIG_FW_ERROR = BIT(0),
  73. }; /* D3_MANAGER_WAKEUP_CONFIG_API_E_VER_3 */
  74. /**
  75. * struct iwl_d3_manager_config - D3 manager configuration command
  76. * @min_sleep_time: minimum sleep time (in usec)
  77. * @wakeup_flags: wakeup flags, see &enum iwl_d3_wakeup_flags
  78. * @wakeup_host_timer: force wakeup after this many seconds
  79. *
  80. * The structure is used for the D3_CONFIG_CMD command.
  81. */
  82. struct iwl_d3_manager_config {
  83. __le32 min_sleep_time;
  84. __le32 wakeup_flags;
  85. __le32 wakeup_host_timer;
  86. } __packed; /* D3_MANAGER_CONFIG_CMD_S_VER_4 */
  87. /* TODO: OFFLOADS_QUERY_API_S_VER_1 */
  88. /**
  89. * enum iwl_d3_proto_offloads - enabled protocol offloads
  90. * @IWL_D3_PROTO_OFFLOAD_ARP: ARP data is enabled
  91. * @IWL_D3_PROTO_OFFLOAD_NS: NS (Neighbor Solicitation) is enabled
  92. * @IWL_D3_PROTO_IPV4_VALID: IPv4 data is valid
  93. * @IWL_D3_PROTO_IPV6_VALID: IPv6 data is valid
  94. */
  95. enum iwl_proto_offloads {
  96. IWL_D3_PROTO_OFFLOAD_ARP = BIT(0),
  97. IWL_D3_PROTO_OFFLOAD_NS = BIT(1),
  98. IWL_D3_PROTO_IPV4_VALID = BIT(2),
  99. IWL_D3_PROTO_IPV6_VALID = BIT(3),
  100. };
  101. #define IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V1 2
  102. #define IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V2 6
  103. #define IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V3L 12
  104. #define IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V3S 4
  105. #define IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_MAX 12
  106. #define IWL_PROTO_OFFLOAD_NUM_NS_CONFIG_V3L 4
  107. #define IWL_PROTO_OFFLOAD_NUM_NS_CONFIG_V3S 2
  108. /**
  109. * struct iwl_proto_offload_cmd_common - ARP/NS offload common part
  110. * @enabled: enable flags
  111. * @remote_ipv4_addr: remote address to answer to (or zero if all)
  112. * @host_ipv4_addr: our IPv4 address to respond to queries for
  113. * @arp_mac_addr: our MAC address for ARP responses
  114. * @reserved: unused
  115. */
  116. struct iwl_proto_offload_cmd_common {
  117. __le32 enabled;
  118. __be32 remote_ipv4_addr;
  119. __be32 host_ipv4_addr;
  120. u8 arp_mac_addr[ETH_ALEN];
  121. __le16 reserved;
  122. } __packed;
  123. /**
  124. * struct iwl_proto_offload_cmd_v1 - ARP/NS offload configuration
  125. * @common: common/IPv4 configuration
  126. * @remote_ipv6_addr: remote address to answer to (or zero if all)
  127. * @solicited_node_ipv6_addr: broken -- solicited node address exists
  128. * for each target address
  129. * @target_ipv6_addr: our target addresses
  130. * @ndp_mac_addr: neighbor solicitation response MAC address
  131. */
  132. struct iwl_proto_offload_cmd_v1 {
  133. struct iwl_proto_offload_cmd_common common;
  134. u8 remote_ipv6_addr[16];
  135. u8 solicited_node_ipv6_addr[16];
  136. u8 target_ipv6_addr[IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V1][16];
  137. u8 ndp_mac_addr[ETH_ALEN];
  138. __le16 reserved2;
  139. } __packed; /* PROT_OFFLOAD_CONFIG_CMD_DB_S_VER_1 */
  140. /**
  141. * struct iwl_proto_offload_cmd_v2 - ARP/NS offload configuration
  142. * @common: common/IPv4 configuration
  143. * @remote_ipv6_addr: remote address to answer to (or zero if all)
  144. * @solicited_node_ipv6_addr: broken -- solicited node address exists
  145. * for each target address
  146. * @target_ipv6_addr: our target addresses
  147. * @ndp_mac_addr: neighbor solicitation response MAC address
  148. */
  149. struct iwl_proto_offload_cmd_v2 {
  150. struct iwl_proto_offload_cmd_common common;
  151. u8 remote_ipv6_addr[16];
  152. u8 solicited_node_ipv6_addr[16];
  153. u8 target_ipv6_addr[IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V2][16];
  154. u8 ndp_mac_addr[ETH_ALEN];
  155. u8 numValidIPv6Addresses;
  156. u8 reserved2[3];
  157. } __packed; /* PROT_OFFLOAD_CONFIG_CMD_DB_S_VER_2 */
  158. struct iwl_ns_config {
  159. struct in6_addr source_ipv6_addr;
  160. struct in6_addr dest_ipv6_addr;
  161. u8 target_mac_addr[ETH_ALEN];
  162. __le16 reserved;
  163. } __packed; /* NS_OFFLOAD_CONFIG */
  164. struct iwl_targ_addr {
  165. struct in6_addr addr;
  166. __le32 config_num;
  167. } __packed; /* TARGET_IPV6_ADDRESS */
  168. /**
  169. * struct iwl_proto_offload_cmd_v3_small - ARP/NS offload configuration
  170. * @common: common/IPv4 configuration
  171. * @target_ipv6_addr: target IPv6 addresses
  172. * @ns_config: NS offload configurations
  173. */
  174. struct iwl_proto_offload_cmd_v3_small {
  175. struct iwl_proto_offload_cmd_common common;
  176. __le32 num_valid_ipv6_addrs;
  177. struct iwl_targ_addr targ_addrs[IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V3S];
  178. struct iwl_ns_config ns_config[IWL_PROTO_OFFLOAD_NUM_NS_CONFIG_V3S];
  179. } __packed; /* PROT_OFFLOAD_CONFIG_CMD_DB_S_VER_3 */
  180. /**
  181. * struct iwl_proto_offload_cmd_v3_large - ARP/NS offload configuration
  182. * @common: common/IPv4 configuration
  183. * @target_ipv6_addr: target IPv6 addresses
  184. * @ns_config: NS offload configurations
  185. */
  186. struct iwl_proto_offload_cmd_v3_large {
  187. struct iwl_proto_offload_cmd_common common;
  188. __le32 num_valid_ipv6_addrs;
  189. struct iwl_targ_addr targ_addrs[IWL_PROTO_OFFLOAD_NUM_IPV6_ADDRS_V3L];
  190. struct iwl_ns_config ns_config[IWL_PROTO_OFFLOAD_NUM_NS_CONFIG_V3L];
  191. } __packed; /* PROT_OFFLOAD_CONFIG_CMD_DB_S_VER_3 */
  192. /*
  193. * WOWLAN_PATTERNS
  194. */
  195. #define IWL_WOWLAN_MIN_PATTERN_LEN 16
  196. #define IWL_WOWLAN_MAX_PATTERN_LEN 128
  197. struct iwl_wowlan_pattern {
  198. u8 mask[IWL_WOWLAN_MAX_PATTERN_LEN / 8];
  199. u8 pattern[IWL_WOWLAN_MAX_PATTERN_LEN];
  200. u8 mask_size;
  201. u8 pattern_size;
  202. __le16 reserved;
  203. } __packed; /* WOWLAN_PATTERN_API_S_VER_1 */
  204. #define IWL_WOWLAN_MAX_PATTERNS 20
  205. struct iwl_wowlan_patterns_cmd {
  206. __le32 n_patterns;
  207. struct iwl_wowlan_pattern patterns[];
  208. } __packed; /* WOWLAN_PATTERN_ARRAY_API_S_VER_1 */
  209. enum iwl_wowlan_wakeup_filters {
  210. IWL_WOWLAN_WAKEUP_MAGIC_PACKET = BIT(0),
  211. IWL_WOWLAN_WAKEUP_PATTERN_MATCH = BIT(1),
  212. IWL_WOWLAN_WAKEUP_BEACON_MISS = BIT(2),
  213. IWL_WOWLAN_WAKEUP_LINK_CHANGE = BIT(3),
  214. IWL_WOWLAN_WAKEUP_GTK_REKEY_FAIL = BIT(4),
  215. IWL_WOWLAN_WAKEUP_EAP_IDENT_REQ = BIT(5),
  216. IWL_WOWLAN_WAKEUP_4WAY_HANDSHAKE = BIT(6),
  217. IWL_WOWLAN_WAKEUP_ENABLE_NET_DETECT = BIT(7),
  218. IWL_WOWLAN_WAKEUP_RF_KILL_DEASSERT = BIT(8),
  219. IWL_WOWLAN_WAKEUP_REMOTE_LINK_LOSS = BIT(9),
  220. IWL_WOWLAN_WAKEUP_REMOTE_SIGNATURE_TABLE = BIT(10),
  221. IWL_WOWLAN_WAKEUP_REMOTE_TCP_EXTERNAL = BIT(11),
  222. IWL_WOWLAN_WAKEUP_REMOTE_WAKEUP_PACKET = BIT(12),
  223. IWL_WOWLAN_WAKEUP_IOAC_MAGIC_PACKET = BIT(13),
  224. IWL_WOWLAN_WAKEUP_HOST_TIMER = BIT(14),
  225. IWL_WOWLAN_WAKEUP_RX_FRAME = BIT(15),
  226. IWL_WOWLAN_WAKEUP_BCN_FILTERING = BIT(16),
  227. }; /* WOWLAN_WAKEUP_FILTER_API_E_VER_4 */
  228. enum iwl_wowlan_flags {
  229. IS_11W_ASSOC = BIT(0),
  230. ENABLE_L3_FILTERING = BIT(1),
  231. ENABLE_NBNS_FILTERING = BIT(2),
  232. ENABLE_DHCP_FILTERING = BIT(3),
  233. ENABLE_STORE_BEACON = BIT(4),
  234. };
  235. struct iwl_wowlan_config_cmd {
  236. __le32 wakeup_filter;
  237. __le16 non_qos_seq;
  238. __le16 qos_seq[8];
  239. u8 wowlan_ba_teardown_tids;
  240. u8 is_11n_connection;
  241. u8 offloading_tid;
  242. u8 flags;
  243. u8 reserved[2];
  244. } __packed; /* WOWLAN_CONFIG_API_S_VER_4 */
  245. /*
  246. * WOWLAN_TSC_RSC_PARAMS
  247. */
  248. #define IWL_NUM_RSC 16
  249. struct tkip_sc {
  250. __le16 iv16;
  251. __le16 pad;
  252. __le32 iv32;
  253. } __packed; /* TKIP_SC_API_U_VER_1 */
  254. struct iwl_tkip_rsc_tsc {
  255. struct tkip_sc unicast_rsc[IWL_NUM_RSC];
  256. struct tkip_sc multicast_rsc[IWL_NUM_RSC];
  257. struct tkip_sc tsc;
  258. } __packed; /* TKIP_TSC_RSC_API_S_VER_1 */
  259. struct aes_sc {
  260. __le64 pn;
  261. } __packed; /* TKIP_AES_SC_API_U_VER_1 */
  262. struct iwl_aes_rsc_tsc {
  263. struct aes_sc unicast_rsc[IWL_NUM_RSC];
  264. struct aes_sc multicast_rsc[IWL_NUM_RSC];
  265. struct aes_sc tsc;
  266. } __packed; /* AES_TSC_RSC_API_S_VER_1 */
  267. union iwl_all_tsc_rsc {
  268. struct iwl_tkip_rsc_tsc tkip;
  269. struct iwl_aes_rsc_tsc aes;
  270. }; /* ALL_TSC_RSC_API_S_VER_2 */
  271. struct iwl_wowlan_rsc_tsc_params_cmd {
  272. union iwl_all_tsc_rsc all_tsc_rsc;
  273. } __packed; /* ALL_TSC_RSC_API_S_VER_2 */
  274. #define IWL_MIC_KEY_SIZE 8
  275. struct iwl_mic_keys {
  276. u8 tx[IWL_MIC_KEY_SIZE];
  277. u8 rx_unicast[IWL_MIC_KEY_SIZE];
  278. u8 rx_mcast[IWL_MIC_KEY_SIZE];
  279. } __packed; /* MIC_KEYS_API_S_VER_1 */
  280. #define IWL_P1K_SIZE 5
  281. struct iwl_p1k_cache {
  282. __le16 p1k[IWL_P1K_SIZE];
  283. } __packed;
  284. #define IWL_NUM_RX_P1K_CACHE 2
  285. struct iwl_wowlan_tkip_params_cmd {
  286. struct iwl_mic_keys mic_keys;
  287. struct iwl_p1k_cache tx;
  288. struct iwl_p1k_cache rx_uni[IWL_NUM_RX_P1K_CACHE];
  289. struct iwl_p1k_cache rx_multi[IWL_NUM_RX_P1K_CACHE];
  290. } __packed; /* WOWLAN_TKIP_SETTING_API_S_VER_1 */
  291. #define IWL_KCK_MAX_SIZE 32
  292. #define IWL_KEK_MAX_SIZE 32
  293. struct iwl_wowlan_kek_kck_material_cmd {
  294. u8 kck[IWL_KCK_MAX_SIZE];
  295. u8 kek[IWL_KEK_MAX_SIZE];
  296. __le16 kck_len;
  297. __le16 kek_len;
  298. __le64 replay_ctr;
  299. } __packed; /* KEK_KCK_MATERIAL_API_S_VER_2 */
  300. #define RF_KILL_INDICATOR_FOR_WOWLAN 0x87
  301. enum iwl_wowlan_rekey_status {
  302. IWL_WOWLAN_REKEY_POST_REKEY = 0,
  303. IWL_WOWLAN_REKEY_WHILE_REKEY = 1,
  304. }; /* WOWLAN_REKEY_STATUS_API_E_VER_1 */
  305. enum iwl_wowlan_wakeup_reason {
  306. IWL_WOWLAN_WAKEUP_BY_NON_WIRELESS = 0,
  307. IWL_WOWLAN_WAKEUP_BY_MAGIC_PACKET = BIT(0),
  308. IWL_WOWLAN_WAKEUP_BY_PATTERN = BIT(1),
  309. IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_MISSED_BEACON = BIT(2),
  310. IWL_WOWLAN_WAKEUP_BY_DISCONNECTION_ON_DEAUTH = BIT(3),
  311. IWL_WOWLAN_WAKEUP_BY_GTK_REKEY_FAILURE = BIT(4),
  312. IWL_WOWLAN_WAKEUP_BY_RFKILL_DEASSERTED = BIT(5),
  313. IWL_WOWLAN_WAKEUP_BY_UCODE_ERROR = BIT(6),
  314. IWL_WOWLAN_WAKEUP_BY_EAPOL_REQUEST = BIT(7),
  315. IWL_WOWLAN_WAKEUP_BY_FOUR_WAY_HANDSHAKE = BIT(8),
  316. IWL_WOWLAN_WAKEUP_BY_REM_WAKE_LINK_LOSS = BIT(9),
  317. IWL_WOWLAN_WAKEUP_BY_REM_WAKE_SIGNATURE_TABLE = BIT(10),
  318. IWL_WOWLAN_WAKEUP_BY_REM_WAKE_TCP_EXTERNAL = BIT(11),
  319. IWL_WOWLAN_WAKEUP_BY_REM_WAKE_WAKEUP_PACKET = BIT(12),
  320. IWL_WOWLAN_WAKEUP_BY_IOAC_MAGIC_PACKET = BIT(13),
  321. IWL_WOWLAN_WAKEUP_BY_D3_WAKEUP_HOST_TIMER = BIT(14),
  322. IWL_WOWLAN_WAKEUP_BY_RXFRAME_FILTERED_IN = BIT(15),
  323. IWL_WOWLAN_WAKEUP_BY_BEACON_FILTERED_IN = BIT(16),
  324. }; /* WOWLAN_WAKE_UP_REASON_API_E_VER_2 */
  325. struct iwl_wowlan_gtk_status {
  326. u8 key_index;
  327. u8 reserved[3];
  328. u8 decrypt_key[16];
  329. u8 tkip_mic_key[8];
  330. struct iwl_wowlan_rsc_tsc_params_cmd rsc;
  331. } __packed; /* WOWLAN_GTK_MATERIAL_VER_1 */
  332. struct iwl_wowlan_status {
  333. struct iwl_wowlan_gtk_status gtk;
  334. __le64 replay_ctr;
  335. __le16 pattern_number;
  336. __le16 non_qos_seq_ctr;
  337. __le16 qos_seq_ctr[8];
  338. __le32 wakeup_reasons;
  339. __le32 num_of_gtk_rekeys;
  340. __le32 transmitted_ndps;
  341. __le32 received_beacons;
  342. __le32 wake_packet_length;
  343. __le32 wake_packet_bufsize;
  344. u8 wake_packet[]; /* can be truncated from _length to _bufsize */
  345. } __packed; /* WOWLAN_STATUSES_API_S_VER_6 */
  346. #define IWL_WOWLAN_TCP_MAX_PACKET_LEN 64
  347. #define IWL_WOWLAN_REMOTE_WAKE_MAX_PACKET_LEN 128
  348. #define IWL_WOWLAN_REMOTE_WAKE_MAX_TOKENS 2048
  349. struct iwl_tcp_packet_info {
  350. __le16 tcp_pseudo_header_checksum;
  351. __le16 tcp_payload_length;
  352. } __packed; /* TCP_PACKET_INFO_API_S_VER_2 */
  353. struct iwl_tcp_packet {
  354. struct iwl_tcp_packet_info info;
  355. u8 rx_mask[IWL_WOWLAN_MAX_PATTERN_LEN / 8];
  356. u8 data[IWL_WOWLAN_TCP_MAX_PACKET_LEN];
  357. } __packed; /* TCP_PROTOCOL_PACKET_API_S_VER_1 */
  358. struct iwl_remote_wake_packet {
  359. struct iwl_tcp_packet_info info;
  360. u8 rx_mask[IWL_WOWLAN_MAX_PATTERN_LEN / 8];
  361. u8 data[IWL_WOWLAN_REMOTE_WAKE_MAX_PACKET_LEN];
  362. } __packed; /* TCP_PROTOCOL_PACKET_API_S_VER_1 */
  363. struct iwl_wowlan_remote_wake_config {
  364. __le32 connection_max_time; /* unused */
  365. /* TCP_PROTOCOL_CONFIG_API_S_VER_1 */
  366. u8 max_syn_retries;
  367. u8 max_data_retries;
  368. u8 tcp_syn_ack_timeout;
  369. u8 tcp_ack_timeout;
  370. struct iwl_tcp_packet syn_tx;
  371. struct iwl_tcp_packet synack_rx;
  372. struct iwl_tcp_packet keepalive_ack_rx;
  373. struct iwl_tcp_packet fin_tx;
  374. struct iwl_remote_wake_packet keepalive_tx;
  375. struct iwl_remote_wake_packet wake_rx;
  376. /* REMOTE_WAKE_OFFSET_INFO_API_S_VER_1 */
  377. u8 sequence_number_offset;
  378. u8 sequence_number_length;
  379. u8 token_offset;
  380. u8 token_length;
  381. /* REMOTE_WAKE_PROTOCOL_PARAMS_API_S_VER_1 */
  382. __le32 initial_sequence_number;
  383. __le16 keepalive_interval;
  384. __le16 num_tokens;
  385. u8 tokens[IWL_WOWLAN_REMOTE_WAKE_MAX_TOKENS];
  386. } __packed; /* REMOTE_WAKE_CONFIG_API_S_VER_2 */
  387. /* TODO: NetDetect API */
  388. #endif /* __fw_api_d3_h__ */