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
[email protected]
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to