lua: Check for assignment failures

This commit is contained in:
Holger Hans Peter Freyther 2010-10-20 19:06:50 +02:00
parent 721c457e61
commit bc3d8dd89e
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,19 @@ do
function check_failure(con)
check_lu_reject(con)
check_disconnect(con)
check_ass_failure(con)
end
-- check assignment failures
function check_ass_failure(con)
local msgtype = bssmap_msgtype_field()
if not msgtype then
return
end
if tonumber(msgtype) == 0x03 then
con[4] = true
end
end
-- check if a DISCONNECT is normal