Re: ath and ipad

2013-07-04 Thread Adrian Chadd
What about with a very basic hostapd config?

eg:

interface=wlan1
driver=bsd
ssid=CACHEBOY_11N_2
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_passphrase=PASSPHRASEGOESHERE
wpa_pairwise=CCMP TKIP
ctrl_interface=/var/run/hostapd
___
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: ath and ipad

2013-07-04 Thread Adrian Chadd
Sorry, try:

interface=wlan0
driver=bsd
ssid=CACHEBOY_11N_1
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_passphrase=PASSPHRASE
wpa_pairwise=CCMP
ctrl_interface=/var/run/hostapd
___
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: ath and ipad

2013-07-04 Thread Slawa Olhovchenkov
On Thu, Jul 04, 2013 at 01:17:14AM -0700, Adrian Chadd wrote:

 Sorry, try:
 
 interface=wlan0
 driver=bsd
 ssid=CACHEBOY_11N_1
 wpa=3
 wpa_key_mgmt=WPA-PSK
 wpa_passphrase=PASSPHRASE
 wpa_pairwise=CCMP
 ctrl_interface=/var/run/hostapd

working
___
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: ath and ipad

2013-07-04 Thread Adrian Chadd
Ok! CAn you go and tinker with this? See what seems to break it?
I can then go debug why it's breaking.

Thanks!


-adrian
___
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: ath and ipad

2013-07-04 Thread Slawa Olhovchenkov
On Thu, Jul 04, 2013 at 01:25:20AM -0700, Adrian Chadd wrote:

 Ok! CAn you go and tinker with this? See what seems to break it?
 I can then go debug why it's breaking.

I can play with this setup some hours.
After this I restore previos setup and can play again next day, 06-11 GMT.
___
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: ath and ipad

2013-07-04 Thread Adrian Chadd
Thanks!

I'm heading to bed soon anyway.

I'm glad we've established _something_ that works!



adrian

On 4 July 2013 01:31, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 On Thu, Jul 04, 2013 at 01:25:20AM -0700, Adrian Chadd wrote:

 Ok! CAn you go and tinker with this? See what seems to break it?
 I can then go debug why it's breaking.

 I can play with this setup some hours.
 After this I restore previos setup and can play again next day, 06-11 GMT.
___
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: ath and ipad

2013-07-03 Thread Adrian Chadd
Hi!

I don't quite know what's going on there. I know the latest ipad works
fine. But I don't have an ipad 1 to test with.

Does the ipad 1 get an IP address?


-adrian


On 3 July 2013 13:17, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 I am try to connect iPad (iPad 1) to FreeBSD AP (ath0: Atheros 9220
 mem 0xb020-0xb020 irq 18 at device 5.0 on pci6).

 Association is OK (WPA2-EAP (PEAP)), but I don't see any packets from
 iPad (by tcpdump).

 FreeBSD is 10.0-CURRENT from Jun 8.
 With this system this iPad workin year ago (I don't remember exactly
 verion OS on that moment)

 iPhone 5 working with this system OK.

 This is iPad working nice with other FreeBSD 10.0-CURRENT from Aug 31
 2012 (ath0: Atheros 5212 mem 0xe300-0xe300 irq 11 at device
 20.0 on pci0).

 I am don't know how to deep debuging this issuse.
___
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: ath and ipad

2013-07-03 Thread Slawa Olhovchenkov
On Wed, Jul 03, 2013 at 01:44:55PM -0700, Adrian Chadd wrote:

 Hi!
 
 I don't quite know what's going on there. I know the latest ipad works
 fine. But I don't have an ipad 1 to test with.
 
 Does the ipad 1 get an IP address?

No, I don't see DHCP DISCOVER and ipad don't get DHCP OFFER.

How I can test ipad don't send any packets or packets from ipad droped
in the ath hardware or in the ath driver?

 -adrian
 
 
 On 3 July 2013 13:17, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
  I am try to connect iPad (iPad 1) to FreeBSD AP (ath0: Atheros 9220
  mem 0xb020-0xb020 irq 18 at device 5.0 on pci6).
 
  Association is OK (WPA2-EAP (PEAP)), but I don't see any packets from
  iPad (by tcpdump).
 
  FreeBSD is 10.0-CURRENT from Jun 8.
  With this system this iPad workin year ago (I don't remember exactly
  verion OS on that moment)
 
  iPhone 5 working with this system OK.
 
  This is iPad working nice with other FreeBSD 10.0-CURRENT from Aug 31
  2012 (ath0: Atheros 5212 mem 0xe300-0xe300 irq 11 at device
  20.0 on pci0).
 
  I am don't know how to deep debuging this issuse.
___
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: ath and ipad

2013-07-03 Thread Adrian Chadd
On 3 July 2013 15:04, Slawa Olhovchenkov s...@zxy.spb.ru wrote:

 How I can test ipad don't send any packets or packets from ipad droped
 in the ath hardware or in the ath driver?

You could try turning on wlan debugging:

wlandebug +input +output +crypto

See if it logs anything crypto drop related.



-adrian
___
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: ath and ipad

2013-07-03 Thread Slawa Olhovchenkov
On Wed, Jul 03, 2013 at 03:04:20PM -0700, Adrian Chadd wrote:

 On 3 July 2013 15:04, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 
  How I can test ipad don't send any packets or packets from ipad droped
  in the ath hardware or in the ath driver?
 
 You could try turning on wlan debugging:
 
 wlandebug +input +output +crypto
 
 See if it logs anything crypto drop related.

I see only this:

Jul  4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_newkey: cipher 
3 flags 0x3 keyix 65535
Jul  4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_setkey: AES-CCM 
keyix 6 flags 0x103 mac d8:a2:5e:01:58:55 rsc 0 tsc 0 len 16
Jul  4 02:09:03 notebook kernel: [339639] ap0: [d8:a2:5e:01:58:55] recv probe 
req
Jul  4 02:09:03 notebook last message repeated 3 times
Jul  4 02:09:08 notebook kernel: [339643] ap0: [d8:a2:5e:01:58:55] recv probe 
req
___
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: ath and ipad

2013-07-03 Thread Adrian Chadd
Ok, well. Try disconnecting everything, then run 'athstats 1' and see
if any crypto errors occur.



-adrian

On 3 July 2013 15:24, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 On Wed, Jul 03, 2013 at 03:04:20PM -0700, Adrian Chadd wrote:

 On 3 July 2013 15:04, Slawa Olhovchenkov s...@zxy.spb.ru wrote:

  How I can test ipad don't send any packets or packets from ipad droped
  in the ath hardware or in the ath driver?

 You could try turning on wlan debugging:

 wlandebug +input +output +crypto

 See if it logs anything crypto drop related.

 I see only this:

 Jul  4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_newkey: 
 cipher 3 flags 0x3 keyix 65535
 Jul  4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_setkey: 
 AES-CCM keyix 6 flags 0x103 mac d8:a2:5e:01:58:55 rsc 0 tsc 0 len 16
 Jul  4 02:09:03 notebook kernel: [339639] ap0: [d8:a2:5e:01:58:55] recv probe 
 req
 Jul  4 02:09:03 notebook last message repeated 3 times
 Jul  4 02:09:08 notebook kernel: [339643] ap0: [d8:a2:5e:01:58:55] recv probe 
 req
___
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: ath and ipad

2013-07-03 Thread Slawa Olhovchenkov
On Wed, Jul 03, 2013 at 03:25:58PM -0700, Adrian Chadd wrote:

 Ok, well. Try disconnecting everything, then run 'athstats 1' and see
 if any crypto errors occur.

I don't see any crypto errors occur in 'athstats 1' (but I don't
disconnecting everything).

If I do 'athdebug +recv +recv_proc' I see in log

Jul  4 02:33:04 notebook kernel: [341079] TODS 
d8:a2:5e:01:58:55-f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65
Jul  4 02:33:04 notebook kernel: [341079]  4801 2c00 f4ec 38a3 10dc d8a2 5e01 
5855 f4ec 38a3 10dc 201b 5cbd 1653
Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: pending 1
Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called

and don't see this in tcpdump.

 On 3 July 2013 15:24, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
  On Wed, Jul 03, 2013 at 03:04:20PM -0700, Adrian Chadd wrote:
 
  On 3 July 2013 15:04, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 
   How I can test ipad don't send any packets or packets from ipad droped
   in the ath hardware or in the ath driver?
 
  You could try turning on wlan debugging:
 
  wlandebug +input +output +crypto
 
  See if it logs anything crypto drop related.
 
  I see only this:
 
  Jul  4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_newkey: 
  cipher 3 flags 0x3 keyix 65535
  Jul  4 02:09:03 notebook kernel: [339639] ap0: ieee80211_crypto_setkey: 
  AES-CCM keyix 6 flags 0x103 mac d8:a2:5e:01:58:55 rsc 0 tsc 0 len 16
  Jul  4 02:09:03 notebook kernel: [339639] ap0: [d8:a2:5e:01:58:55] recv 
  probe req
  Jul  4 02:09:03 notebook last message repeated 3 times
  Jul  4 02:09:08 notebook kernel: [339643] ap0: [d8:a2:5e:01:58:55] recv 
  probe req
___
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: ath and ipad

2013-07-03 Thread Slawa Olhovchenkov
On Wed, Jul 03, 2013 at 03:39:07PM -0700, Adrian Chadd wrote:

 On 3 July 2013 15:38, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 
  I don't see any crypto errors occur in 'athstats 1' (but I don't
  disconnecting everything).
 
 ok, good starting point.
 
  If I do 'athdebug +recv +recv_proc' I see in log
 
  Jul  4 02:33:04 notebook kernel: [341079] TODS 
  d8:a2:5e:01:58:55-f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65
  Jul  4 02:33:04 notebook kernel: [341079]  4801 2c00 f4ec 38a3 10dc d8a2 
  5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653
  Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: 
  pending 1
  Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called
 
 Interesting. And that's the MAC address of your ipad?

d8:a2:5e:01:58:55 (f4:ec:38:a3:10:dc is my ath)
___
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: ath and ipad

2013-07-03 Thread Adrian Chadd
On 3 July 2013 15:45, Slawa Olhovchenkov s...@zxy.spb.ru wrote:

 ok, good starting point.

  If I do 'athdebug +recv +recv_proc' I see in log
 
  Jul  4 02:33:04 notebook kernel: [341079] TODS 
  d8:a2:5e:01:58:55-f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65
  Jul  4 02:33:04 notebook kernel: [341079]  4801 2c00 f4ec 38a3 10dc d8a2 
  5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653
  Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: 
  pending 1
  Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called

 Interesting. And that's the MAC address of your ipad?

 d8:a2:5e:01:58:55 (f4:ec:38:a3:10:dc is my ath)

Ok. So next is figuring out why it's dying. How about running
'athstats 1' whilst this is going on, see whether you're seeing
crypto/crc/etc errors show up?

Can you copy/paste the output of athstats whilst you're trying to have
your ipad associate?



-adrian
___
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: ath and ipad

2013-07-03 Thread Slawa Olhovchenkov
On Wed, Jul 03, 2013 at 03:46:55PM -0700, Adrian Chadd wrote:

 On 3 July 2013 15:45, Slawa Olhovchenkov s...@zxy.spb.ru wrote:
 
  ok, good starting point.
 
   If I do 'athdebug +recv +recv_proc' I see in log
  
   Jul  4 02:33:04 notebook kernel: [341079] TODS 
   d8:a2:5e:01:58:55-f4:ec:38:a3:10:dc(f4:ec:38:a3:10:dc) data 67M +65
   Jul  4 02:33:04 notebook kernel: [341079]  4801 2c00 f4ec 38a3 10dc d8a2 
   5e01 5855 f4ec 38a3 10dc 201b 5cbd 1653
   Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_legacy_rx_tasklet: 
   pending 1
   Jul  4 02:33:04 notebook kernel: [341080] ath0: ath_rx_proc: called
 
  Interesting. And that's the MAC address of your ipad?
 
  d8:a2:5e:01:58:55 (f4:ec:38:a3:10:dc is my ath)
 
 Ok. So next is figuring out why it's dying. How about running
 'athstats 1' whilst this is going on, see whether you're seeing
 crypto/crc/etc errors show up?
 
 Can you copy/paste the output of athstats whilst you're trying to have
 your ipad associate?

ipad succesufull associate (i see this association by ifconfig list
sta).
i don't see any packets from ipad after associate.

I run athstats, turn off wifi on ipad, turn it on and wait 169.254.x.x instead 
of
DHCP leased address. (except ipad associated and working iphone and n9) 

   input   output altrate   shortlong xretry crcerr crypt  phyerr rssi  rate
  911909   396162 733   37635   32000   4302  1168313   07  MCS2
  200   0   0   0  0  0 0   08  MCS2
  221   0   0   0  0  0 0   0   10  MCS2
  221   0   0   0  0  0 0   09  MCS2
  252   0   0   0  0  0 0   0   15  MCS2
  238   0   0   0  0  0 0   0   171M
  200   0   0   0  0  0 0   0   101M
  200   0   0   0  0  0 0   091M
  289   0   0   0  0  0 0   0   261M
  290   0   0   0  0  0 0   0   221M
  270   0   0   0  0  0 0   0   241M
  290   0   0   0  0  0 0   0   251M
  250   0   0   0  0  0 0   0   231M
  210   0   0   0  0  0 0   0   111M
  200   0   0   0  0  0 0   091M
  200   0   0   0  0  0 0   081M
  200   0   0   0  0  0 0   081M
  180   0   0   0  0  0 0   081M
  200   0   0   0  0  0 0   081M
  200   0   0   0  0  0 0   081M
  267   0   0   4  1  1 0   0   201M
   input   output altrate   shortlong xretry crcerr crypt  phyerr rssi  rate
  912391   396198 733   37635   32004   4303  1168413   0   141M
  190   0   0   0  0  0 0   091M
  190   0   0   0  0  0 0   081M
  289   0   0   0  0  1 0   0   341M
  301   0   0   0  0  0 0   0   27  MCS2
  270   0   0   0  0  0 0   0   20  MCS2
  300   0   0   0  0  0 0   0   25  MCS2
  280   0   0   0  0  0 0   0   23  MCS2
  170   0   0   0  0  2 0   0   11  MCS2
  190   0   0   0  0  0 0   08  MCS2
  210   0   0   0  0  0 0   0   10  MCS2
  231   0   0   0  0  0 0   0   11  MCS2
  231   0   0   0  0  0 0   0   15  MCS2
  220   0   0   0  0  0 0   0   14  MCS2
  200   0   0   0  0  0 0   09  MCS2
  180   0   0   0  0  0 0   08  MCS2
  200   0   0   0  0  0 0   08  MCS2
  221   0   0   0  0  0 0   0   13  MCS0
  200   0   0   0  0  0 0   09  MCS0
  200   0   0   0  0  0 0   09  MCS0
  241   0   0   0  0  1 0   0   22  MCS7
   input   output altrate   shortlong xretry crcerr crypt  phyerr rssi  rate
  912865   396212 733   37635   32004   4303  1168813   0   20  MCS7
  

Re: ath and ipad

2013-07-03 Thread Slawa Olhovchenkov
On Wed, Jul 03, 2013 at 04:02:13PM -0700, Adrian Chadd wrote:

 Ok, can you set the network up (briefly!) as a totally open (no
 encryption) network, and verify that the ipad works?

Not now, i can try this after some hours.

 Also, what's your hostapd.conf file look like?

interface=ap0
driver=bsd
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=notebook
country_code=RU
ieee80211d=1
channel=6
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wme_enabled=0
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
wmm_enabled=1
ieee80211n=1
ieee8021x=1
eapol_version=2
eapol_key_index_workaround=1
eap_server=1
eap_user_file=/etc/hostapd.eap_user
ca_cert=/usr/local/etc/raddb/certs/ca.pem
server_cert=/usr/local/etc/raddb/certs/server.pem
private_key=/usr/local/etc/raddb/certs/server.pem
private_key_passwd=whatever
wpa=3
wpa_key_mgmt=WPA-EAP
wpa_pairwise=TKIP CCMP

 Also, what's the output of 'athkey' look like?

usage: athkey [-i device] keyix cipher keyval [mac]
___
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: ath and ipad

2013-07-03 Thread Adrian Chadd
Right, but the other system is not running 11n, neither is it running
on the newer chip.

I think it's worty trying to simplify things down as much as you can.


-adrian
___
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: ath and ipad

2013-07-03 Thread Adrian Chadd
.. grr. So I've been meaning to add in some framework to the
net80211/ath code to provide per-node statistics, rather than just
per-vap and per-ath statistics. But I've not yet done it.

Boy would that make this problem easy to solve. :(



-adrian
___
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