1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /*
3  * Copyright (C) 2012-2014 Intel Corporation
4  * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5  * Copyright (C) 2016-2017 Intel Deutschland GmbH
6  */
7 #ifndef __iwl_fw_api_offload_h__
8 #define __iwl_fw_api_offload_h__
9 
10 /**
11  * enum iwl_prot_offload_subcmd_ids - protocol offload commands
12  */
13 enum iwl_prot_offload_subcmd_ids {
14 	/**
15 	 * @STORED_BEACON_NTF: &struct iwl_stored_beacon_notif
16 	 */
17 	STORED_BEACON_NTF = 0xFF,
18 };
19 
20 #define MAX_STORED_BEACON_SIZE 600
21 
22 /**
23  * struct iwl_stored_beacon_notif - Stored beacon notification
24  *
25  * @system_time: system time on air rise
26  * @tsf: TSF on air rise
27  * @beacon_timestamp: beacon on air rise
28  * @band: band, matches &RX_RES_PHY_FLAGS_BAND_24 definition
29  * @channel: channel this beacon was received on
30  * @rates: rate in ucode internal format
31  * @byte_count: frame's byte count
32  * @data: beacon data, length in @byte_count
33  */
34 struct iwl_stored_beacon_notif {
35 	__le32 system_time;
36 	__le64 tsf;
37 	__le32 beacon_timestamp;
38 	__le16 band;
39 	__le16 channel;
40 	__le32 rates;
41 	__le32 byte_count;
42 	u8 data[MAX_STORED_BEACON_SIZE];
43 } __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_2 */
44 
45 #endif /* __iwl_fw_api_offload_h__ */
46