Re: [PATCH] staging: r8712u: Fix driver to support ad-hoc mode

From: clemens fischer
Date: Sun May 01 2011 - 12:40:26 EST


> Jeff Chua:

> On Sat, Apr 30, 2011 at 8:21 PM, clemens fischer
>
> > I still wish "r8712u" would let me use wireless-tools/iwconfig, but
> > I can live with "wpa_supplicant(8)".
>
> You wish just came true. To use plain iwconfig with wpa_supplicant,
> here's what you need to do ...
> just remember that the "order" is important ... you must set the
> encryption key "before" you bring up the interface!!! This applies to
> non-realtek devices as well.
>
> # modprobe r8712u
> # iwconfig wlan0 key restricted your-encrypted-password-same-as-wpa-psk-string
> # ifconfig wlan0 up <-- this comes after you set up the encryption above!
> # iwconfig wlan0 mode ad-hoc essid your-ssid
> # ifconfig wlan0 your-ip
> # dhcpd wlan0

Yet not all parameters can be set with "iwconfig(8)":

iwconfig wlan0 essid mana mode Ad-Hoc channel 5 power 5s all key restricted s:xyz12
udevd-work[3589]: '/root/bin/wlan-dev.sh' (stderr) 'Error for wireless
request "Set Power Management" (8B2C) :'
udevd-work[3589]: '/root/bin/wlan-dev.sh' (stderr) ' SET failed on
device wlan0 ; Operation not permitted.'

Iwconfig(8) lets me set the power saving mode and which type of packets
wake the device up. wpa_supplicant(8) has nothing like this, it manages
channels and WPE keys and does this well, but not power settings.

This was my reason for prefering iwconfig(8) in the first place after
realizing that this little USB WLAN stick cannot be used for WPE, only
for Ad-hoc with WPA.


regards, clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/