xref: /dflybsd-src/contrib/wpa_supplicant/src/fst/fst_ctrl_iface.h (revision 3a84a4273475ed07d0ab1c2dfeffdfedef35d9cd)
1*a1157835SDaniel Fojt /*
2*a1157835SDaniel Fojt  * FST module - internal Control interface definitions
3*a1157835SDaniel Fojt  * Copyright (c) 2014, Qualcomm Atheros, Inc.
4*a1157835SDaniel Fojt  *
5*a1157835SDaniel Fojt  * This software may be distributed under the terms of the BSD license.
6*a1157835SDaniel Fojt  * See README for more details.
7*a1157835SDaniel Fojt  */
8*a1157835SDaniel Fojt 
9*a1157835SDaniel Fojt #ifndef FST_CTRL_IFACE_H
10*a1157835SDaniel Fojt #define FST_CTRL_IFACE_H
11*a1157835SDaniel Fojt 
12*a1157835SDaniel Fojt #include "fst/fst_ctrl_aux.h"
13*a1157835SDaniel Fojt 
14*a1157835SDaniel Fojt #ifdef CONFIG_FST
15*a1157835SDaniel Fojt 
16*a1157835SDaniel Fojt /* receiver */
17*a1157835SDaniel Fojt int fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen);
18*a1157835SDaniel Fojt 
19*a1157835SDaniel Fojt int fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen);
20*a1157835SDaniel Fojt 
21*a1157835SDaniel Fojt extern const struct fst_ctrl *fst_ctrl_cli;
22*a1157835SDaniel Fojt 
23*a1157835SDaniel Fojt #else /* CONFIG_FST */
24*a1157835SDaniel Fojt 
25*a1157835SDaniel Fojt static inline int
fst_ctrl_iface_mb_info(const u8 * addr,char * buf,size_t buflen)26*a1157835SDaniel Fojt fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen)
27*a1157835SDaniel Fojt {
28*a1157835SDaniel Fojt 	return 0;
29*a1157835SDaniel Fojt }
30*a1157835SDaniel Fojt 
31*a1157835SDaniel Fojt #endif /* CONFIG_FST */
32*a1157835SDaniel Fojt 
33*a1157835SDaniel Fojt int fst_read_next_int_param(const char *params, Boolean *valid, char **endp);
34*a1157835SDaniel Fojt int fst_read_next_text_param(const char *params, char *buf, size_t buflen,
35*a1157835SDaniel Fojt 			     char **endp);
36*a1157835SDaniel Fojt int fst_read_peer_addr(const char *mac, u8 *peer_addr);
37*a1157835SDaniel Fojt 
38*a1157835SDaniel Fojt struct fst_iface_cfg;
39*a1157835SDaniel Fojt 
40*a1157835SDaniel Fojt int fst_parse_attach_command(const char *cmd, char *ifname, size_t ifname_size,
41*a1157835SDaniel Fojt 			     struct fst_iface_cfg *cfg);
42*a1157835SDaniel Fojt int fst_parse_detach_command(const char *cmd, char *ifname, size_t ifname_size);
43*a1157835SDaniel Fojt int fst_iface_detach(const char *ifname);
44*a1157835SDaniel Fojt 
45*a1157835SDaniel Fojt #endif /* CTRL_IFACE_FST_H */
46