I found that luci always added "s:" prefix to the wep key provided by the user.
if I set the wep key as 12345, after submitting, /etc/config/wireless will show that the key is "s:12345"
in the source code from model/cbi/admin_network/wifi.lua , i found the code which did that:
function wepkey.write(self, section, value)
if value and (#value == 5 or #value == 13) then
value = "s:" .. value
end
return Value.write(self, section, value)
end
Why add "s:"? Why WEP only? (I didn't observe the same issue in WPA).
the actual key used by wep enc is still "12345"?
(Last edited by nossiac on 16 Dec 2013, 03:45)