Multiple SSID hostapd centos 6.4

Jonathan Bither jonbither
Tue Nov 19 06:22:29 PST 2013


On 11/18/2013 07:46 PM, Frank Posito wrote:
> Hello,
>
> I am trying to setup mutiple SSID with the goal of having VLAN tagging
> on each SSID
>
> I am using hostapd v2.0 on Centos6.4
> The chipset is Atheros AR9271 (WNA1100)
>
>
>
> My wireless MAC address is  20:E5:2A:E8:DB:77 and i changed it to
> 02:E5:2A:E8:DB:30
>
> I tried to follow
> http://wiki.stocksy.co.uk/wiki/Multiple_SSIDs_with_hostapd (even if
> ti's for Ubuntu)
>
> To keep it simple for now. This is my configuration file
> ----
> interface=wlan0
> bssid=02:E5:2A:E8:DB:30
> driver=nl80211
>
> ssid=ssid1
> channel=1
>
> bss=wlan0_0
> ssid=ssid2
>
> bss=wlan0_1
> ssid=ssid3
>
> bss=wlan0_2
> ssid=ssid4
> ----
>
> The problem seems to appear when it's trying to create wlan0_0
>
> Could not set interface wlan0_0 flags (UP): Device or resource busy
> nl80211: Remove interface ifindex=16
> Failed to add BSS (BSSID=02:e5:2a:e8:db:31)
> wlan0: Unable to setup interface.
> wlan0: Flushing old station entries
> wlan0: Deauthenticate all stations
> nl80211: CMD_FRAME freq=2412 wait=0 no_cck=0 no_ack=0 offchanok=0
> nl80211: Frame TX command accepted; cookie 0xffff8800372d1180
>
>
> Could you give me a hint on the problem ?
>
> Thanks,
> Frank
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
That link TBH isn't really beneficial for a CentOS/RHEL setup. I run a 
very similar setup, however I don't recall actually using the distro 
kernel. I use elrepo and crda/iw/hostapd from GIT. I also remember 
having to create a dummy ifcfg-wlan0 for some reason or another.

[jonathan at jonbither ~]$ cat /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE="wlan0"
HWADDR="E0:B9:A5:9B:C2:94"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
UUID="73d3ed28-9f14-4bd3-9a44-c7feb144cb1c"
BOOTPROTO="none"

Here is my /etc/init.d/hostapd

[jonathan at jonbither ~]$ cat /etc/init.d/hostapd
#!/bin/sh
#
# start/stop the hostapd server
#
# chkconfig: 2345 99 10
# description: hostap daemon
# processname: hostapd
# config: /etc/hostapd.conf
# pidfile: /var/run/hostapd.pid
#
PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
export PATH

# Source function library.
. /etc/rc.d/init.d/functions

stop()
{
  echo -n "Stopping hostapd daemon: "
         killproc hostapd
         echo
         rm -f /var/lock/subsys/hostapd

}

start()
{
         echo -n "Starting hostapd daemon: "
         daemon /usr/local/bin/hostapd /etc/hostapd/hostapd.conf -P 
/var/run/hostapd.pid -B
         echo
         touch /var/lock/subsys/hostapd
}

# See how we were called.
case "$1" in
     start)
         start
         ;;
     stop)
         stop
         ;;
     status)
         status hostapd
         ;;
     restart)
         stop
         start
         ;;
     *)
         echo "Usage: hostapd {start|stop|status|restart}"
         exit 1
esac

exit 0


Hope it helps.



More information about the Hostap mailing list