Skip to content

Commit

Permalink
rename 'manuf' column to 'vendor'
Browse files Browse the repository at this point in the history
Signed-off-by: koniu <gkusnierz@gmail.com>
  • Loading branch information
koniu committed Dec 23, 2010
1 parent b131598 commit 8603022
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wassup.lua
Expand Up @@ -43,7 +43,7 @@ columns = {
snr = { f = "%3s ", r = 1 },
noise = { f = "%5s " },
enc = { f = "%-4s " },
manuf = { f = "%-10s " },
vendor = { f = "%-10s " },
tsf = { f = "%14s " },
graph = { f = "%-25s " },
}
Expand Down Expand Up @@ -282,8 +282,8 @@ function read(cmd, src)
return v
end
--}}}
--{{{ get_manuf
function get_manuf(mac)
--{{{ get_vendor
function get_vendor(mac)
if not mac then return end
if not readable(manuf) then return "" end
str = read("grep -i ^"..mac:sub(1,8).." " .. manuf, "popen")
Expand Down Expand Up @@ -343,7 +343,7 @@ function update_ap(bssid)
ap.sum = result.sig
ap.first_seen = state.iter
ap.last_seen = state.iter
ap.manuf = get_manuf(bssid) or ""
ap.vendor = get_vendor(bssid) or ""
state.seen[bssid] = {}
end
-- gone
Expand Down Expand Up @@ -492,7 +492,7 @@ while state.iter < reps do
string.lower(ap.essid):find(string.lower(filter)) or
string.lower(ap.bssid):find(string.lower(filter)) or
string.lower(ap.enc):find(string.lower(filter)) or
string.lower(ap.manuf):find(string.lower(filter)))
string.lower(ap.vendor):find(string.lower(filter)))
then
state.filtered[ap.bssid] = ap
end
Expand Down

0 comments on commit 8603022

Please sign in to comment.