/src/hostap/wpa_supplicant/pr_supplicant.h
Line | Count | Source |
1 | | /* |
2 | | * Proxmity Ranging |
3 | | * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
4 | | * |
5 | | * This software may be distributed under the terms of the BSD license. |
6 | | * See README for more details. |
7 | | */ |
8 | | |
9 | | #ifndef PR_SUPPLICANT_H |
10 | | #define PR_SUPPLICANT_H |
11 | | |
12 | | #include "common/proximity_ranging.h" |
13 | | |
14 | | #ifdef CONFIG_PR |
15 | | |
16 | | int wpas_pr_init(struct wpa_global *global, struct wpa_supplicant *wpa_s, |
17 | | const struct wpa_driver_capa *capa); |
18 | | void wpas_pr_flush(struct wpa_supplicant *wpa_s); |
19 | | void wpas_pr_deinit(struct wpa_supplicant *wpa_s); |
20 | | void wpas_pr_pd_stop(struct wpa_supplicant *wpa_s); |
21 | | void wpas_pr_update_dev_addr(struct wpa_supplicant *wpa_s); |
22 | | void wpas_pr_clear_dev_iks(struct wpa_supplicant *wpa_s); |
23 | | void wpas_pr_set_dev_ik(struct wpa_supplicant *wpa_s, const u8 *dik, |
24 | | const char *password, const u8 *pmk, size_t pmk_len, |
25 | | bool own); |
26 | | struct wpabuf * wpas_pr_usd_elems(struct wpa_supplicant *wpa_s, |
27 | | const u8 *src_addr); |
28 | | void wpas_pr_process_usd_elems(struct wpa_supplicant *wpa_s, const u8 *buf, |
29 | | u16 buf_len, const u8 *peer_addr, |
30 | | unsigned int freq); |
31 | | int wpas_pr_initiate_pasn_auth(struct wpa_supplicant *wpa_s, |
32 | | const u8 *peer_addr, int freq, u8 auth_mode, |
33 | | u8 ranging_role, u8 ranging_type, |
34 | | int forced_pr_freq, const u8 *src_addr, |
35 | | enum pr_pasn_role pasn_role); |
36 | | int wpas_pr_pasn_auth_tx_status(struct wpa_supplicant *wpa_s, const u8 *data, |
37 | | size_t data_len, bool acked); |
38 | | int wpas_pr_pasn_auth_rx(struct wpa_supplicant *wpa_s, |
39 | | const struct ieee80211_mgmt *mgmt, size_t len, |
40 | | int freq); |
41 | | void wpas_pr_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, |
42 | | unsigned int freq); |
43 | | int wpas_pr_pasn_trigger(struct wpa_supplicant *wpa_s, |
44 | | struct pr_pasn_ranging_params *pr_pasn_params); |
45 | | void wpas_pr_abort_ranging(struct wpa_supplicant *wpa_s); |
46 | | void wpas_pr_measurement_complete(struct wpa_supplicant *wpa_s, |
47 | | struct peer_measurement_complete *complete); |
48 | | void wpas_pr_measurement_result(struct wpa_supplicant *wpa_s, |
49 | | struct peer_measurement_result *result); |
50 | | void wpas_pr_update_channel_list(struct wpa_supplicant *wpa_s); |
51 | | |
52 | | #else /* CONFIG_PR */ |
53 | | |
54 | | static inline int wpas_pr_init(struct wpa_global *global, |
55 | | struct wpa_supplicant *wpa_s, |
56 | | const struct wpa_driver_capa *capa) |
57 | 0 | { |
58 | 0 | return 0; |
59 | 0 | } Unexecuted instantiation: events.c:wpas_pr_init Unexecuted instantiation: wpa_supplicant.c:wpas_pr_init |
60 | | |
61 | | static inline void wpas_pr_flush(struct wpa_supplicant *wpa_s) |
62 | 0 | { |
63 | 0 | } Unexecuted instantiation: events.c:wpas_pr_flush Unexecuted instantiation: wpa_supplicant.c:wpas_pr_flush |
64 | | |
65 | | static inline void wpas_pr_deinit(struct wpa_supplicant *wpa_s) |
66 | 0 | { |
67 | 0 | } Unexecuted instantiation: events.c:wpas_pr_deinit Unexecuted instantiation: wpa_supplicant.c:wpas_pr_deinit |
68 | | |
69 | | static inline void wpas_pr_pd_stop(struct wpa_supplicant *wpa_s) |
70 | 0 | { |
71 | 0 | } Unexecuted instantiation: events.c:wpas_pr_pd_stop Unexecuted instantiation: wpa_supplicant.c:wpas_pr_pd_stop |
72 | | |
73 | | static inline void wpas_pr_update_dev_addr(struct wpa_supplicant *wpa_s) |
74 | 0 | { |
75 | 0 | } Unexecuted instantiation: events.c:wpas_pr_update_dev_addr Unexecuted instantiation: wpa_supplicant.c:wpas_pr_update_dev_addr |
76 | | |
77 | | static inline void wpas_pr_clear_dev_iks(struct wpa_supplicant *wpa_s) |
78 | 0 | { |
79 | 0 | } Unexecuted instantiation: events.c:wpas_pr_clear_dev_iks Unexecuted instantiation: wpa_supplicant.c:wpas_pr_clear_dev_iks |
80 | | |
81 | | static inline void wpas_pr_set_dev_ik(struct wpa_supplicant *wpa_s, |
82 | | const u8 *dik, const char *password, |
83 | | const u8 *pmk, size_t pmk_len, bool own) |
84 | 0 | { |
85 | 0 | } Unexecuted instantiation: events.c:wpas_pr_set_dev_ik Unexecuted instantiation: wpa_supplicant.c:wpas_pr_set_dev_ik |
86 | | |
87 | | static inline struct wpabuf * wpas_pr_usd_elems(struct wpa_supplicant *wpa_s, |
88 | | const u8 *src_addr) |
89 | 0 | { |
90 | 0 | return NULL; |
91 | 0 | } Unexecuted instantiation: events.c:wpas_pr_usd_elems Unexecuted instantiation: wpa_supplicant.c:wpas_pr_usd_elems |
92 | | |
93 | | static inline int wpas_pr_initiate_pasn_auth(struct wpa_supplicant *wpa_s, |
94 | | const u8 *peer_addr, int freq, |
95 | | u8 auth_mode, u8 ranging_role, |
96 | | u8 ranging_type, |
97 | | int forced_pr_freq, |
98 | | const u8 *src_addr, |
99 | | enum pr_pasn_role pasn_role) |
100 | 0 | { |
101 | 0 | return 0; |
102 | 0 | } Unexecuted instantiation: events.c:wpas_pr_initiate_pasn_auth Unexecuted instantiation: wpa_supplicant.c:wpas_pr_initiate_pasn_auth |
103 | | |
104 | | static inline int wpas_pr_pasn_auth_tx_status(struct wpa_supplicant *wpa_s, |
105 | | const u8 *data, size_t data_len, |
106 | | bool acked) |
107 | 0 | { |
108 | 0 | return 0; |
109 | 0 | } Unexecuted instantiation: events.c:wpas_pr_pasn_auth_tx_status Unexecuted instantiation: wpa_supplicant.c:wpas_pr_pasn_auth_tx_status |
110 | | |
111 | | static inline int wpas_pr_pasn_auth_rx(struct wpa_supplicant *wpa_s, |
112 | | const struct ieee80211_mgmt *mgmt, |
113 | | size_t len, int freq) |
114 | 0 | { |
115 | 0 | return 0; |
116 | 0 | } Unexecuted instantiation: events.c:wpas_pr_pasn_auth_rx Unexecuted instantiation: wpa_supplicant.c:wpas_pr_pasn_auth_rx |
117 | | |
118 | | static inline void |
119 | | wpas_pr_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, |
120 | | unsigned int freq) |
121 | 0 | { |
122 | 0 | } Unexecuted instantiation: events.c:wpas_pr_cancel_remain_on_channel_cb Unexecuted instantiation: wpa_supplicant.c:wpas_pr_cancel_remain_on_channel_cb |
123 | | |
124 | | static inline int |
125 | | wpas_pr_pasn_trigger(struct wpa_supplicant *wpa_s, |
126 | | struct pr_pasn_ranging_params *pr_pasn_params) |
127 | 0 | { |
128 | 0 | return -1; |
129 | 0 | } Unexecuted instantiation: events.c:wpas_pr_pasn_trigger Unexecuted instantiation: wpa_supplicant.c:wpas_pr_pasn_trigger |
130 | | |
131 | | static inline void wpas_pr_abort_ranging(struct wpa_supplicant *wpa_s) |
132 | 0 | { |
133 | 0 | } Unexecuted instantiation: events.c:wpas_pr_abort_ranging Unexecuted instantiation: wpa_supplicant.c:wpas_pr_abort_ranging |
134 | | |
135 | | static inline void |
136 | | wpas_pr_measurement_complete(struct wpa_supplicant *wpa_s, |
137 | | struct peer_measurement_complete *complete) |
138 | 0 | { |
139 | 0 | } Unexecuted instantiation: events.c:wpas_pr_measurement_complete Unexecuted instantiation: wpa_supplicant.c:wpas_pr_measurement_complete |
140 | | |
141 | | static inline void |
142 | | wpas_pr_measurement_result(struct wpa_supplicant *wpa_s, |
143 | | struct peer_measurement_result *result) |
144 | 0 | { |
145 | 0 | } Unexecuted instantiation: events.c:wpas_pr_measurement_result Unexecuted instantiation: wpa_supplicant.c:wpas_pr_measurement_result |
146 | | |
147 | | static inline void wpas_pr_update_channel_list(struct wpa_supplicant *wpa_s) |
148 | 0 | { |
149 | 0 | } Unexecuted instantiation: events.c:wpas_pr_update_channel_list Unexecuted instantiation: wpa_supplicant.c:wpas_pr_update_channel_list |
150 | | |
151 | | #endif /* CONFIG_PR */ |
152 | | |
153 | | #endif /* PR_SUPPLICANT_H */ |