]> git.ipfire.org Git - thirdparty/iw.git/blame - iw.h
fix makefile
[thirdparty/iw.git] / iw.h
CommitLineData
cad53b3f
JB
1#ifndef __IW_H
2#define __IW_H
3
541ef425 4#include <linux/nl80211.h>
cad53b3f
JB
5#include <netlink/genl/genl.h>
6#include <netlink/genl/family.h>
7#include <netlink/genl/ctrl.h>
8
3d1e8704
LCC
9#define ETH_ALEN 6
10
cad53b3f
JB
11struct nl80211_state {
12 struct nl_handle *nl_handle;
13 struct nl_cache *nl_cache;
14 struct genl_family *nl80211;
15};
16
45c7212c
JB
17
18int handle_interface(struct nl80211_state *state,
19 char *phy, char *dev, int argc, char **argv);
20
79f99b9a
JB
21int handle_info(struct nl80211_state *state, char *phy, char *dev);
22
3d1e8704
LCC
23int handle_station(struct nl80211_state *state,
24 char *dev, int argc, char **argv);
25
26int handle_mpath(struct nl80211_state *state,
27 char *dev, int argc, char **argv);
28
14a0380d
LR
29int handle_reg(struct nl80211_state *state,
30 int argc, char **argv);
31
3d1e8704
LCC
32int mac_addr_a2n(unsigned char *mac_addr, char *arg);
33int mac_addr_n2a(char *mac_addr, unsigned char *arg);
34
541ef425
JB
35const char *iftype_name(enum nl80211_iftype iftype);
36
cad53b3f 37#endif /* __IW_H */