On 29 Dec 2008, at 19:36, Fabio Rossi wrote:

> On Monday 29 December 2008, Nicholas J Humfrey wrote:
>
>> On 29 Dec 2008, at 18:22, Fabio Rossi wrote:
>
>> The 2.6.28 kernel doesn't seem to let you change mode using iwconfig:
>>
>> ~ # iwconfig wlan0 mode ad-hoc
>> Error for wireless request "Set Mode" (8B06) :
>>     SET failed on device wlan0 ; Operation not supported.
>
> On my system I can give the following sequence:
>
> # modprobe  ath5k
> # iwconfig ath0 mode ad-hoc
> Error for wireless request "Set Mode" (8B06) :
>    SET failed on device ath0 ; Operation not supported.
> # iw reg set IT
> # iwconfig ath0 mode ad-hoc
> # << do your ad-hoc business>>
>
> so iwconfig is usable for setting the ad-hoc mode. The important  
> thing is to
> set the right regulatory


Sadly this does not seem to work for me on my system:

~ # modprobe  ath5k
NET: Registered protocol family 10
cfg80211: Calling CRDA to update world regulatory domain
ath5k_pci 0000:00:0c.0: registered as 'phy0'
ath5k phy0: Atheros AR5213A chip found (MAC: 0x59, PHY: 0x43)
ath5k phy0: RF5112B multiband radio found (0x36)
~ # iwconfig wlan0 mode ad-hoc
Error for wireless request "Set Mode" (8B06) :
     SET failed on device wlan0 ; Operation not supported.
~ # iw reg set IT
cfg80211: Calling CRDA for country: IT
~ # iwconfig wlan0 mode ad-hoc
Error for wireless request "Set Mode" (8B06) :
     SET failed on device wlan0 ; Operation not supported.



> With "iwlist ath0 frequency" you can see the available channels  
> before and
> after the regulatory setting.

Ah, that is useful, but again sadly doesn't work!

~ # iw reg set GB
cfg80211: Calling CRDA for country: GB
~ # iwlist wlan0 frequency
wlan0     11 channels in total; available frequencies :
           Channel 01 : 2.412 GHz
           Channel 02 : 2.417 GHz
           Channel 03 : 2.422 GHz
           Channel 04 : 2.427 GHz
           Channel 05 : 2.432 GHz
           Channel 06 : 2.437 GHz
           Channel 07 : 2.442 GHz
           Channel 08 : 2.447 GHz
           Channel 09 : 2.452 GHz
           Channel 10 : 2.457 GHz
           Channel 11 : 2.462 GHz
           Current Frequency=2.412 GHz (Channel 1)


In the UK we are allowed to use Channel 13...



>> I get the feeling that the brave new world is moving away from
>> iwconfig completely.
>
> That is the long term direction of the current development but now  
> we're far
> from a total replacement.

I have just downloaded madwifi 0.9.4+r3772.20080716 from Debian and  
got that working with kernel 2.6.28, so I think I will use that for  
now until ath5k matures a bit....


nick.

_______________________________________________
ath5k-users mailing list
ath5k-users@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-users

Reply via email to