blob: bf65829e0ddca668a3ae655062d595c4cfe68731 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|