Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2010 00:12:05 -0700 (PDT)
From:      Gaurang Pandya <gaubrig@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD ATH VAP
Message-ID:  <121564.67381.qm@web50708.mail.re2.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi,

I have tplink-wn551G wireless adapter which is ath based, I am successfully able to configure two VAPs with that with one being WPA protected and another for Guest which is open. 

But I can use any of VAP in my station (laptop) only when both are configured in that, and not otherwise. What I mean is If I want guest to use open VAP, then I have to configure protected one also in his laptop, only then he will be able to use either of VAPs. Not sure If I am missing some thing.  Here are snippets from my config.

Do I have to change BSSID, if so, how?  Am not able to do with either of wlanbssid or wlanaddr or bssid in either create_args or ifconfig line of rc.conf. I have also tried without any BSSID options for both the interfaces, which also fails to work.

Initially I have kept them in hidden mode, will un-hide open one when I am sure it works as per my requirement.

Any help is much appreciated.

Thanks & Regards,

Gaurang.

> uname -a
FreeBSD mybox 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu May  6 23:43:30 UTC 2010 root@mybox:/usr/obj/usr/home/FreeBSD/RELEASE-8/src/src/sys/GENWITHALTQ  i386

> grep wlan /etc/rc.conf
wlans_ath0="wlan0 wlan1"
vaps_ath0="wlan0 wlan1"
create_args_wlan0="wlanmode ap wlanbssid 00:11:22:33:44:55 ssid Protected channel 5"
create_args_wlan1="wlanmode ap bssid ssid open channel 6"
ifconfig_wlan0="inet 10.1.1.1 netmask 255.255.255.248 hidessid"
ifconfig_wlan1="inet 10.1.2.1 netmask 255.255.255.252 hidessid"

> ifconfig wlan0

wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:27:19:d1:01:6d
        inet 10.1.1.1 netmask 0xfffffff8 broadcast 10.1.1.7
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: running
        ssid Protected channel 6 (2437 MHz 11g) bssid 00:27:19:d1:01:6d
        regdomain 32924 country CN indoor ecm authmode WPA privacy MIXED
        deftxkey 2 TKIP 2:128-bit txpower 20 scanvalid 60 protmode CTS wme
        burst hidessid dtimperiod 1 -dfs
> ifconfig wlan1
wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 06:27:19:d1:01:6d
        inet 10.1.2.1 netmask 0xfffffffc broadcast 10.1.2.3
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: running
        ssid open channel 6 (2437 MHz 11g) bssid 06:27:19:d1:01:6d
        regdomain 32924 country CN indoor ecm authmode OPEN privacy OFF
        txpower 20 scanvalid 60 protmode CTS wme burst hidessid dtimperiod 1
        -dfs

> dmesg | grep ath
ath0: <Atheros 2413> mem 0xed000000-0xed00ffff irq 22 at device 10.0 on pci1
ath0: [ITHREAD]
ath0: AR2413 mac 7.8 RF2413 phy 4.5

> cat /etc/hostapd.conf
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=Protected
wpa=1
wpa_passphrase=Ofcourse-This-is-Not-Key
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP


      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?121564.67381.qm>