Re: wpa_supplicant, Atheros AR9285 and FreeBSD 8.0 issue - wpa_supplicant hangs

2010-03-29 Thread Eugene Dzhurinsky
On Sun, Mar 28, 2010 at 10:46:10PM +0300, Eugene Dzhurinsky wrote:
 Okay, with simplified config things didn't change, so I submitted 
 PR: kern/145123

Sometimes I'm felling like being an idiot. I just realized that I had
configured both laptops to use same IP address, which was noticed on logs at
AP host.  If I'd look at log files, even dmesg - I will find the cause
immediately, but instead I started to post to mailing lists and send PR-s.

Anyway, the problem is already resolved, and I asked to close the PR.

Sorry about that :(

-- 
Eugene N Dzhurinsky


pgpImwRPLg9rT.pgp
Description: PGP signature


Re: wpa_supplicant, Atheros AR9285 and FreeBSD 8.0 issue - wpa_supplicant hangs

2010-03-28 Thread Rui Paulo

On 27 Mar 2010, at 21:12, Eugene Dzhurinsky wrote:

 On Sat, Mar 27, 2010 at 02:20:15PM +0200, Eugene Dzhurinsky wrote:
 On Wed, Mar 24, 2010 at 10:26:39PM +0200, Eugeny N Dzhurinsky wrote:
 
 I realized that it fails after group rekeying completes. If is set rekeying 
 to
 occur in 30 minutes on AP host - for 30 minutes I am not getting any issue.
 
 With my DLink WiFi USB stick powered by if_rum driver such problem does not
 appear.
 
 If I should provide some additional information to help someone understand 
 and
 fix this issue - please let me know :)
 
 Finally I was able to find out the case which makes my wifi to stop working.
 The problem is easily reproducible if second laptop is associated with AP.
 
 My AP configuration (PC with FreeBSD 7.2) is listed below:
 
 interface=ral0
 debug=2
 ctrl_interface=/var/run/hostapd
 ctrl_interface_group=wheel
 ssid=freebsdap
 wpa=1
 wpa_passphrase=*
 wpa_key_mgmt=WPA-PSK
 wpa_group_rekey=1800
 wpa_pairwise=CCMP TKIP
 
 local wpa_supplicant.conf is like below:
 
 ctrl_interface=/var/run/wpa_supplicant
 ctrl_interface_group=wheel
 fast_reauth=0
 eapol_version=2
 network={
ssid=freebsdap
key_mgmt=WPA-PSK
auth_alg=OPEN
psk=*
scan_ssid=1
 }
 
 My primary laptop is ASUS K40IN with wifi card on AR9285 chipset, another
 laptop is ASUS K40IJ with wifi card on AR9285 chipset too.
 
 And once second laptop gets associated with AP - my one stops to recognize
 wifi connection. But it's still listed as associated in ifconfig output. And 
 
 wpa_cli reassociate
 
 doesn't solve the problem - I have to restart wpa_supplicant.
 
 Does this make any sense? Should I submit PR or there is some
 misconfiguration?

You can try with a more simple config. Just:
network={
ssid=freebsdap
psk=...
scan_ssid=1
}

If this doesn't work you should send-pr.

--
Rui Paulo

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


Re: wpa_supplicant, Atheros AR9285 and FreeBSD 8.0 issue - wpa_supplicant hangs

2010-03-28 Thread Eugene Dzhurinsky
On Sun, Mar 28, 2010 at 12:24:07PM +0100, Rui Paulo wrote:
 You can try with a more simple config. Just:
 network={
   ssid=freebsdap
   psk=...
   scan_ssid=1
 }
 
 If this doesn't work you should send-pr.

Okay, with simplified config things didn't change, so I submitted 
PR: kern/145123

-- 
Eugene N Dzhurinsky


pgpaUKaQskyzZ.pgp
Description: PGP signature


Re: wpa_supplicant, Atheros AR9285 and FreeBSD 8.0 issue - wpa_supplicant hangs

2010-03-27 Thread Eugene Dzhurinsky
On Wed, Mar 24, 2010 at 10:26:39PM +0200, Eugeny N Dzhurinsky wrote:
 Hi!
 
 I am facing very strange issue - for some reason wpa_supplicant hands after
 associating connection with AP. It doesn't hang immediately - but after some
 time (amout a minute or so).

I realized that it fails after group rekeying completes. If is set rekeying to
occur in 30 minutes on AP host - for 30 minutes I am not getting any issue.

With my DLink WiFi USB stick powered by if_rum driver such problem does not
appear.

If I should provide some additional information to help someone understand and
fix this issue - please let me know :)

P.S. Many thanks to Rui Paulo for porting AR9285 driver!

-- 
Eugene N Dzhurinsky


pgpq586K7g3WF.pgp
Description: PGP signature


Re: wpa_supplicant, Atheros AR9285 and FreeBSD 8.0 issue - wpa_supplicant hangs

2010-03-27 Thread Eugene Dzhurinsky
On Sat, Mar 27, 2010 at 02:20:15PM +0200, Eugene Dzhurinsky wrote:
 On Wed, Mar 24, 2010 at 10:26:39PM +0200, Eugeny N Dzhurinsky wrote:
 
 I realized that it fails after group rekeying completes. If is set rekeying to
 occur in 30 minutes on AP host - for 30 minutes I am not getting any issue.
 
 With my DLink WiFi USB stick powered by if_rum driver such problem does not
 appear.
 
 If I should provide some additional information to help someone understand and
 fix this issue - please let me know :)

Finally I was able to find out the case which makes my wifi to stop working.
The problem is easily reproducible if second laptop is associated with AP.

My AP configuration (PC with FreeBSD 7.2) is listed below:

interface=ral0
debug=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=freebsdap
wpa=1
wpa_passphrase=*
wpa_key_mgmt=WPA-PSK
wpa_group_rekey=1800
wpa_pairwise=CCMP TKIP

local wpa_supplicant.conf is like below:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
fast_reauth=0
eapol_version=2
network={
ssid=freebsdap
key_mgmt=WPA-PSK
auth_alg=OPEN
psk=*
scan_ssid=1
}

My primary laptop is ASUS K40IN with wifi card on AR9285 chipset, another
laptop is ASUS K40IJ with wifi card on AR9285 chipset too.

And once second laptop gets associated with AP - my one stops to recognize
wifi connection. But it's still listed as associated in ifconfig output. And 

wpa_cli reassociate

doesn't solve the problem - I have to restart wpa_supplicant.

Does this make any sense? Should I submit PR or there is some
misconfiguration?

-- 
Eugene N Dzhurinsky


pgpl7phaDXEvM.pgp
Description: PGP signature


wpa_supplicant, Atheros AR9285 and FreeBSD 8.0 issue - wpa_supplicant hangs

2010-03-24 Thread Eugeny N Dzhurinsky
Hi!

I am facing very strange issue - for some reason wpa_supplicant hands after
associating connection with AP. It doesn't hang immediately - but after some
time (amout a minute or so).

I tried to run it as

wpa_supplicant -ddd -i wlan1 -c /etc/wpa_supplicant.conf 

and in logs I don't see any errors:

===



WPA: RX message 1 of Group Key Handshake from 00:1b:11:01:6b:f6 (ver=2)
State: GROUP_HANDSHAKE - GROUP_HANDSHAKE
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=2 tx=0 len=32).
WPA: RSC - hexdump(len=6): 0e 00 00 00 00 00
wpa_driver_bsd_set_key: alg=TKIP addr=ff:ff:ff:ff:ff:ff key_idx=2 set_tx=0 
seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 03 22 00 20 00 00 00 00 00 
00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 91 13 79 11 04 55 fe 1e a3 12 f9 
63 96 6b e8 b8 00 00
WPA: Key negotiation completed with 00:1b:11:01:6b:f6 [PTK=CCMP GTK=TKIP]
Cancelling authentication timeout
State: GROUP_HANDSHAKE - COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:1b:11:01:6b:f6 completed (auth) [id=0 
id_str=]
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
EAPOL: startWhen -- 0
EAPOL: disable timer tick
===

ifconfig looks like below:

===
re0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500

options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC
ether 00:26:18:92:e4:16
media: Ethernet autoselect (10baseT/UTP half-duplex)
status: no carrier
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
options=3RXCSUM,TXCSUM
inet 127.0.0.1 netmask 0xff00 
ath0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
ether 00:25:d3:5c:f0:c8
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 00:25:d3:5c:f0:c8
inet 192.168.10.3 netmask 0xff00 broadcast 192.168.10.255
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
status: associated
ssid freebsdap channel 10 (2457 MHz 11g) bssid 00:1b:11:01:6b:f6
regdomain NONE country UA indoor ecm authmode WPA privacy ON
deftxkey UNDEF TKIP 2:128-bit txpower 30 bmiss 7 scanvalid 450 bgscan
bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS
wme burst roaming MANUAL
===

uname -a

FreeBSD localhost 8.0-STABLE FreeBSD 8.0-STABLE #34: Mon Mar 22 23:31:30 EET 
2010 r...@localhost:/usr/obj/usr/src/sys/BOFH  i386

atheros driver is loaded as module.

What may be wrong there?

Thank you in advance!

-- 
Eugene N Dzhurinsky
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org