tip on connecting to hidden wireless network

1 post
by waldo » Tue Nov 13, 2012 4:28 am
Using the every-popular Edimax ew-7811un wi-fi adapter and it has been rock solid, except for connecting to a hidden network.

Here's the magic line to add to /etc/network/interfaces, to connect to hidden network:
Code: Select all
wpa-scan-ssid 1
This solution is mentioned at least once in this forum, but I think it's important enough to give it its own topic, and better google search results, hopefully. Cheers to B. Roland on stack exchange [http://unix.stackexchange.com/questions/48431/connect-to-hidden-wifi-ap-with-wpa-supplicant] which is where I first found the solution.

And one more tip that I wish I had found sooner: if you need wireless/wired networks to come up on particular interface names (wlan0, eth0, etc), you can write udev rules to hard-wire device names to the mac address of the interface. (Otherwise, your wireless might come up on wlan1 when you were expecting wlan0, etc.) For my use, I need the RPi to switch between wired and wireless networks fairly frequently via cron scripts (thus I cleverly named them "wired" and "wireless"). So one udev rule looks like so:
Code: Select all
KERNEL=="eth*", ATTR{address}=="b8:01:31:27:e2:4a", NAME="wired"
Posts: 12
Joined: Sat Sep 01, 2012 5:55 am