My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ConfigurazioneWiFi  
Configurazione del WiFi, modalità WEP
Updated Dec 23, 2009 by clemente...@gmail.com

Configurazione del WiFi, modalità WEP

  • Sto utilizzando un adattatore WiFi USB modello ASUS WL-167G, che ha come chipset il Ralink rt2501/rt73. Una volta collegato l'adattatore alla board usare il comando wiconfig per verificare la presenza del device wlan0.
  • [root@FriendlyARM /]# iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    wmaster0  no wireless extensions.
    
    wlan0     IEEE 802.11bg  ESSID:""
              Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
              Tx-Power=0 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
    
  • Ho impartito i seguenti comandi per collegarmi ad una rete WIFI WEP:
  • iwconfig wlan0 mode managed
    iwconfig wlan0 key restricted s:PASSWORD_RETE_WEP_IN_CHIARO
    iwconfig wlan0 essid NOME_RETE_WEP
    ifconfig wlan0 up
  • a questo punto la console visualizza il messaggio che sta caricando il firmware al dispositivo USB. Il firmware è sotto /lib/firmware.
  • [root@FriendlyARM /]# ifconfig wlan0 up
    rt73usb 1-1:1.0: firmware: requesting rt73.bin
  • I comandi a seguire configurano l'interfaccia con un IP fisso.
  • ifconfig eth0 down
    ifconfig wlan0 192.168.1.40
    route add default gw 192.168.1.1
    echo "nameserver 192.168.1.1" > /etc/resolv.conf
  • Un comando utile per "vedere cosa c'è nell'aria" è il seguente:
  • iwlist wlan0 scan

Configurazione WiFi WAP

  • Per le reti WAP bisogna installare il pacchetto wpa_supplicant.
  • Procedura per network WAP: creare il file wpa_supplicant.conf impartendo il seguente comando:
  • wpa_passphrase NOME_RETE_WIFI PASSWORD_RETE_WIFI >> /etc/wpa_supplicant.conf
  • Editare il file aggiungendo:
  • ctrl_interface=/var/run/wpa_supplicant
    fast_reauth=1
    network={
    scan_ssid=0
    ssid="NOME_RETE_WIFI"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP WEP104 WEP40
    #psk="PASSWORD_RETE_WIFI"
    psk=<la key generata>
    }
  • A questo punto eseguire il comando:
  • /usr/sbin/wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
  • Per programmare l'IP dell'interfaccia usare il comando:
  • ifconfig wlan0 <IP>
  • Questa configurazione WAP l'ho provata con successo utilizzando una image Angstrom.
Comment by pankaj...@gmail.com, Dec 22, 2009

The link given in configuring WAP is not working anymore. Can you give a fresh link. Also can you provide a compiled package for wpa_supplicant if you already have one.

Comment by project member clemente...@gmail.com, Dec 23, 2009

Hello pankaj013, thanks for the info. I will remove the link soon. About the wpa_supplicant package, I'm sorry but I can't provide a compiled package for you. I used the one available from the OE distribution.

Best Regards Clemente.

Comment by project member clemente...@gmail.com, Sep 3, 2010

Leggendo questo topic :http://www.friendlyarm.net/forum/topic/242 ho visto che si può scaricare il codice wpa_supplicant da questo link: http://www.dengebt.com/wpa_supplicant0.6.10_mini2440_dengebt.tar.gz (thanks S.Onur Selamet)


Sign in to add a comment
Powered by Google Project Hosting