SSID name can't have spaces and apostrophes?

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
kenyee
Posts: 8
Joined: Sat Aug 20, 2011 10:13 pm

SSID name can't have spaces and apostrophes?

Post by kenyee »

In Gargoyle, why is the SSID format prevented from having spaces and apostrophes? E.g., my current one running on DDWRT has an SSID named "Ken's Router" and it runs fine.

I couldn't find out where Gargoyle stores the SSID info. Doesn't seem to be in /etc/config/wireless as expected.
Can I modify this file to add
option 'ssid' 'Ken's Router'
to config 'wifi-iface'?

I'm trying to swap a new router over to the other one w/o having to reconfigure 10 wifi devices :P

p.s., forgot to ask...where does Gargoyle keep the SSID info? I grep'd through everything in /etc but can't find out where it stuck "Gargoyle_5GHz"...

kenyee
Posts: 8
Joined: Sat Aug 20, 2011 10:13 pm

Re: SSID name can't have spaces and apostrophes?

Post by kenyee »

found the web page that displays the ssid:
https://github.com/ericpaulbishop/gargo ... w/basic.sh

But can't figure out where this is read/saved...

The developers docs need a bit more info on how the web pages are structured (how data goes in/out of them)...looks like it uses haserl, but it's not using the <% %> to set variables...there's no form action parameter so it doesn't look the form is posted back...

kenyee
Posts: 8
Joined: Sat Aug 20, 2011 10:13 pm

Re: SSID name can't have spaces and apostrophes?

Post by kenyee »

FYI, SSID can have spaces in them...and most printable characters:

http://groups.google.com/group/alt.inte ... 76ab6573d6

kenyee
Posts: 8
Joined: Sat Aug 20, 2011 10:13 pm

/etc/config/wireless

Post by kenyee »

ok...at least now I understand why using an apostrophe really messed up Gargoyle.

It's writing the /etc/config/wireless file using the documented way of quoting values using a single quote.
You can write these values using a double quote, so just change the line

option 'ssid' "Stupid's Stupid"

as needed (note that I used double quotes for the value). This brings up the SSID as expected.

I'd suggest that Gargoyle write the values using double quotes since there should be no reason values ever have double quotes...

Post Reply