/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 | | #ifdef CONFIG_PR |
13 | | |
14 | | int wpas_pr_init(struct wpa_global *global, struct wpa_supplicant *wpa_s, |
15 | | const struct wpa_driver_capa *capa); |
16 | | void wpas_pr_flush(struct wpa_supplicant *wpa_s); |
17 | | void wpas_pr_deinit(struct wpa_supplicant *wpa_s); |
18 | | void wpas_pr_update_dev_addr(struct wpa_supplicant *wpa_s); |
19 | | void wpas_pr_clear_dev_iks(struct wpa_supplicant *wpa_s); |
20 | | void wpas_pr_set_dev_ik(struct wpa_supplicant *wpa_s, const u8 *dik, |
21 | | const char *password, const u8 *pmk, bool own); |
22 | | struct wpabuf * wpas_pr_usd_elems(struct wpa_supplicant *wpa_s); |
23 | | void wpas_pr_process_usd_elems(struct wpa_supplicant *wpa_s, const u8 *buf, |
24 | | u16 buf_len, const u8 *peer_addr, |
25 | | unsigned int freq); |
26 | | int wpas_pr_initiate_pasn_auth(struct wpa_supplicant *wpa_s, |
27 | | const u8 *peer_addr, int freq, u8 auth_mode, |
28 | | u8 ranging_role, u8 ranging_type, |
29 | | int forced_pr_freq); |
30 | | int wpas_pr_pasn_auth_tx_status(struct wpa_supplicant *wpa_s, const u8 *data, |
31 | | size_t data_len, bool acked); |
32 | | int wpas_pr_pasn_auth_rx(struct wpa_supplicant *wpa_s, |
33 | | const struct ieee80211_mgmt *mgmt, size_t len, |
34 | | int freq); |
35 | | |
36 | | #else /* CONFIG_PR */ |
37 | | |
38 | | static inline int wpas_pr_init(struct wpa_global *global, |
39 | | struct wpa_supplicant *wpa_s, |
40 | | const struct wpa_driver_capa *capa) |
41 | 0 | { |
42 | 0 | return 0; |
43 | 0 | } Unexecuted instantiation: events.c:wpas_pr_init Unexecuted instantiation: wpa_supplicant.c:wpas_pr_init |
44 | | |
45 | | static inline void wpas_pr_flush(struct wpa_supplicant *wpa_s) |
46 | 0 | { |
47 | 0 | } Unexecuted instantiation: events.c:wpas_pr_flush Unexecuted instantiation: wpa_supplicant.c:wpas_pr_flush |
48 | | |
49 | | static inline void wpas_pr_deinit(struct wpa_supplicant *wpa_s) |
50 | 0 | { |
51 | 0 | } Unexecuted instantiation: events.c:wpas_pr_deinit Unexecuted instantiation: wpa_supplicant.c:wpas_pr_deinit |
52 | | |
53 | | static inline void wpas_pr_update_dev_addr(struct wpa_supplicant *wpa_s) |
54 | 0 | { |
55 | 0 | } Unexecuted instantiation: events.c:wpas_pr_update_dev_addr Unexecuted instantiation: wpa_supplicant.c:wpas_pr_update_dev_addr |
56 | | |
57 | | static inline void wpas_pr_clear_dev_iks(struct wpa_supplicant *wpa_s) |
58 | 0 | { |
59 | 0 | } Unexecuted instantiation: events.c:wpas_pr_clear_dev_iks Unexecuted instantiation: wpa_supplicant.c:wpas_pr_clear_dev_iks |
60 | | |
61 | | static inline void wpas_pr_set_dev_ik(struct wpa_supplicant *wpa_s, |
62 | | const u8 *dik, const char *password, |
63 | | const u8 *pmk, bool own) |
64 | 0 | { |
65 | 0 | } Unexecuted instantiation: events.c:wpas_pr_set_dev_ik Unexecuted instantiation: wpa_supplicant.c:wpas_pr_set_dev_ik |
66 | | |
67 | | static inline struct wpabuf * wpas_pr_usd_elems(struct wpa_supplicant *wpa_s) |
68 | 0 | { |
69 | 0 | return NULL; |
70 | 0 | } Unexecuted instantiation: events.c:wpas_pr_usd_elems Unexecuted instantiation: wpa_supplicant.c:wpas_pr_usd_elems |
71 | | |
72 | | static inline int wpas_pr_initiate_pasn_auth(struct wpa_supplicant *wpa_s, |
73 | | const u8 *peer_addr, int freq, |
74 | | u8 auth_mode, u8 ranging_role, |
75 | | u8 ranging_type, |
76 | | int forced_pr_freq) |
77 | 0 | { |
78 | 0 | return 0; |
79 | 0 | } Unexecuted instantiation: events.c:wpas_pr_initiate_pasn_auth Unexecuted instantiation: wpa_supplicant.c:wpas_pr_initiate_pasn_auth |
80 | | |
81 | | static inline int wpas_pr_pasn_auth_tx_status(struct wpa_supplicant *wpa_s, |
82 | | const u8 *data, size_t data_len, |
83 | | bool acked) |
84 | 0 | { |
85 | 0 | return 0; |
86 | 0 | } Unexecuted instantiation: events.c:wpas_pr_pasn_auth_tx_status Unexecuted instantiation: wpa_supplicant.c:wpas_pr_pasn_auth_tx_status |
87 | | |
88 | | static inline int wpas_pr_pasn_auth_rx(struct wpa_supplicant *wpa_s, |
89 | | const struct ieee80211_mgmt *mgmt, |
90 | | size_t len, int freq) |
91 | 0 | { |
92 | 0 | return 0; |
93 | 0 | } Unexecuted instantiation: events.c:wpas_pr_pasn_auth_rx Unexecuted instantiation: wpa_supplicant.c:wpas_pr_pasn_auth_rx |
94 | | |
95 | | #endif /* CONFIG_PR */ |
96 | | |
97 | | #endif /* PR_SUPPLICANT_H */ |