From owner-freebsd-questions@FreeBSD.ORG Thu May 13 07:12:06 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23F86106564A for ; Thu, 13 May 2010 07:12:06 +0000 (UTC) (envelope-from gaubrig@yahoo.com) Received: from web50708.mail.re2.yahoo.com (web50708.mail.re2.yahoo.com [206.190.38.106]) by mx1.freebsd.org (Postfix) with SMTP id DCE7E8FC12 for ; Thu, 13 May 2010 07:12:05 +0000 (UTC) Received: (qmail 68240 invoked by uid 60001); 13 May 2010 07:12:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1273734725; bh=7q/Ix8daOQgMW2DBd6r21GzGAb2PRky6lOkUqAgpxGo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=OCKKLNc2ak4esIL7iyy7pdwVJBkHmNnfbzb89wph8Wi3mBneTvY8FVuSmMY/HcE0kYm0XO/PH8BsdRNzS75WJJXAjNZPv718jhjLYxZgFmKctDKnX6y2pJkJObDIfdAJ1nZxR+lj/kOH4LMAGHN3AfJ0Tm1tdA7BglAd6W5Ahbk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=FatXRvx0uQu9nyqdbIPANGUd9y4SYE0SUlFm8RFGM3ays7MfbNnTu0Q7pbydshHLRgOzTwVsFwb7IU+FQW76GO6PvPT1qOGNCciNexEms+4vagO1dH7ML9eopXQyHxiF5s+qMh80Wo1yFKD/aX9iw1xPw5G8ntgZ83VFQaUWGNs=; Message-ID: <121564.67381.qm@web50708.mail.re2.yahoo.com> X-YMail-OSG: jNCTymMVM1n2TPIjKwjvAVEzwKwTimmcP7QqwEoVImNuLtL GRNT8iTNAWitjvdF3h6QHeP.OsYUEzjp1Np2aHx0F6.JOXi.Ehnlg151EXNL 2Qw_faJyL5Hgk_vGGpeYfnvz8uhYHrOQv_FfqxUT4kREIe0is4NJwjB.PT_q sEmp.Yx2CBmTOR.p0tmqlldMmGLfWCgzIXzGQ51fXh2shXUBntHZUo9WMNad KDo9y7eEzVX4wflbH52LcKI41eBrOaXoBCzdH889q7Qt6yMhJaCY0bm8eSrE wAkVMzQzCYWprYlxXrxS3p42YTQxTBgsvWcpiPDiF7xujo9BgY.KC4gvMyJK WF6DOE1SlsmWd756QlZOlZtuQ2vw- Received: from [59.160.149.242] by web50708.mail.re2.yahoo.com via HTTP; Thu, 13 May 2010 00:12:05 PDT X-Mailer: YahooMailRC/374.4 YahooMailWebService/0.8.103.269680 Date: Thu, 13 May 2010 00:12:05 -0700 (PDT) From: Gaurang Pandya To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: FreeBSD ATH VAP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 07:12:06 -0000 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 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 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 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 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: 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