xref: /wlan-dirver/qca-wifi-host-cmn/umac/wifi_pos/src/wifi_pos_oem_interface_i.h (revision 11f5a63a6cbdda84849a730de22f0a71e635d58c)
1 /*
2  * Copyright (c) 2017, 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 /**
19  * DOC: wifi_pos_oem_interface.h
20  * This file defines the interface between host driver and userspace layer.
21  */
22 #ifndef _WIFI_POS_OEM_INTERFACE_H_
23 #define _WIFI_POS_OEM_INTERFACE_H_
24 
25 /* Include files */
26 #include "qdf_types.h"
27 #include "qdf_status.h"
28 #include "wlan_objmgr_cmn.h"
29 
30 #define TARGET_OEM_CAPABILITY_REQ       0x01
31 #define TARGET_OEM_CAPABILITY_RSP       0x02
32 #define TARGET_OEM_MEASUREMENT_REQ      0x03
33 #define TARGET_OEM_MEASUREMENT_RSP      0x04
34 #define TARGET_OEM_ERROR_REPORT_RSP     0x05
35 #define TARGET_OEM_NAN_MEAS_REQ         0x06
36 #define TARGET_OEM_NAN_MEAS_RSP         0x07
37 #define TARGET_OEM_NAN_PEER_INFO        0x08
38 #define TARGET_OEM_CONFIGURE_LCR        0x09
39 #define TARGET_OEM_CONFIGURE_LCI        0x0A
40 #define TARGET_OEM_CONFIGURE_WRU        0x80
41 #define TARGET_OEM_CONFIGURE_FTMRR      0x81
42 
43 #define WIFI_POS_FLAG_DFS               10
44 #define WIFI_POS_SET_DFS(info)          (info |=  (1 << WIFI_POS_FLAG_DFS))
45 
46 /**
47  * enum WMIRTT_FIELD_ID - identifies which field is being specified
48  * @WMIRTT_FIELD_ID_oem_data_sub_type: oem data req sub type
49  * @WMIRTT_FIELD_ID_channel_mhz: channel mhz info
50  * @WMIRTT_FIELD_ID_pdev: pdev info
51  */
52 enum WMIRTT_FIELD_ID {
53 	WMIRTT_FIELD_ID_oem_data_sub_type,
54 	WMIRTT_FIELD_ID_channel_mhz,
55 	WMIRTT_FIELD_ID_pdev,
56 };
57 
58 #endif
59