00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef DYN_WIRELESS_H
00014 #define DYN_WIRELESS_H
00015
00016 #include <linux/if_ether.h>
00017
00018
00019 #define MAX_NUM_QUALS 64
00020
00021 #define SET_HISTORY SIOCDEVPRIVATE+0xd
00022 #define GET_HISTORY SIOCDEVPRIVATE+0xe
00023
00024 #define SET_QUALITIES SIOCDEVPRIVATE+0x3
00025 #define GET_QUALITIES SIOCDEVPRIVATE+0x4
00026 #define CHECK_QUALITIES SIOCDEVPRIVATE+0x5
00027
00028 struct quality_values {
00029 int num_of_quals;
00030 int sim_quals[MAX_NUM_QUALS];
00031 unsigned long sim_timestamps[MAX_NUM_QUALS];
00032
00033 struct quality_values *next;
00034 };
00035
00036 int dyn_wireless_get_ifname(const char *str, char *ifname);
00037 int dyn_wireless_create_socket(void);
00038 int dyn_wireless_iwspy_get(int sock, char *ifname, char *buffer);
00039 int dyn_wireless_iwspy_set(int sock, char *ifname, char *buffer,
00040 int monitored);
00041 int dyn_wireless_his_get(int sock, char *ifname, char *buffer);
00042 int dyn_wireless_his_set(int sock, char *ifname, char *range, int size);
00043 struct quality_values *dyn_wireless_get_quals_node(struct quality_values *q);
00044 struct quality_values *dyn_wireless_get_simulator(int sock, char *ifname,
00045 char *hw);
00046 int dyn_wireless_set_simulator(int sock, char *ifname, char *hw,
00047 struct quality_values *q, int msec_ival,
00048 int scale);
00049 int dyn_wireless_check_simulator(int sock, char *ifname, char *hw);
00050 int dyn_wireless_set_channel(int sock, char *ifname, int channel);
00051 int dyn_wireless_get_channel(int sock, char *ifname);
00052 int dyn_wireless_get_name(int sock, char *ifname, char *name, int len);
00053 int dyn_wireless_get_nwid(int sock, char *ifname);
00054 int dyn_wireless_set_nwid(int sock, char *ifname, char *id, int len);
00055 int dyn_wireless_get_range(int sock, char *ifname, struct iw_range *range);
00056 int dyn_wireless_get_ap_address(int sock, const char *ifname, char *hw);
00057
00058 #endif