Hi David,<br><br>Thank you for replying. <br><br>Yes, I have assigned ip-address to the wireless interface in AP mode.<br>As I wrote in my previous e-mail, when I ping from my laptop to the device in AP mode, the device responds to the ARP requests and the ICMP echo requests with ARP replies and ICMP echo replies. But, the replies are not received by my laptop.<br>
The "tcpdump" captures on the wireless interface in AP mode, when an ICMP request is sent from my laptop are as below:<br><br>====> when ARP entry for the wireless interface in AP mode is not present in my laptop,<br>
<i>user@user:~$ sudo tcpdump -i wlan2<br>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>listening on wlan2, link-type EN10MB (Ethernet), capture size 96 bytes<br>11:17:58.729002 ARP, Request who-has 172.16.1.1 tell 172.16.1.11, length 28<br>
11:17:58.729024 ARP, Request who-has 172.16.1.1 tell 172.16.1.11, length 28<br>11:17:58.729033 ARP, Reply 172.16.1.1 is-at 00:26:b6:de:f3:9b (oui Unknown), length 28<br><br>=====> when ARP entry is present on my laptop<br>
user@user:~$ sudo tcpdump -i wlan2<br>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>listening on wlan2, link-type EN10MB (Ethernet), capture size 96 bytes<br>11:23:53.568172 IP 172.16.1.11 > <a href="http://172.16.1.1">172.16.1.1</a>: ICMP echo request, id 11220, seq 15, length 64<br>
11:23:53.568222 IP 172.16.1.1 > <a href="http://172.16.1.11">172.16.1.11</a>: ICMP echo reply, id 11220, seq 15, length 64<br></i><br>So, suspecting either the packets are lost in air or mishandled by the wireless driver (ath9k + hostapd).<br>
Any thoughts on this?<br><br>Thanks,<br>Uday.<br><br><div class="gmail_quote">On Sat, Jun 11, 2011 at 9:39 AM, Davide <span dir="ltr"><<a href="mailto:louigi600@yahoo.it">louigi600@yahoo.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Have you given your wireless interface in AP mode an ip address ?<br>If you don't do that you will not be able to ping it.<br>
You could also try bridging lan and wlan in one virtual interface allowing bothe to be seen with the same address.<br><br>Regards<br>David<br><br>--- <b>Ven 10/6/11, Uday Yeddula <i><<a href="mailto:uday.yeddula@gmail.com" target="_blank">uday.yeddula@gmail.com</a>></i></b> ha scritto:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Da: Uday Yeddula <<a href="mailto:uday.yeddula@gmail.com" target="_blank">uday.yeddula@gmail.com</a>><br>Oggetto: hostap AP connected but cannot ping<br>
A: <a href="mailto:hostap@lists.shmoo.com" target="_blank">hostap@lists.shmoo.com</a><br>Data: Venerd́ 10 giugno 2011, 12:50<div><div></div><div class="h5"><br><br><div>Hi,<br><br>I am trying to configure an embedded device as an Access Point. It has Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express). I have Ubuntu 9.10 Server version installed in the box.
("2.6.31-14-generic #48-Ubuntu SMP"). Using hostapd deamon with ath9k driver for the same.<br>
<br>I have built hostapd using libnl-dev and libssl-dev packages.<br>After starting the hostapd with the hostapd.conf (sudo ./hostapd hostapd.conf), tried connecting my laptop to this AP.<br>The connection was successful but cannot ping from my laptop to the AP.<i><br>
<br>user@user:~$ sudo hostapd /etc/hostapd/hostapd.conf<br>Configuration file: /etc/hostapd/hostapd.conf<br>Using interface wlan2 with hwaddr 00:26:b6:de:f3:9b and ssid 'test'<br>wlan2: STA 00:26:82:c9:d3:30 IEEE 802.11: authenticated<br>
wlan2: STA 00:26:82:c9:d3:30 IEEE 802.11: associated (aid 1)<br>wlan2: STA 00:26:82:c9:d3:30 RADIUS: starting accounting session 4DF1F33A-00000000<br></i><br>On further analysis found that, my laptop sends the ARP request to the AP box. The AP box sends the ARP reply (observed using tcpdump on the AP box) but my laptop cannot see the ARP reply.<br>
If I restart hostapd deamon at this point, it works fine. (My laptop can ping the AP).<br>The AP is not stable. my laptop can always connect to it. But some times the ping to the AP fails.<br><br>Has any one seen similar issue? Can you help me with the fix for this problem?<br>
I have tried both hostapd-0.6.9 and hostapd-0.7.3 versions and found same problem on both versions.<br><br>The hostapd.conf used is as follows:<br><br>hostapd.conf:<br><br>interface=wlan0<br>driver=nl80211<br>ssid=test<br>
channel=11<br>hw_mode=g<br>macaddr_acl=0<br>auth_algs=0<br>ignore_broadcast_ssid=0<br><br>Thanks,<br>Uday.<br>
</div><br></div></div>-----Segue allegato-----<br><br><div>_______________________________________________<br>HostAP mailing list<br><a href="http://mc/compose?to=HostAP@lists.shmoo.com" target="_blank">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br></div></blockquote></td></tr></tbody></table></blockquote></div><br>