projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c87283
)
libs/iwinfo: probe madwifi first, poking wifi0 with wl ioctls results in bus error
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 23 Sep 2009 18:03:09 +0000
(18:03 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 23 Sep 2009 18:03:09 +0000
(18:03 +0000)
libs/iwinfo/src/iwinfo_lualib.c
patch
|
blob
|
history
diff --git
a/libs/iwinfo/src/iwinfo_lualib.c
b/libs/iwinfo/src/iwinfo_lualib.c
index 2efc7871a3939c7aec9d2a03751d82a899bd9737..8eb4ad5dc1bc0b8eac8b001d546053ef87e06606 100644
(file)
--- a/
libs/iwinfo/src/iwinfo_lualib.c
+++ b/
libs/iwinfo/src/iwinfo_lualib.c
@@
-23,12
+23,12
@@
static int iwinfo_L_type(lua_State *L)
{
const char *ifname = luaL_checkstring(L, 1);
- if( wl_probe(ifname) )
- lua_pushstring(L, "wl");
-
- else if( madwifi_probe(ifname) )
+ if( madwifi_probe(ifname) )
lua_pushstring(L, "madwifi");
+ else if( wl_probe(ifname) )
+ lua_pushstring(L, "wl");
+
else if( wext_probe(ifname) )
lua_pushstring(L, "wext");