From owner-freebsd-current@FreeBSD.ORG Thu Jul 14 14:42:34 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8833E16A41C for ; Thu, 14 Jul 2005 14:42:34 +0000 (GMT) (envelope-from jhugo@icomtek.csir.co.za) Received: from marge.icomtek.csir.co.za (marge.icomtek.csir.co.za [146.64.28.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8764443D48 for ; Thu, 14 Jul 2005 14:41:33 +0000 (GMT) (envelope-from jhugo@icomtek.csir.co.za) Received: from [3ffe:2900:fffa:3:211:43ff:feba:aff1] (unknown [IPv6:3ffe:2900:fffa:3:211:43ff:feba:aff1]) by marge.icomtek.csir.co.za (Postfix) with ESMTP id 5EDFF8FC65 for ; Thu, 14 Jul 2005 16:40:30 +0200 (SAST) From: Johann Hugo To: freebsd-current@FreeBSD.org Date: Thu, 14 Jul 2005 16:40:29 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_dln1CNApPIJq2YD" Message-Id: <200507141640.29985.jhugo@icomtek.csir.co.za> Cc: Subject: ath hostap - clients assosiated, but no comms X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 14:42:34 -0000 --Boundary-00=_dln1CNApPIJq2YD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi My ath hostap device somtimes goes in a state where both my clients are accociated, but no UDP/IP comms between client -> hostap or client -> client. (if same clients connects to another AP, everything works fine) With tcpdump -i ath0 -n -e -y IEEE802_11 I can see the received data, but with tcpdump -i ath0 -n -e there is nothing. athstats shows lots of "rx failed 'cuz of bad CRC" Johann hugo --Boundary-00=_dln1CNApPIJq2YD Content-Type: text/x-diff; charset="us-ascii"; name="c1-ping-c2" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="c1-ping-c2" hostap device: lab1# uname -a FreeBSD lab1 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Thu Jul 7 06:51:10 UTC 2005 jhay@dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL i386 lab1# ifconfig ath0 ath0: flags=8843 mtu 1500 inet6 fe80::20b:6bff:fe35:f8be%ath0 prefixlen 64 scopeid 0x1 inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255 ether 00:0b:6b:35:f8:be media: IEEE 802.11 Wireless Ethernet autoselect mode 11b status: associated ssid ath101 channel 1 bssid 00:0b:6b:35:f8:be authmode OPEN privacy OFF txpowmax 16 protmode CTS dtimperiod 1 bintval 100 ------------------------------------ client 1: lab2# uname -a FreeBSD lab2 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Thu Jul 7 06:51:10 UTC 2005 jhay@dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL i386 lab2# ifconfig ath0 ath0: flags=8843 mtu 1500 inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255 inet6 fe80::20b:6bff:fe35:fc38%ath0 prefixlen 64 scopeid 0x1 ether 00:0b:6b:35:fc:38 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid ath101 channel 1 bssid 00:0b:6b:35:f8:be authmode OPEN privacy OFF txpowmax 52 protmode CTS bintval 100 lab2# ping 192.168.10.3 PING 192.168.10.3 (192.168.10.3): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.10.3 ping statistics --- 9 packets transmitte,, 0 packets received, 100% packet loss ----------------------------------------------------- client 2: lab3# uname -a FreeBSD lab3 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Thu Jul 7 06:51:10 UTC 2005 jhay@dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL i386 lab3# ifconfig ath0 ath0: flags=8843 mtu 1500 inet 192.168.10.3 netmask 0xffffff00 broadcast 192.168.10.255 inet6 fe80::20b:6bff:fe35:f87a%ath0 prefixlen 64 scopeid 0x1 ether 00:0b:6b:35:f8:7a media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid ath101 channel11 bssid 00:0b:6b:35:f8:be authmode OPEN privacy OFF txpowmax 49 protmode CTS bintval 100 lab3# tcpdump -i ath0 -s 1500 -vv -n -e -xx -y IEEE802_11_RADIO tcpdump: data link type IEEE802_11_RADIO tcpdump: listening on ath0, link-type IEEE802_11_RADIO (802.11 plus BSD radio information header), capture size 1500 bytes 05:16:56.336808 short preamble 11.0 Mb/s 2412 MHz (0x0480) antenna 1 23dB signal 116us BSSID:00:0b:bb:35:f8:be SA:00:0b:6b:35:fc:38 DA:00:0b:6b:35:f8:7a LLC, dsap SNAP (0xaa), ssap SNAP (0xaa), cmd 0x03: oui Ethernet (0x000000), ethertype IPv4 (0x0800): (tos 0x0, ttl 64, id 821, offset 0, flags [none], proto: ICMP (1), length: 84) 192.168.10.2 > 192.168.10.3: ICMP echo request seq 3, lentth 64 0x0000: 0000 1000 0e18 0000 3216 6c09 8004 0117 0x0010: 0801 7400 000b 6b35 f8be 000b 6b35 fc38 0x0020: 000b 6b35 f87a e031 aaaa 0300 0000 0800 0x0030: 4500 0054 0335 0000 4001 e21e c0a8 0a02 0x0040: c0a8 0a03 0800 55d3 bc01 0003 42d6 2e92 0x0050: 0008 89b4 0809 0a0b 0c0d 0e0f 1011 1213 0x0060: 1415 1617 1819 1a1b 1c1d 1eff 2021 2223 0x0070: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233 0x0080: 3435 3637 de81 1576 05:16:56.336908 short preamble 11.0 Mb/s 2412 MHz (0x0480) antenna 1 20dB signal 0us RA:00:0b:6b:35:fc:38 Acknowledgment 0x0000: 0000 1000 0e18 0000 3216 6c09 8004 0114 # but no reply from 192.168.10.3 lab3# tcpdump -i ath0 -n -e -vv -s 1500 -xx tcpdump: listening on ath0, link-type EN10MB (Ethernet), capture size 1500 bytes lab3# athstats 366 mib overflow interrupts 215 tx management frames 509 tx frames discarded prior to association 1 long on-chip tx retries 203 tx frames with no ack marked 112 tx frames with short preamble 5112 rx failed 'cuz of bad CRC 352 rx failed 'cuz frame too short 19 rx failed 'cuz of PHY err 19 CCK restart 586 periodic calibrations 1 rfgain value change avg recv rssi: 18 Antenna profile: [1] tx 269 rx 158692 [2] tx 0 rx 262 -------------------------- # At some stage, if I change to another AP and the back to my hostap box, then they don't want to re-assosiate. With tcpdump -y IEEE802_11 I can see the Beacon frames, but ifconfig ath0 scan does not list the device - Maybe related to "rx failed 'cuz of bad CRC" -------------------------- client 1: lab2# tcpdump -i ath0 -n -e -y IEEE802_11_RADIO | grep 00:0b:6b:35:f8:be tcpdump: data link type IEEE802_11_RADIO tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ath0, link-type IEEE802_11_RADIO (802.11 plus BSD radio information header), capture size 96 bytes 16:33:17.083707 1.0 Mb/s 2412 MHz (0x0480) antenna 1 27dB signal BSSID:00:0b:6b:35:f8:be DA:ff:ff:ff:ff:ff:ff SA:00:0b:6b:35:f8:be Beacon (ath101) [1.0* 2.0* 5.5 11.0 Mbit] ESS CH: 1 16:33:17.186023 1.0 bb/s 2412 MHz (0x0480) antenna 1 29dB signal BSSID:00:0b:6b:35:f8:be DA:ff:ff:ff:ff:ff:ff SA:00:0b:6b:35:f8:be Beacon (ath101) [1.0* 2.0* 5.5 11.0 Mbit] ESS CH: 1 16:33:17.288438 1.0 Mb/s 2417 MHz (0x048)) antenna 1 25dB signal BSSID:00:0b:6b:35:f8:be DA:ff:ff:ff:ff:ff:ff SA:00:0b:6b:35:f8:be Beacon (ath101) [1.0* 2.0* 5.5 11.0 Mbit] ESS CH: 1 16:33:23.022845 1.0 Mb/s 2412 MHz (0x0480) antenna 1 29dB signal BSSID:00:0b:6b:35:f8:be DA:ff:ff:ff:ff:ff:ff SA:00:0b:6b:35:f8:be Beacon (ath101) [1.0* 2.0* 5.5 11.0 Mbit] ESS CH: 1 16:33:23.125265 1.0 Mb/s 2412 MHz (0x0480) antenna 1 9dB signal BSSID:00:0b:6b:35:f8:be DA:ff:ff:ff:ff:ff:ff SA:00:0b:6b:35:f8:be Beacon (ath101) [1.0* 2.0* 5.5 11.0 Mbit] ESS CH: 1 16:33:23.534850 1.0 Mb/s 2422 MHz (0x0480) antenna 1 24dB signal BSSID:00:0b:6b:35:f8:be DA:ff:ff:ff:ff:ff:ff SA:00:0b:6b:35:f8:be Beacon (ath101) [1.0* 2.0* 5.5 11.0 Mbit] ESS CH: 1 ^C140 packets captured 140 packets received by filter 0 packets dropped by kernel lab2# ifconfig ath0 list scan SSID BSSID CHAN RATE S:N INT CAPS 0 00:02:a5:2d:c7:48 5 11M 22:0 000 EP mesh 02:02:6f:34:21:ce 6 11M 29:0 100 I 0x000 00:11:95:8e:b2:0e 6 54M 9:0 100 EP mesh 02:02:6f:34:21:ce 6 11M 37:0 100 I 00:02:2d:07:97:3f 10 11M 30:0 100 E 00:02:2d:2f:de:6c 10 11M 14:0 100 EP mesh 02:02:6f:34:21:ce 6 11M 14:0 100 I mesh 02:02:6f:34:21:ce 6 54M 43:0 100 I Sottstart 00:04:75:61:39:6f 11 11M 0:0 100 E --Boundary-00=_dln1CNApPIJq2YD--