lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110501164013.GA4188@spotteswoode.de.eu.org>
Date:	Sun, 1 May 2011 18:40:14 +0200
From:	clemens fischer <ino-news@...tteswoode.dnsalias.org>
To:	Jeff Chua <jeff.chua.linux@...il.com>
Cc:	Larry Finger <Larry.Finger@...inger.net>,
	Greg Kroah-Hartman <gregkh@...e.de>, wlanfae@...ltek.com,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: r8712u: Fix driver to support ad-hoc mode

> 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ