#include <sys/ioctl.h>
#include <linux/wireless.h>
-#define LOCAL_DEBUG 0
-
struct nic_info
{
struct list_head list;
*leveldBm = ((char) stats.qual.level * -1);
close(sockfd);
-
-#if LOCAL_DEBUG
- printf("NIC signal level%s is %d%s.\n",
- (stats.qual.updated & IW_QUAL_DBM ? " (in dBm)" : ""),
- (char) stats.qual.level,
- (stats.qual.updated & IW_QUAL_LEVEL_UPDATED ? " (updated)" : ""));
-#endif
}
static void
if (num_nics <= 0)
return;
-#if LOCAL_DEBUG
- printf("%s(%s, %s) - Creating HUD object\n", __func__, nic_name,
- mode == NIC_DIRECTION_RX ? "RX" :
- mode == NIC_DIRECTION_TX ? "TX" :
- mode == NIC_RSSI_DBM ? "RSSI" : "UNDEFINED");
-#endif
-
nic = find_nic_by_name(nic_name, mode);
if (!nic)
return;