/* Standard headers */ #include #include #include #include #include #include #include #include #include #include #include /* gethostbyname, getnetbyname */ #include /* struct ether_addr */ #include /* struct timeval */ #include #define KILO 1e3 #define MEGA 1e6 #define GIGA 1e9 extern Bool wmwifi_learn; struct wifi { char ifname[255]; char essid[IW_ESSID_MAX_SIZE + 1]; int ifnum; float link; int level; unsigned int noise; float max_link; float max_qual; struct iw_param bitrate; }; int get_wifi_info(struct wifi *wfi); int get_max_ifs(void); void next_if(struct wifi *wfi); //void last_if(struct wifi *wfi);