ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __TYPE_H
#define __TYPE_H
 
#include "driver_nl80211.h"
#include "driver_wext.h"
 
typedef struct {
   int (*wpa_driver_nl80211_driver_cmd)
       (void *priv, char *cmd, char *buf, size_t buf_len);
 
   int (*wpa_driver_set_p2p_noa)
       (void *priv, u8 count, int start, int duration);
 
   int (*wpa_driver_get_p2p_noa)
       (void *priv, u8 *buf, size_t len);
 
   int (*wpa_driver_set_p2p_ps)
       (void *priv, int legacy_ps, int opp_ps, int ctwindow);
 
   int (*wpa_driver_set_ap_wps_p2p_ie)
       (void *priv, const struct wpabuf *beacon,
        const struct wpabuf *proberesp,
        const struct wpabuf *assocresp);
} driver_cmd_nl80211_cb;
 
typedef struct {
   int (*wpa_driver_wext_combo_scan)
       (void *priv, struct wpa_driver_scan_params *params);
 
   int (*wpa_driver_wext_driver_cmd)
       (void *priv, char *cmd, char *buf, size_t buf_len);
 
   int (*wpa_driver_signal_poll)
       (void *priv, struct wpa_signal_info *si);
} driver_cmd_wext_cb;
 
#endif