fst_ctrl_iface.h revision 289284
1228753Smm/* 2228753Smm * FST module - internal Control interface definitions 3228753Smm * Copyright (c) 2014, Qualcomm Atheros, Inc. 4228753Smm * 5228753Smm * This software may be distributed under the terms of the BSD license. 6228753Smm * See README for more details. 7228753Smm */ 8228753Smm 9228753Smm#ifndef FST_CTRL_IFACE_H 10228753Smm#define FST_CTRL_IFACE_H 11228753Smm 12228753Smm#include "fst/fst_ctrl_aux.h" 13228753Smm 14228753Smm#ifdef CONFIG_FST 15228753Smm 16228753Smm/* receiver */ 17228753Smmint fst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen); 18228753Smm 19228753Smmint fst_ctrl_iface_receive(const char *txtaddr, char *buf, size_t buflen); 20228753Smm 21228753Smmextern const struct fst_ctrl *fst_ctrl_cli; 22228753Smm 23228753Smm#else /* CONFIG_FST */ 24228753Smm 25228753Smmstatic inline int 26228753Smmfst_ctrl_iface_mb_info(const u8 *addr, char *buf, size_t buflen) 27228753Smm{ 28229592Smm return 0; 29228753Smm} 30228753Smm 31228753Smm#endif /* CONFIG_FST */ 32228753Smm 33228753Smmint fst_read_next_int_param(const char *params, Boolean *valid, char **endp); 34228753Smmint fst_read_next_text_param(const char *params, char *buf, size_t buflen, 35228753Smm char **endp); 36228753Smmint fst_read_peer_addr(const char *mac, u8 *peer_addr); 37228753Smm 38228753Smmstruct fst_iface_cfg; 39228753Smm 40228753Smmint fst_parse_attach_command(const char *cmd, char *ifname, size_t ifname_size, 41228753Smm struct fst_iface_cfg *cfg); 42228753Smmint fst_parse_detach_command(const char *cmd, char *ifname, size_t ifname_size); 43228753Smmint fst_iface_detach(const char *ifname); 44228753Smm 45228753Smm#endif /* CTRL_IFACE_FST_H */ 46228753Smm