diff options
Diffstat (limited to 'src/iwapi.h')
-rw-r--r-- | src/iwapi.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/iwapi.h b/src/iwapi.h new file mode 100644 index 0000000..bf65829 --- /dev/null +++ b/src/iwapi.h @@ -0,0 +1,22 @@ +#ifndef fooiwapihfoo +#define fooiwapihfoo + +#include "interface.h" +#include "wireless.h" +#include "util.h" + +struct ap_info { + struct hw_addr ap; + struct iw_freq freq; + char essid[IW_ESSID_MAX_SIZE + 1]; +}; + +int iw_set_essid(struct interface *i, const char* essid); +int iw_set_mode(struct interface *i, int m); +int iw_set_freq(struct interface *i, struct iw_freq *f); +int iw_set_ap(struct interface *i, struct hw_addr *ap); +int iw_scan(struct interface *i); +int iw_tune(struct interface *i, struct ap_info *ap); +int iw_scan_result(struct interface *i, int (*callback)(struct ap_info*)); + +#endif |