Gentoo NetworkManager Plug-in now supports non-alnum SSID

For a long time, we can’t use non-alnum SSID for system connections when ifnet is enabled. For example, when you have an SSID named “foo bar”, ifnet plug-in will write this into /etc/conf.d/net:
config_foo bar=(…)
And this will break baselayout or openrc because space is not allowed in variable name.

But now you can specify any SSID you want, the plug-in will handle it transparently. Here’s how it works:
When an non-alnum SSID is specified, ifnet plug-in will transform it to the equivalent hex format. For example, you have the SSID “foo bar”, the following will be written to /etc/conf.dnet:
config_0x666F6F20626172=( “dhcp” )
enable_ipv6_0x666F6F20626172=”false”
auto_0x666F6F20626172=”false”
Meanwhile, the name displayed in nm-applet will be transformed to printable characters.

Thanks to  William L. Thomson Jr’s help in Bug #356337.

PS: What is non-alnum? man isalnum

Advertisements

,

  1. #1 by Florian Klink on March 8, 2011 - 7:00 pm

    That fixed my problems with strange characters in ESSID, too!
    Thanks!

  1. How to Operate Plug & Play "Wheel of Fortune"|how to do better

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: