Skip to content

Commit

Permalink
lime-system enforce ssid length max 31 char
Browse files Browse the repository at this point in the history
  • Loading branch information
G10h4ck committed Dec 15, 2014
1 parent 0595c1b commit 8ce084c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lime-system/files/usr/lib/lua/lime/wireless.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +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)
end

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

0 comments on commit 8ce084c

Please sign in to comment.