static char phy[32] = { 0 };
struct nl80211_msg_conveyor *req;
+ memset(phy, 0, sizeof(phy));
+
req = nl80211_msg(ifname, NL80211_CMD_GET_WIPHY, 0);
if (req)
{
else if (!strncmp(ifname, "radio", 5))
phyidx = atoi(&ifname[5]);
+ memset(nif, 0, sizeof(nif));
+
if (phyidx > -1)
{
if ((d = opendir("/sys/class/net")) != NULL)
}
c->group_ciphers = c->pair_ciphers;
- c->enabled = (c->auth_algs || c->auth_suites) ? 1 : 0;
+ c->enabled = (c->wpa_version || c->pair_ciphers) ? 1 : 0;
return 0;
}