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