--- embedtools/inc/dwds.h 2010/10/27 13:29:06 1.1.2.2 +++ embedtools/inc/dwds.h 2010/11/02 02:12:49 1.1.2.8 @@ -5,6 +5,22 @@ #define DWDS_CONFIG "/etc/dwds.conf" #define DWDS_STATEDIR "/tmp" #define DWDS_DISCJOIN "0" +#define DWDS_NAME "dWDS" + + +struct dwds_if { + char if_name[IFNAMSIZ]; + uint8_t if_bssid[IEEE80211_ADDR_LEN]; + + struct dwds_if *if_next; +}; + + +inline int wifi_chkIface(const char *csVAP, char **ppsIF, int nIF); +struct dwds_if *wifi_buildWDS(int fd, char **ppsIF, int nIF); +inline int wifi_destroyWDS(const char *csIface, struct dwds_if **wds); +inline int wifi_leaveWDS(struct ether_addr bssid, struct dwds_if **wds, char *psVAP, int vapLen); +inline int wifi_createWDS(const char *csIface, struct ether_addr bssid, struct dwds_if **wds); #endif