> don't use connect, use "ibss join"... neither connect nor join is working. > load ath5k modules i have checked the modules is any one missing ? lsmod|grep ath ath5k 95252 0 mac80211 199728 1 ath5k led_class 3896 1 ath5k cfg80211 23380 2 ath5k,mac80211 I have already tried both commands : iwconfig and iw *)iwconfig don't report any error but when i am pinging between machines there is no response: Host unreachable i am using ip addresses 192.168.1.2 and 192.168.1.3 **)iw reports error = -95 "Operation not supported" when i am trying to join an essid Machine1: umic4:~/Desktop # ifconfig wlan0 down umic4:~/Desktop # iwconfig wlan0 mode ad-hoc umic4:~/Desktop # iwconfig wlan0 essid yassine channel 1 umic4:~/Desktop # ifconfig wlan0 up umic4:~/Desktop # iwconfig lo no wireless extensions. eth2 no wireless extensions. eth3 no wireless extensions. wmaster0 no wireless extensions. wlan0 IEEE 802.11abg ESSID:"yassine" Mode:Ad-Hoc Frequency:2.412 GHz Cell: 5A:34:3F:2F:CC:B9 Tx-Power=23 dBm Retry min limit:7 RTS thr:off Fragment thr=2352 B Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 umic4:~/Desktop # ifconfig wlan0 10.0.0.1 umic4:~/Desktop # ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:0F:CB:B2:9B:0E inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:410 errors:0 dropped:0 overruns:0 frame:0 TX packets:204 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:54307 (53.0 Kb) TX bytes:39205 (38.2 Kb) umic4:~/Desktop # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 wlan0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo umic4:~/Desktop # ping 10.0.0.2 PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. >From 10.0.0.1: icmp_seq=1 Destination Host Unreachable >From 10.0.0.1 icmp_seq=1 Destination Host Unreachable >From 10.0.0.1 icmp_seq=2 Destination Host Unreachable >From 10.0.0.1 icmp_seq=3 Destination Host Unreachable ^C --- 10.0.0.2 ping statistics --- 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3022ms , pipe 3 umic4:~/Desktop #iwlist wlan0 scan Cell 15 - Address: 5A:34:3F:2F:CC:B9 ESSID:"yassine" Mode:Ad-Hoc Channel:1 Frequency:2.412 GHz (Channel 1) Quality=18/100 Signal level:-77 dBm Noise level=-89 dBm Encryption key:off Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:tsf=00000000044d91da Extra: Last beacon: 3428ms ago Machine 2: umic3:/home/workspace/scripts/start # ifconfig wlan0 down umic3:/home/workspace/scripts/start # iwconfig wlan0 mode ad-hoc umic3:/home/workspace/scripts/start # iwconfig wlan0 essid yassine channel 1 umic3:/home/workspace/scripts/start # ifconfig wlan0 up umic3:/home/workspace/scripts/start # iwconfig lo no wireless extensions. eth0 no wireless extensions. eth1 no wireless extensions. wmaster0 no wireless extensions. wlan0 IEEE 802.11abg ESSID:"yassine" Mode:Ad-Hoc Frequency:2.412 GHz Cell: 36:4F:A0:DC:D6:53 Tx-Power=23 dBm Retry min limit:7 RTS thr:off Fragment thr=2352 B Encryption key:off Power Management:off Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 umic3:/home/workspace/scripts/start # ifconfig wlan0 10.0.0.2 umic3:/home/workspace/scripts/start # ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr 00:0F:CB:B2:9B:19 inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:462 errors:0 dropped:0 overruns:0 frame:0 TX packets:192 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:53719 (52.4 Kb) TX bytes:34613 (33.8 Kb) umic3:/home/workspace/scripts/start # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 137.226.220.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 wlan0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo umic3:/home/workspace/scripts/start # ping 10.0.0.1 PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data. >From 10.0.0.2: icmp_seq=2 Destination Host Unreachable >From 10.0.0.2 icmp_seq=2 Destination Host Unreachable >From 10.0.0.2 icmp_seq=3 Destination Host Unreachable >From 10.0.0.2 icmp_seq=4 Destination Host Unreachable ^C --- 10.0.0.1 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4002ms , pipe 3 umic3:/home/workspace/scripts/start # iwlist wlan0 scan Cell 11 - Address: 5A:34:3F:2F:CC:B9 ESSID:"yassine" Mode:Ad-Hoc Channel:1 Frequency:2.412 GHz (Channel 1) Quality=71/100 Signal level:-37 dBm Noise level=-83 dBm Encryption key:off Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s 48 Mb/s; 54 Mb/s Extra:tsf=0000000004ce1f3b Extra: Last beacon: 4372ms ago > From: b...@einfach.org > To: ath5k-devel@lists.ath5k.org > Subject: Re: [ath5k-devel] adhoc mode atheros communication ar5413 802.11abg > Date: Thu, 7 Oct 2010 10:53:06 +0900 > CC: ensi_...@hotmail.com; holgerschu...@googlemail.com > > On Wed October 6 2010 21:06:07 yassine antir wrote: > > i habe tried iw but it doesn't work too: > > > > 1) first i have used iw > > 0.9.4-nogit there is many options not supported so i could not find out > > how to set the adhoc mode so i upgraded to new version 0.9.21 > > i am using ad-hoc mode every day with ath5k and an ar5414 chipset, which is > almost the same as ar5413. > > > 2) Using the new version i have tried two methods but both failed: > > > > *) ifconfig wlan0 down > > iw --debug dev wlan0 ibss join fooadhoc 2412 > > .error = -95 "Operation not supported" > > is your interface in managed mode? > i guess you have to do "iw dev wlan0 set type ibss" first > > > **) > > ifconfig wlan0 down > > iw dev wlan0 set type ibss > > ifconfig wlan0 up > > iwconfig > > wlan0 IEEE 802.11abg ESSID:"" > > Mode:Ad-Hoc Frequency:2.422 GHz Cell: Not-Associated > > Tx-Power=23 dBm > > Retry min limit:7 RTS thr:off Fragment thr=2352 B > > Encryption key:off > > Power Management:off > > Link Quality:0 Signal level:0 Noise level:0 > > Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 > > Tx excessive retries:0 Invalid misc:0 Missed beacon:0 > > > > iw --debug wlan0 connect foo 2412 > > .error = -95 "Operation not supported" > > don't use connect, use "ibss join"... > > > > Because "iwconfig" is the wrong tool. You should use "iw". See > > > http://wireless.kernel.org/en/users/Documentation/iw > > allthough, 'iw' is supposed to replace 'iwconfig' it is still possible to use > iwconfig to set up ibss mode. > > load ath5k modules and then: > > iwconfig wlan0 mode ad-hoc channel $CH essid $ESSID > ifconfig wlan0 $IP > > still works. > > bruno
_______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel