diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-12-04 20:37:01 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-12-04 20:37:01 +0000 |
commit | de1bb6ef97ddd71db237578bd5f7ed8c5a61fb82 (patch) | |
tree | 454302aa37566a7b2a7f06ddba356f9e221038d1 /package/iwinfo/src/iwinfo_lua.c | |
parent | 8465aaa53c9b6865fab1f39b31ab9737f1112304 (diff) |
[package] iwinfo: expose txpower and frequency offset information
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29425 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo/src/iwinfo_lua.c')
-rw-r--r-- | package/iwinfo/src/iwinfo_lua.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/iwinfo/src/iwinfo_lua.c b/package/iwinfo/src/iwinfo_lua.c index 08eec18bd9..533236b4d2 100644 --- a/package/iwinfo/src/iwinfo_lua.c +++ b/package/iwinfo/src/iwinfo_lua.c @@ -558,7 +558,9 @@ static int iwinfo_L_countrylist(lua_State *L, int (*func)(const char *, char *, /* Broadcom */ LUA_WRAP_INT(wl,channel) LUA_WRAP_INT(wl,frequency) +LUA_WRAP_INT(wl,frequency_offset) LUA_WRAP_INT(wl,txpower) +LUA_WRAP_INT(wl,txpower_offset) LUA_WRAP_INT(wl,bitrate) LUA_WRAP_INT(wl,signal) LUA_WRAP_INT(wl,noise) @@ -584,7 +586,9 @@ LUA_WRAP_STRUCT(wl,hardware_id) /* Madwifi */ LUA_WRAP_INT(madwifi,channel) LUA_WRAP_INT(madwifi,frequency) +LUA_WRAP_INT(madwifi,frequency_offset) LUA_WRAP_INT(madwifi,txpower) +LUA_WRAP_INT(madwifi,txpower_offset) LUA_WRAP_INT(madwifi,bitrate) LUA_WRAP_INT(madwifi,signal) LUA_WRAP_INT(madwifi,noise) @@ -610,7 +614,9 @@ LUA_WRAP_STRUCT(madwifi,hardware_id) /* NL80211 */ LUA_WRAP_INT(nl80211,channel) LUA_WRAP_INT(nl80211,frequency) +LUA_WRAP_INT(nl80211,frequency_offset) LUA_WRAP_INT(nl80211,txpower) +LUA_WRAP_INT(nl80211,txpower_offset) LUA_WRAP_INT(nl80211,bitrate) LUA_WRAP_INT(nl80211,signal) LUA_WRAP_INT(nl80211,noise) @@ -635,7 +641,9 @@ LUA_WRAP_STRUCT(nl80211,hardware_id) /* Wext */ LUA_WRAP_INT(wext,channel) LUA_WRAP_INT(wext,frequency) +LUA_WRAP_INT(wext,frequency_offset) LUA_WRAP_INT(wext,txpower) +LUA_WRAP_INT(wext,txpower_offset) LUA_WRAP_INT(wext,bitrate) LUA_WRAP_INT(wext,signal) LUA_WRAP_INT(wext,noise) @@ -661,7 +669,9 @@ LUA_WRAP_STRUCT(wext,hardware_id) static const luaL_reg R_wl[] = { LUA_REG(wl,channel), LUA_REG(wl,frequency), + LUA_REG(wl,frequency_offset), LUA_REG(wl,txpower), + LUA_REG(wl,txpower_offset), LUA_REG(wl,bitrate), LUA_REG(wl,signal), LUA_REG(wl,noise), @@ -690,7 +700,9 @@ static const luaL_reg R_wl[] = { static const luaL_reg R_madwifi[] = { LUA_REG(madwifi,channel), LUA_REG(madwifi,frequency), + LUA_REG(madwifi,frequency_offset), LUA_REG(madwifi,txpower), + LUA_REG(madwifi,txpower_offset), LUA_REG(madwifi,bitrate), LUA_REG(madwifi,signal), LUA_REG(madwifi,noise), @@ -719,7 +731,9 @@ static const luaL_reg R_madwifi[] = { static const luaL_reg R_nl80211[] = { LUA_REG(nl80211,channel), LUA_REG(nl80211,frequency), + LUA_REG(nl80211,frequency_offset), LUA_REG(nl80211,txpower), + LUA_REG(nl80211,txpower_offset), LUA_REG(nl80211,bitrate), LUA_REG(nl80211,signal), LUA_REG(nl80211,noise), @@ -747,7 +761,9 @@ static const luaL_reg R_nl80211[] = { static const luaL_reg R_wext[] = { LUA_REG(wext,channel), LUA_REG(wext,frequency), + LUA_REG(wext,frequency_offset), LUA_REG(wext,txpower), + LUA_REG(wext,txpower_offset), LUA_REG(wext,bitrate), LUA_REG(wext,signal), LUA_REG(wext,noise), |