projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adm5120] fix typos in adm5120 switch driver (#4241)
[openwrt.git]
/
package
/
iwinfo
/
src
/
iwinfo_wl.c
diff --git
a/package/iwinfo/src/iwinfo_wl.c
b/package/iwinfo/src/iwinfo_wl.c
index
038361f
..
3d15fc9
100644
(file)
--- a/
package/iwinfo/src/iwinfo_wl.c
+++ b/
package/iwinfo/src/iwinfo_wl.c
@@
-82,7
+82,7
@@
void wl_close(void)
/* Nop */
}
/* 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;
{
int ret = -1;
int ap, infra, passive;
@@
-97,13
+97,13
@@
int wl_get_mode(const char *ifname, char *buf)
return ret;
if (passive)
return ret;
if (passive)
-
sprintf(buf, "Monitor")
;
+
*buf = IWINFO_OPMODE_MONITOR
;
else if (!infra)
else if (!infra)
-
sprintf(buf, "Ad-Hoc")
;
+
*buf = IWINFO_OPMODE_ADHOC
;
else if (ap)
else if (ap)
-
sprintf(buf, "Master")
;
+
*buf = IWINFO_OPMODE_MASTER
;
else
else
-
sprintf(buf, "Client")
;
+
*buf = IWINFO_OPMODE_CLIENT
;
return 0;
}
return 0;
}
@@
-401,8
+401,8
@@
static void wl_get_assoclist_cb(const char *ifname,
e->tx_rate.rate = sta.tx_rate;
/* ToDo: 11n */
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;
}
}
}
}
This page took
0.030186 seconds
and
4
git commands to generate.