2 * iwinfo - Wireless Information Library - Utility Headers
4 * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
6 * The iwinfo library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
10 * The iwinfo library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with the iwinfo library. If not, see http://www.gnu.org/licenses/.
19 #ifndef __IWINFO_UTILS_H_
20 #define __IWINFO_UTILS_H_
22 #include <sys/socket.h>
27 #define LOG10_MAGIC 1.25892541179
29 int iwinfo_ioctl(int cmd, void *ifr);
31 int iwinfo_dbm2mw(int in);
32 int iwinfo_mw2dbm(int in);
34 int iwinfo_ifup(const char *ifname);
35 int iwinfo_ifdown(const char *ifname);
36 int iwinfo_ifmac(const char *ifname);
38 void iwinfo_close(void);