Re: State os VAP support

2013-06-07 Thread Adrian Chadd
Oh I'm not stopping my wifi hacking. ;)



adrian


On 7 June 2013 04:04, Paul Schenkeveld  wrote:
> On Sun, May 19, 2013 at 10:30:45PM -0700, Adrian Chadd wrote:
>> 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.
>
> I seem to be able to change the bssid from a login session but trying
> to do that from rc.conf fails and leaves the wlanX mac addresses set to
> the ath0 address.
>
> I haven't had the opportunity to document the behaviour yet and saw
> you good-bye message so I'm afraid this one will go into the pr
> database hoping thatsomeone will pick it up some day.
>
>> 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.
>
> Haven't seen those messages.
>
>> Adrian
>
> Thanks for all your responses!
>
> With kind regards,
>
> Paul Schenkeveld
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: State os VAP support

2013-06-07 Thread Paul Schenkeveld
On Sun, May 19, 2013 at 10:30:45PM -0700, Adrian Chadd wrote:
> 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.

I seem to be able to change the bssid from a login session but trying
to do that from rc.conf fails and leaves the wlanX mac addresses set to
the ath0 address.

I haven't had the opportunity to document the behaviour yet and saw
you good-bye message so I'm afraid this one will go into the pr
database hoping thatsomeone will pick it up some day.

> 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.

Haven't seen those messages.

> Adrian

Thanks for all your responses!

With kind regards,

Paul Schenkeveld
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: State os VAP support

2013-05-19 Thread Adrian Chadd
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 42testB
> 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 4ftestO
> 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_priv

Re: [SOLVED] Re: State os VAP support

2013-04-30 Thread Adrian Chadd
Would you please file a PR?

The hostapd in the base system should support this with no problems.
I've tested this multiple times with no ill effects.

Thanks,



Adrian

On 30 April 2013 10:25, Paul Schenkeveld  wrote:
> On Tue, Apr 30, 2013 at 05:39:15PM +0200, Paul Schenkeveld wrote:
>> On Mon, Apr 29, 2013 at 09:16:09AM -0700, Adrian Chadd wrote:
>> > Multiple VAPs should be working. Doubly so on the AR5212 series hardware.
>> >
>> > adrian
>>
>> Thanks Adrian.
>>
>> When I start two separate hostapd daemons with the config files from my
>> previous post (and separate pidfiles), only the first one works.
>> Starting them in the opposite order, only the other one works so I am
>> (almost) sure that the config files by themselves are correct.
>>
>> Please help!
>
> I just found a new version of hostapd in /usr/ports/net/hostapd.  This
> one seems to work!  I'm running a single daemon and two config files and
> have clients connected to both SSID's.  Thanks!
>
> With kind regards,
>
> Paul Schenkeveld
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


[SOLVED] Re: State os VAP support

2013-04-30 Thread Paul Schenkeveld
On Tue, Apr 30, 2013 at 05:39:15PM +0200, Paul Schenkeveld wrote:
> On Mon, Apr 29, 2013 at 09:16:09AM -0700, Adrian Chadd wrote:
> > Multiple VAPs should be working. Doubly so on the AR5212 series hardware.
> > 
> > adrian
> 
> Thanks Adrian.
> 
> When I start two separate hostapd daemons with the config files from my
> previous post (and separate pidfiles), only the first one works.
> Starting them in the opposite order, only the other one works so I am
> (almost) sure that the config files by themselves are correct.
> 
> Please help!

I just found a new version of hostapd in /usr/ports/net/hostapd.  This
one seems to work!  I'm running a single daemon and two config files and
have clients connected to both SSID's.  Thanks!

With kind regards,

Paul Schenkeveld
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: State os VAP support

2013-04-30 Thread Paul Schenkeveld
On Mon, Apr 29, 2013 at 09:16:09AM -0700, Adrian Chadd wrote:
> Multiple VAPs should be working. Doubly so on the AR5212 series hardware.
> 
> adrian

Thanks Adrian.

When I start two separate hostapd daemons with the config files from my
previous post (and separate pidfiles), only the first one works.
Starting them in the opposite order, only the other one works so I am
(almost) sure that the config files by themselves are correct.

Please help!

With kind regards,

Paul Schenkeveld

> 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 42testB
> > 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 4ftestO
> > PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMO

Re: State os VAP support

2013-04-29 Thread Adrian Chadd
Multiple VAPs should be working. Doubly so on the AR5212 series hardware.




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 42testB
> 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 4ftestO
> 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 mess