Skip to content
Snippets Groups Projects
Commit 118695f5 authored by Erik Karlsson's avatar Erik Karlsson
Browse files

iwinfo: fix warnings and whitespace

parent 7fb3d9d2
No related branches found
No related tags found
1 merge request!568iwinfo: do not restrict DFS channels and add missing band and mhz properties
......@@ -104,7 +104,6 @@ static int phy_to_netdev(const char *phy, char *netdev, size_t size)
int ret = -1;
DIR *d;
ifstatus_t ifstatus = 0;
enum wifi_mode mode;
memset(netdev, 0, size);
......@@ -115,7 +114,7 @@ static int phy_to_netdev(const char *phy, char *netdev, size_t size)
}
/* Get real phy in case someone pass netdev */
if (netdev_to_phy(phy, rphy, sizeof(rphy)))
if (netdev_to_phy(phy, rphy, sizeof(rphy)))
return -1;
snprintf(path, sizeof(path), "/sys/class/ieee80211/%s/device/net", rphy);
......@@ -503,18 +502,12 @@ static int esl_get_phyname(const char *ifname, char *buf)
return ret;
}
static int esl_get_enctype(const char *ifname, char *buf)
{
esl_debug("%s() -------->\n", __func__);
return -1;
}
static int esl_get_assoclist(const char *ifname, char *buf, int *len)
{
char netdev[16];
unsigned char stas[768] = {0}; /* 128 */
struct wifi_sta sx;
int noise, rssi, snr;
int noise, rssi;
enum wifi_bw bw;
int num = 128;
int ret;
......@@ -541,7 +534,6 @@ static int esl_get_assoclist(const char *ifname, char *buf, int *len)
wifi_get_noise(ifname, &noise);
wifi_get_bandwidth(ifname, &bw);
rssi = sx.rssi[0];
snr = rssi - noise;
memset(ent, 0, sizeof(*ent));
memcpy(ent->mac, sx.macaddr, 6);
......@@ -765,7 +757,6 @@ static int esl_get_countrylist(const char *ifname, char *buf, int *len)
static int esl_get_hwmodelist(const char *ifname, int *buf)
{
uint8_t std = 0;
char netdev[16];
int ret;
int i;
int std_arr[] = { IWINFO_80211_B,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment