/* Nop */
}
-int wl_get_mode(const char *ifname, char *buf)
+int wl_get_mode(const char *ifname, int *buf)
{
int ret = -1;
int ap, infra, passive;
return ret;
if (passive)
- sprintf(buf, "Monitor");
+ *buf = IWINFO_OPMODE_MONITOR;
else if (!infra)
- sprintf(buf, "Ad-Hoc");
+ *buf = IWINFO_OPMODE_ADHOC;
else if (ap)
- sprintf(buf, "Master");
+ *buf = IWINFO_OPMODE_MASTER;
else
- sprintf(buf, "Client");
+ *buf = IWINFO_OPMODE_CLIENT;
return 0;
}
e->tx_rate.rate = sta.tx_rate;
/* ToDo: 11n */
- e.rx_rate.mcs = -1;
- e.tx_rate.mcs = -1;
+ e->rx_rate.mcs = -1;
+ e->tx_rate.mcs = -1;
}
}