diff options
| author | Lennart Poettering <lennart@poettering.net> | 2003-08-09 16:41:59 +0000 |
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2003-08-09 16:41:59 +0000 |
| commit | 84c25048bd1a08e1d66fc74c2b3681fe269d4a71 (patch) | |
| tree | 0df13d3199a04b9ac8b3c576d9f4881593a87a36 /src/iwapi.h | |
| parent | c4a12b6077ede4a6421d20814a69aa0bb0c1f828 (diff) | |
Initial commit
git-svn-id: file:///home/lennart/svn/public/waproamd/trunk@3 022f378f-78c4-0310-b860-d162c87e6274
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 |
