piuser14
Posts: 6
Joined: Thu Jan 29, 2015 10:35 pm

Trying out multiple SSIDs with hostapd

Thu Jan 29, 2015 11:34 pm

Hello, fellow Raspberry Pi hobbyists:

I currently have a Raspberry Pi since July, 2014 and I'm running Raspbmc Gotham 14.0 (Build: 24-Dec-2014); and I recently bought a TP-Link TL-W722N Wireless Dongle with an Atheros AR9XXX series chipset (ath9k_htc); I decided to use my raspberry pi box as an AP for my phone, PC, Nintendo DS (WEP or open security only), PSP (WPA-PSK TKIP, WEP, and Open Security only), and so on.

I have two different SSIDs associated with hostapd, dnsmasq as both the DHCP server and DNS forwarder/server, but, unfortunately, I hit a snag recently.

I have one AP SSID setup with WPA/WPA2-PSK security (CCMP/TKIP), and the other open (for the Nintendo DS).

The primary SSID connects without issues, but the other one went south: my PSP would say SSID has either left, or the security is wrong, and none of my other devices won't connect to that either, but every device, except my DS can connect to the primary SSID without snags or issues.

Here is my hostapd.conf setup:

Code: Select all

interface=wlan0
ssid=raspbmc
bssid=04:cc:20:13:e8:20
channel=11
hw_mode=g
ieee80211n=1
ht_capab=[HT20][SHORT-GI-20]
wpa=3
wpa_passphrase=Thr33$t00g3$
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

bss=wlan0_0
ssid=nintendo - problem one
#bssid=04:cc:20:13:e8:21 - disabled since wlan0_0 gets its own BSSID MAC Address
Here's my dnsmasq.conf setup

Code: Select all

domain=raspberry.local
resolv-file=/etc/resolv.conf
min-port=4096
server=208.67.222.222
server=208.67.220.220
cache-size=10000

interface=wlan0
interface=wlan0_0
dhcp-range=interface:wlan0,10.0.0.2,10.0.0.5,255.255.255.248,12h
dhcp-range=interface:wlan0_0,10.0.0.10,10.0.0.14,255.255.255.248,12h
What am I missing? This did work before, and not only that, the IP address for the wlan0_0 interface disappears without a trace after a system reboot or power on.

Here's part of the hostapd file (/etc/init.d/hostapd)

Code: Select all

 start)
        log_daemon_msg "Starting $DESC" "$NAME"
        start-stop-daemon --start --oknodo --quiet --exec "$DAEMON_SBIN" \
                --pidfile "$PIDFILE" -- $DAEMON_OPTS >/dev/null && sleep 5 ; ifup wlan0_0
        log_end_msg "$?"
        ;;
Should I add the ifconfig command for the wlan0_0 for the IP address and BSSID MAC Address as well, or reverse the two SSIDs and test it that way?

rusyasoft
Posts: 1
Joined: Fri May 08, 2015 1:26 am

Re: Trying out multiple SSIDs with hostapd

Fri May 08, 2015 1:32 am

Can You write more details?
How did you made multiple SSID on raspberry Pi ?

Return to “Networking and servers”