Coverage Report

Created: 2026-03-19 06:13

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