From 3e81b0123b4bbfedbdc1135a6a4305c347f91a3a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 9 Aug 2003 16:41:59 +0000 Subject: Initial commit git-svn-id: file:///home/lennart/svn/public/aeswepd/trunk@3 022f378f-78c4-0310-b860-d162c87e6274 --- src/iwapi.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/iwapi.h (limited to 'src/iwapi.h') 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 -- cgit