libs/iwinfo: probe madwifi first, poking wifi0 with wl ioctls results in bus error
This commit is contained in:
parent
3c8728390f
commit
9fde34000d
1 changed files with 4 additions and 4 deletions
|
@ -23,12 +23,12 @@ static int iwinfo_L_type(lua_State *L)
|
||||||
{
|
{
|
||||||
const char *ifname = luaL_checkstring(L, 1);
|
const char *ifname = luaL_checkstring(L, 1);
|
||||||
|
|
||||||
if( wl_probe(ifname) )
|
if( madwifi_probe(ifname) )
|
||||||
lua_pushstring(L, "wl");
|
|
||||||
|
|
||||||
else if( madwifi_probe(ifname) )
|
|
||||||
lua_pushstring(L, "madwifi");
|
lua_pushstring(L, "madwifi");
|
||||||
|
|
||||||
|
else if( wl_probe(ifname) )
|
||||||
|
lua_pushstring(L, "wl");
|
||||||
|
|
||||||
else if( wext_probe(ifname) )
|
else if( wext_probe(ifname) )
|
||||||
lua_pushstring(L, "wext");
|
lua_pushstring(L, "wext");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue