1325151a3SRui Paulo /*
2325151a3SRui Paulo * FST module - internal Control interface definitions
3325151a3SRui Paulo * Copyright (c) 2014, Qualcomm Atheros, Inc.
4325151a3SRui Paulo *
5325151a3SRui Paulo * This software may be distributed under the terms of the BSD license.
6325151a3SRui Paulo * See README for more details.
7325151a3SRui Paulo */
8325151a3SRui Paulo
9325151a3SRui Paulo #ifndef FST_CTRL_IFACE_H
10325151a3SRui Paulo #define FST_CTRL_IFACE_H
11325151a3SRui Paulo
12325151a3SRui Paulo #include "fst/fst_ctrl_aux.h"
13325151a3SRui Paulo
14325151a3SRui Paulo #ifdef CONFIG_FST
15325151a3SRui Paulo
16325151a3SRui Paulo /* receiver */
17325151a3SRui Paulo int fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen);
18325151a3SRui Paulo
19325151a3SRui Paulo int fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen);
20325151a3SRui Paulo
21325151a3SRui Paulo extern const struct fst_ctrl *fst_ctrl_cli;
22325151a3SRui Paulo
23325151a3SRui Paulo #else /* CONFIG_FST */
24325151a3SRui Paulo
25325151a3SRui Paulo static inline int
fst_ctrl_iface_mb_info(const u8 * addr,char * buf,size_t buflen)26325151a3SRui Paulo fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen)
27325151a3SRui Paulo {
28325151a3SRui Paulo return 0;
29325151a3SRui Paulo }
30325151a3SRui Paulo
31325151a3SRui Paulo #endif /* CONFIG_FST */
32325151a3SRui Paulo
33*c1d255d3SCy Schubert int fst_read_next_int_param(const char *params, bool *valid, char **endp);
34325151a3SRui Paulo int fst_read_next_text_param(const char *params, char *buf, size_t buflen,
35325151a3SRui Paulo char **endp);
36325151a3SRui Paulo int fst_read_peer_addr(const char *mac, u8 *peer_addr);
37325151a3SRui Paulo
38325151a3SRui Paulo struct fst_iface_cfg;
39325151a3SRui Paulo
40325151a3SRui Paulo int fst_parse_attach_command(const char *cmd, char *ifname, size_t ifname_size,
41325151a3SRui Paulo struct fst_iface_cfg *cfg);
42325151a3SRui Paulo int fst_parse_detach_command(const char *cmd, char *ifname, size_t ifname_size);
43325151a3SRui Paulo int fst_iface_detach(const char *ifname);
44325151a3SRui Paulo
45325151a3SRui Paulo #endif /* CTRL_IFACE_FST_H */
46