From owner-freebsd-wireless@FreeBSD.ORG Mon May 20 05:30:46 2013 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D3A141F7 for ; Mon, 20 May 2013 05:30:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 72A24D32 for ; Mon, 20 May 2013 05:30:46 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id l18so715145wgh.13 for ; Sun, 19 May 2013 22:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=LPMc0lC6Z2UkD8g6p7cXwF60t/mRSjkWXtMMZwbRaMI=; b=HTQf6CK5huSIAAK7hyhDvxiAKq49CFyd+rGaSX05PWk8mjUnqk8gmk3X5tgyNN4DLU FItE8PHUaj61Vkb7Q+55B8InVbEg/dYFPqRoandEpTiNGen1zuCWP5JIQi1pkAY+7xEE 9Jw/g0hmwl7KyrCJVywoQID1pEJfjR+p6xXVp1etuX0Iuir0XVJNGPqaeWttHKDg8Kr3 78xZ/N1B4QV8oOgtOvuLDG/Pba82PbwD8yXh7Dg0A/X64IjcGTg5p4KgJIsP+PByyE9m PG8ZKBZmRo969yjo1nf0jfr3lqBDJ0zo658fPaTQf6wzdDDcw75Xng5EL9YPd0WGTyXo tsIg== MIME-Version: 1.0 X-Received: by 10.180.37.243 with SMTP id b19mr10131968wik.12.1369027845609; Sun, 19 May 2013 22:30:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.107.9 with HTTP; Sun, 19 May 2013 22:30:45 -0700 (PDT) In-Reply-To: <20130429101449.GA27298@psconsult.nl> References: <20130429101449.GA27298@psconsult.nl> Date: Sun, 19 May 2013 22:30:45 -0700 X-Google-Sender-Auth: pspIDTAkgRF6HREh0bn_Q4kng88 Message-ID: Subject: Re: State os VAP support From: Adrian Chadd To: Paul Schenkeveld Content-Type: text/plain; charset=ISO-8859-1 Cc: wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2013 05:30:46 -0000 Oh, I found the 'bssid' option. Try something like 'ifconfig wlanX create wlanmode hostap bssid mode 11g...' See if the MAC addresses for each are different. If you still see the "Discard message X" then that's an orthogonal issue which we need to diagnose. I don't see that in my testing. Adrian On 29 April 2013 03:14, Paul Schenkeveld wrote: > Hi, > > I still cannot get VAP's to work, perhaps I'm doing something wrong, > perhaps VAP support isn't ready yet. > > My hardware: Soekris net4826 with Atheros 5212 mini-pci card > My FreeBSD: FreeBSD 10.0-CURRENT #0 r249745 > My config: > > wlans_ath0="wlan63 wlan207" > create_args_wlan63="wlanmode hostap mode 11g channel 7 country NL" > create_args_wlan207="wlanmode hostap mode 11g channel 7 country NL" > hostapd_config="/etc/hostapd.conf.testB /etc/hostapd.conf.testO" > > ==== hostapd.conf.testB: > driver=bsd > interface=wlan63 > ctrl_interface=/var/run/hostapd.wlan63 > ctrl_interface_group=wheel > ssid=testB > wpa=1 > wpa_passphrase=******** > wpa_key_mgmt=WPA-PSK > wpa_pairwise=CCMP TKIP > > ==== hostapd.conf.testO: > driver=bsd > interface=wlan207 > ctrl_interface=/var/run/hostapd.wlan207 > ctrl_interface_group=wheel > ssid=testO > wpa=1 > wpa_passphrase=******** > wpa_key_mgmt=WPA-PSK > wpa_pairwise=CCMP TKIP > > I have tried running a single hostapd with two config files and running > two separate hostapd daemons each with a config file. In both cases, I > get one wlan working, the other does not work. Running hostapd with -d > does not reveal the problem to me either (I see debug output when > connecting to the working wlan but not when trying to connect to the > other one). Hostapd debug output is below. > > My questions: > > Should VAP work at all? > Does anyone know of VAP problems with the Atheros 5212? > Should I run one hostapd with multiple config files or separate daemons? > Anything else I'm doing wrong? > > Thanks for any help! > > Paul Schenkeveld > > ------------------------------------------------------------------------ > > hostapd -d output: > > ap1# hostapd -P /var/run/hostapd.pid -d /etc/hostapd.conf.testB /etc/hostapd.conf.testO > Configuration file: /etc/hostapd.conf.testB > ctrl_interface_group=0 (from group name 'wheel') > BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits) > Completing interface initialization > Flushing old station entries > Deauthenticate all stations > bsd_set_privacy: enabled=0 > bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=1 seq_len=0 key_len=0 > bsd_del_key: key_idx=0 > bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=1 > bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=2 > bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=3 > Using interface wlan63 with hwaddr 00:0b:6b:dd:50:7b and ssid 'testB' > Deriving WPA PSK based on passphrase > SSID - hexdump_ascii(len=5): > 74 65 73 74 42 testB > PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED] > PSK (from passphrase) - hexdump(len=32): [REMOVED] > bsd_set_ieee8021x: enabled=1 > bsd_configure_wpa: enable WPA= 0x1 > WPA: group state machine entering state GTK_INIT (VLAN-ID 0) > GMK - hexdump(len=32): [REMOVED] > GTK - hexdump(len=32): [REMOVED] > WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0) > bsd_set_key: alg=2 addr=0x0 key_idx=1 set_tx=1 seq_len=0 key_len=32 > bsd_set_privacy: enabled=1 > bsd_set_opt_ie: set WPA+RSN ie (len 28) > wlan63: Setup of interface done. > Configuration file: /etc/hostapd.conf.testO > ctrl_interface_group=0 (from group name 'wheel') > BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits) > Completing interface initialization > Flushing old station entries > Deauthenticate all stations > bsd_set_privacy: enabled=0 > bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=1 seq_len=0 key_len=0 > bsd_del_key: key_idx=0 > bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=1 > bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=2 > bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 > bsd_del_key: key_idx=3 > Using interface wlan207 with hwaddr 00:0b:6b:dd:50:7b and ssid 'testO' > Deriving WPA PSK based on passphrase > SSID - hexdump_ascii(len=5): > 74 65 73 74 4f testO > PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED] > PSK (from passphrase) - hexdump(len=32): [REMOVED] > bsd_set_ieee8021x: enabled=1 > bsd_configure_wpa: enable WPA= 0x1 > WPA: group state machine entering state GTK_INIT (VLAN-ID 0) > GMK - hexdump(len=32): [REMOVED] > GTK - hexdump(len=32): [REMOVED] > WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0) > bsd_set_key: alg=2 addr=0x0 key_idx=1 set_tx=1 seq_len=0 key_len=32 > bsd_set_privacy: enabled=1 > bsd_set_opt_ie: set WPA+RSN ie (len 28) > wlan207: Setup of interface done. > Discard routing message to if#0 (not for us 10) > > Discard routing message to if#0 (not for us 11) > > Discard routing message to if#0 (not for us 10) > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"