Hi Per at 11.09.2011 17:25, Per Sjoholm wrote: > On 09/11/2011 02:09 PM, Erich Titl wrote: >> Hi Folks >> ... > Yes, use map and a script to scan for different conditions. > > then you can use > ifup wlan0=wlan0-net1 > ifup wlan0=wlan0-net2
> > or just > ifup wlan0 > > see > > http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html > > https://help.ubuntu.com/community/WifiDocs/WiFiHowTo#Automatic_WLAN_Picker_Script > > Remember wpa_supplicant.conf I have some difficulties understanding its settings. For example, I can scan available APs in the vicinity. Some are WEP protected and some are WPA protected. Will wpa_supplicant cater for both protection schemes? STYX# wpa_cli scan_results Selected interface 'wlan0' bssid / frequency / signal level / flags / ssid e0:91:f5:60:93:ae 2437 189 [WPA-PSK-TKIP+CCMP][WPA2-PSK-TKIP+CCMP] Linda1968 00:25:9c:09:aa:12 2452 184 [WPA-PSK-TKIP+CCMP][WPA2-PSK-TKIP+CCMP] scoobly 74:ea:3a:d1:45:c0 2462 171 [WPA2-PSK-CCMP] elektrosmog.ch c0:3f:0e:2f:52:34 2412 166 [WPA-PSK-TKIP+CCMP][WPA2-PSK-TKIP+CCMP] cjung 34:08:04:dc:1c:ec 2412 164 [WPA-PSK-TKIP+CCMP][WPA2-PSK-TKIP+CCMP] Skynet 00:24:c9:63:5d:60 2462 162 [WPA-PSK-TKIP+CCMP][WPA2-PSK-TKIP+CCMP] sol-99815 bc:ae:c5:ea:ca:a3 2422 159 [WPA2-PSK-CCMP] Terminator 00:21:04:20:05:5d 2437 171 [WEP] Home 80:c6:ab:1a:81:f3 2462 159 [WEP] rigo Now to associate with a certain AP I would need to set its attributes STYX# wpa_cli list_networks Selected interface 'wlan0' network id / ssid / bssid / flags 0 scoobly any Here I was already capable of setting the desired network ssid STYX# wpa_cli set_network 0 password "xxxxxxxxxx" Selected interface 'wlan0' FAIL but..... STYX# wpa_cli wpa_cli v0.5.11 Copyright (c) 2004-2008, Jouni Malinen <j...@w1.fi> and contributors This program is free software. You can distribute it and/or modify it under the terms of the GNU General Public License version 2. Alternatively, this software may be distributed under the terms of the BSD license. See README and COPYING for more details. Selected interface 'wlan0' Interactive mode > set_network 0 password "xxxxxxxxxx" OK So not all attributes may be set on the command line. This makes it rather difficult to configure it. Now following a save_config I have this minimalistic setting STYX# cat wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ ssid="scoobly" key_mgmt=NONE password="xxxxxxxxxx" } I cannot see though the ssid being set on the interface STYX# iwconfig wlan0 calling iwconfig wlan0 IEEE 802.11abg ESSID:"default" Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Neither is there an association There is a hole in my understanding of the interaction of all these bits and pieces. cheers Erich
smime.p7s
Description: S/MIME Kryptografische Unterschrift
------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/