summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_lualib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-09-23 18:03:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-09-23 18:03:09 +0000
commit9fde34000dca2a7bd58f48e1c37e389bb98136a6 (patch)
treea45561c7d20ad0c5113edee2384ee5ef58a43f99 /libs/iwinfo/src/iwinfo_lualib.c
parent3c8728390f2b258a7e6d006bc05a84b793dd12db (diff)
libs/iwinfo: probe madwifi first, poking wifi0 with wl ioctls results in bus error
Diffstat (limited to 'libs/iwinfo/src/iwinfo_lualib.c')
-rw-r--r--libs/iwinfo/src/iwinfo_lualib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/iwinfo/src/iwinfo_lualib.c b/libs/iwinfo/src/iwinfo_lualib.c
index 2efc7871a..8eb4ad5dc 100644
--- 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");