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
2) Using the new version i have tried two methods but both failed:
*) ifconfig wlan0 down
iw --debug dev wlan0 ibss join fooadhoc 2412
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[HEADER] 16 octets
.nlmsg_len = 36
.nlmsg_type = 2 <ERROR>
.nlmsg_flags = 0 <>
.nlmsg_seq = 1286360598
.nlmsg_pid = 8489
[ERRORMSG] 20 octets
.error = -95 "Operation not supported"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.nlmsg_type = 20 <0x14>
.nlmsg_flags = 5 <REQUEST,ACK>
.nlmsg_seq = 1286360598
.nlmsg_pid = 8489
--------------------------- END NETLINK MESSAGE ---------------------------
command failed: Operation not supported (-95)
**)
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
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[HEADER] 16 octets
.nlmsg_len = 36
.nlmsg_type = 2 <ERROR>
.nlmsg_flags = 0 <>
.nlmsg_seq = 1286361108
.nlmsg_pid = 8542
[ERRORMSG] 20 octets
.error = -95 "Operation not supported"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.nlmsg_type = 20 <0x14>
.nlmsg_flags = 5 <REQUEST,ACK>
.nlmsg_seq = 1286361108
.nlmsg_pid = 8542
--------------------------- END NETLINK MESSAGE ---------------------------
command failed: Operation not supported (-95)
> Date: Tue, 5 Oct 2010 20:02:44 +0200
> Subject: Re: [ath5k-devel] adhoc mode atheros communication ar5413 802.11abg
> From: [email protected]
> To: [email protected]
> CC: [email protected]
>
> > 1) if card is not able to run in adhoc mode why the iwconfig does not
> > report error when i have used iwconfig command ?
>
> Because "iwconfig" is the wrong tool. You should use "iw". See
> http://wireless.kernel.org/en/users/Documentation/iw
>
> For some hints on how to setup adhoc, see
> http://wireless.kernel.org/en/users/Documentation/iw/replace-iwconfig
>
>
> > 2) if the card is able to run in adhoc why it does not work as all
> > parameters are good defined
>
> The same reason as above. "iwconfig" was for WEXT, "iw" is for
> nl80211/cfg80211, which can do way more.
>
> --
> http://www.holgerschurig.de
_______________________________________________
ath5k-devel mailing list
[email protected]
https://lists.ath5k.org/mailman/listinfo/ath5k-devel