Skip to content

Commit

Permalink
lime-system: Enforce ssid max length to standard 32 char
Browse files Browse the repository at this point in the history
  • Loading branch information
G10h4ck committed Dec 25, 2014
1 parent 2466516 commit 1c2b4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lime-system/files/usr/lib/lua/lime/wireless.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function wireless.configure()
if nk == "ssid" then
value = utils.applyHostnameTemplate(value)
value = utils.applyMacTemplate16(value, network.primary_mac())
value = string.sub(value, 1, 31)
value = string.sub(value, 1, 32)
end

uci:set("wireless", wirelessInterfaceName, nk, value)
Expand Down

0 comments on commit 1c2b4a8

Please sign in to comment.