configurazione wireless

Usate questo forum per richieste di aiuto e consigli sull'hardware montato nelle vostre macchine con GNU/Linux Slackware.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata e la versione del Kernel. Questi dati aiutano le persone che possono rispondere.
2) Citare il tipo di hardware coinvolto in modo dettagliato.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT. Non usare termini gergali come procio, mobo e simili per identificare i componenti hardware.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Bart
Staff
Staff
Messaggi: 4249
Iscritto il: lun 9 ago 2004, 0:00
Località: Rimini

Re: configurazione wireless

Messaggio da Bart »

slucky ha scritto:Conraid ora ho rimesso kde, tolto ahimè......lo gnomo :( , riprovata la connessione wpa e funziona senza problemi! anzi si allinea dopo poco al router.....mah! proprio non capisco quale può essere il problema, ma possibile che a nessun altro è capitato la stessa cosa? #-o .....non vorrei che smanettando e provando ho trovato qualche altro bug, così come accadde per pkgtool tempo addietro..... :roll:

Saluti
Sembra un problema relativo a gslacky. Purtroppo io ho solo kde attualmente e non posso testare il problema. Prova a segnalare la cosa a Gohanz.

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Ciao a tutti, sono un nuovo utente, ed ho trovato questo thread utile per il mio problema, così evito di spargere informazioni sul forum :o .

Sono giovan(issimo) anche io (14!), e sono praticamente disperato con la mia scheda wireless ed il mio computer, sembra che sia il più 'closed' del mondo :( .

Ho una Broadcom 4318 su un Acer TravelMate 4402LMi e Slackware 12.1. Finora non sono riuscito con nessuna distro a connettermi nemmeno via lan..
Ho pensato di usare la Slack come distribuzione perchè mi sembra la più ordinata ed elegante che esista :roll: , l'installazione è la migliore che abbia mai trovato poi. PS: E' stato il mitico Johnnymnemonic a farmi scoprire Slackware :lol: .

Dico quello che ho fatto ultimamente: Sto cercando di seguire questa http://hoovaloo.com/wp-content/uploads/ ... esmall.jpg(vecchia) guida; sono riuscito a compilare ndiswrapper ed ad installare i driver windows, sono costretto a farlo perchè mi serve acerhk, ed altre parti di esso; il problema è che inizialmente non riuscivo a compilarlo, in seguito, grazie all'aiuto di qualcuno, sono riuscito a compilarlo, ma non riesco a richiamarlo con

Codice: Seleziona tutto

/sbin/yast2
, non c'è nulla di simile.
Per riuscire a compilare acerhk (che mi serve per accendere la maledetta scheda wireless), mi è stato detto di cambiare una riga del Makefile, la 17, e di sostituire prima += con =, e non ho avuto successo, ed in tal caso, CFLAGS con EXTRA_CFLAGS. Qui la suddetta linea del Makefile:

Codice: Seleziona tutto

CFLAGS=-c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
Spero sappiate aiutarmi, sono davvero disperato :cry: . Adesso sono costretto ad usare ancora windows...

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: configurazione wireless

Messaggio da conraid »

Sinceramentre tra Swarzy e Yast sono riuscito a capire poco.

Non capisco però tutto questo casino, i driver della tua scheda, come puoi leggere anche in questa pagina sono compresi nel Kernel.
Devi solo installare il firmware, c'è spiegato li come fare.

Per acerhk leggi la documentazione
http://www.cakey.de/acerhk/

Non mi sembra che necessiti di ndiswrapper, ma potrei sbagliarmi, non conosco quel software.
Ma puoi provare a vedere se acer_acpi funziona anche a 32 bit. C'è anche uno slackbuild

Il resto lascialo fare a Swarzy

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Grazie Conraid della risposta. Mi sa che il problema che ho a compilare acerhotkey non sta nel makefile :-/. Intanto forse sono riuscito ad installare bcm43xx-fwcutter ed a dargli in pasto il firmware.

Metto qui quello che mi dà la shell quando tento di compilare acerhk:

Codice: Seleziona tutto

 
bash-3.1# cd acerhk-0.5.35/
bash-3.1# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/smandrake/acerhk-0.5.35/acerhk-0.5.35 modules
make[1]: Entering directory `/usr/src/linux-2.6.24.5'
scripts/Makefile.build:46: *** CFLAGS was changed in "/home/smandrake/acerhk-0.5.35/acerhk-0.5.35/Makefile". Fix it to use EXTRA_CFLAGS.  Stop.
make[1]: *** [_module_/home/smandrake/acerhk-0.5.35/acerhk-0.5.35] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.5'
make: *** [acerhk.ko] Error 2
bash-3.1# make acerhk.o
cc -I/lib/modules/`uname -r`/build/include -c -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -DMODVERSIONS -DMODULE -D__KERNEL__ -o acerhk.ko acerhk.c
acerhk.c:39:26: error: linux/config.h: No such file or directory
acerhk.c:3100:2: error: #error This driver is only available for X86 architecture
make: *** [acerhk.o] Error 1
bash-3.1# 
Scusate il lungo post...

Sembra che mi manchino gli header del kernel. Dove li prendo, e come li installo :O?
Ancora grazie dell'aiuto.

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: configurazione wireless

Messaggio da conraid »

Con i nuovi kernel (2.6.24) è cambiato il modo di compilare i moduli esterni. Devi passare EXTRA_CFLAGS invece di CFLAGS
Del resto te lo dici il make stesso

Codice: Seleziona tutto

Fix it to use EXTRA_CFLAGS.  Stop.
A volte basta cambiare qualche voce nel makefile, altre bisogna mettere le mani in più parti.

Perché non guardi acer_acpi che è un progetto più recente di quello che è fermo da un anno?

E comunque leggo

Codice: Seleziona tutto

8th February 2008 - acer-wmi, the upstream port of acer_acpi, has now been merged into 2.6.25. acer_acpi has now been deprecated in favour of acer-wmi, and is in bug-fix mode only for pre 2.6.25 kernels.
Mi sa che ti conviene ricompilarti un 2.6.25 abilitando tutte le opzioni per acer e broadcom.
Hai tutto dentro sembra senza bisogno di niente di esterno

Purtroppo (o per fortuna) non ho un acer e quindi non so cosa consigliarti

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Ho usato acer_acpi, ma non fa accendere nulla; poi non riesco a trovare il MAC della scheda, e prima ho estratto il firmware installando bcm43xx-fwcutter e prendendolo da esso.

Con 2.6.25 si intende il kernel vero? Non so da dove partire se lo devo ricompilare :( ... Ditemi come fare :roll:

EDIT: Sto guardando delle guide.

EDIT2: Sto facendo vari tentativi di connessione (senza successo...)

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Allora, sono riuscito ad accenderla (anche se per vedere il led devo prima editare i 3 file di conf :-/), da quel che sembra, ma ho ancora un problema con rc.inet1; che all'avvio e se tento di riavviarlo mi dà questi messaggi:

Codice: Seleziona tutto

bash-3.1# /etc/rc.d/rc.inet1 restart
SIOCSIFFLAGS: No such file or directory
/etc/rc.d/rc.wireless.conf: line 227: syntax error near unexpected token `)'
/etc/rc.d/rc.wireless.conf: line 227: `XX:XX:XX:*)'
/etc/rc.d/rc.inet1:  wlan0 information: 'Configurazione della mia scheda'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
wlan0     no private ioctls.

wlan0     no private ioctls.

wlan0     no private ioctls.

Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
 
Forse ho sbagliato qualcosa io, oppure manca qualche file... Non riesco a capire il mac di wlan0, così ho messo XX:XX:XX:*), come dagli esempi sopra. Non funziona nemmeno con 00:XX:XX:*). Ho disabilitato la criptazione della rete.

Cosa faccio :( ?

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: configurazione wireless

Messaggio da conraid »

rc.wireless lascialo perdere
ne abbiamo già discusso, rileggi la discussione

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Scusa, è vero: viewtopic.php?f=6&t=24551&st=0&sk=t&sd= ... 30#p201991.
Se dovessi usare wpa-supplicant, però, non so che driver usare :| . Beh, intanto vedo di risolvere il problema che ho già...

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Niente da fare, non ne vuol sapere di funzionare.
Questo è ciò che ho messo su /etc/rc.d/rc.inet1.conf:

Codice: Seleziona tutto

 
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=3
DHCP_KEEPRESOLV[4]=yes
WLAN_ESSID[4]=adslmarco
E questo è quello che mi dà la shell, dopo aver acceso la scheda con acer_acpi:

Codice: Seleziona tutto

root@darkstar:/# /etc/rc.d/rc.inet1 restart
SIOCSIFFLAGS: No such file or directory
/etc/rc.d/rc.inet1:  wlan0 information: 'Configurazione della mia scheda'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
root@darkstar:/# cat /proc/acpi/acer/wireless
Idee :cry: ??

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: configurazione wireless

Messaggio da conraid »

Smandrake ha scritto: SIOCSIFFLAGS: No such file or directory
Questo è il messaggio di wireless spenta/non trovata

posta
# cat /etc/rc.d/rc.inet1.conf
# iwlist
# ifconfig -a
# lsmod

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Ecco il risultato:

Codice: Seleziona tutto

bash-3.1# kwrite /etc/rc.d/rc.inet1.conf
bash-3.1# echo 1 > /proc/acpi/acer/wireless
bash-3.1# cat /proc/acpi/acer/wireless
1
bash-3.1# cd .. 
bash-3.1# echo 1 > /proc/acpi/acer/wireless
bash-3.1# dir
bin   dev  home  media	ntfs-c	  opt	root  srv  tmp	var
boot  etc  lib	 mnt	ntfs-ext  proc	sbin  sys  usr
bash-3.1# cat /etc/rc.d/rc.inet1.conf
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]="192.168.1.43"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""



# Default gateway IP address:
GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your data.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]="192.168.1.45"
#NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="no"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=adslmarco
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="3"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set #WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30
#DHCP_TIMEOUT[4]=3

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name instead of
                                # the default 'eth4'
#IFNAME[4]="eth0:1"             # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15             # The default timeout for the DHCP client to
                                # wait for server resonse is 30 seconds, but
                                # you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # An example of how you can override _any_
                                # parameter defined in rc.wireless.conf, by
                                # prepending 'WLAN_' to the parameter's name.
                                # Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=elle4321"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
#WLAN_WPA[4]="wpa_supplicant"   # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
                                # ndiswrapper driver (if you leave this empty
                                # the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30             # In case it takes long for the WPA association
                                # to finish, you can increase the wait time
                                # (defaults to 10 seconds)

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=3
DHCP_KEEPRESOLV[4]=yes
WLAN_ESSID[4]=adslmarco
bash-3.1# iwlist
Usage: iwlist [interface] scanning [essid NNN] [last]
              [interface] frequency 
              [interface] channel 
              [interface] bitrate 
              [interface] rate 
              [interface] encryption 
              [interface] keys 
              [interface] power 
              [interface] txpower 
              [interface] retry 
              [interface] ap 
              [interface] accesspoints 
              [interface] peers 
              [interface] event 
              [interface] auth 
              [interface] wpakeys 
              [interface] genie 
              [interface] modulation 
bash-3.1# iwlist wlan0
iwlist: unknown command `wlan0' (check 'iwlist --help').
bash-3.1# iwlist wlan0 scanning
wlan0     Interface doesn't support scanning : Network is down

bash-3.1# iwlist wlan0 power
wlan0     
bash-3.1# iwlist wlan0 txpower
wlan0     unknown transmit-power information.

          Current Tx-Power=0 dBm  	(1 mW)

bash-3.1# lsconfig -a
bash: lsconfig: command not found
bash-3.1# lsmod
Module                  Size  Used by
snd_seq_dummy           6660  0 
snd_seq_oss            32896  0 
snd_seq_midi_event     10112  1 snd_seq_oss
snd_seq                50256  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         10380  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            40352  0 
snd_mixer_oss          17920  1 snd_pcm_oss
ipv6                  234724  12 
rfkill_input            7296  0 
lp                     13348  0 
parport_pc             27556  0 
parport                34632  2 lp,parport_pc
fuse                   45588  5 
b43                   113568  0 
rfkill                  9488  6 rfkill_input,b43
mac80211              122124  1 b43
cfg80211               14600  1 mac80211
input_polldev           7304  1 b43
sg                     30224  0 
acer_acpi              19264  0 
led_class               7300  2 b43,acer_acpi
irda                  114360  0 
crc_ccitt               5760  1 irda
rtc_cmos               11040  0 
rtc_core               18696  1 rtc_cmos
rtc_lib                 6528  1 rtc_core
sdhci                  18692  0 
tifm_7xx1               9344  0 
ssb                    32516  1 b43
mmc_core               47236  1 sdhci
tifm_core              10884  1 tifm_7xx1
yenta_socket           26636  1 
snd_atiixp             19212  0 
pcmcia                 35884  2 b43,ssb
r8169                  30468  0 
rsrc_nonstatic         14592  1 yenta_socket
pcmcia_core            35988  4 b43,yenta_socket,pcmcia,rsrc_nonstatic
psmouse                40336  0 
snd_ac97_codec         98724  1 snd_atiixp
ac97_bus                5760  1 snd_ac97_codec
snd_pcm                72068  3 snd_pcm_oss,snd_atiixp,snd_ac97_codec
serio_raw               9092  0 
k8temp                  8192  0 
snd_timer              22532  2 snd_seq,snd_pcm
snd                    47716  9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_atiixp,snd_ac97_codec,snd_pcm,snd_timer
hwmon                   6276  1 k8temp
soundcore               9824  1 snd
snd_page_alloc         11528  2 snd_atiixp,snd_pcm
i2c_piix4              11020  0 
battery                14340  0 
ac                      8068  0 
video                  19472  0 
output                  6656  1 video
wmi_acer               10668  1 acer_acpi
evdev                  12672  10 
thermal                16540  0 
button                 10000  0 
processor              32680  1 thermal
pl2303                 22404  0 
usbserial              33384  1 pl2303
ati_agp                10764  0 
agpgart                30664  1 ati_agp
usblp                  15616  0 
bash-3.1# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"adslmarco"  
          Mode:Managed  Channel:0  Access Point: Not-Associated   
          Tx-Power=0 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B   
          Encryption key: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

bash-3.1# 

Ho rimosso le impostazioni predefinite, chiamiamole così, di wlan0, che erano sotto le altre (eth0, eth1, eccetera), perchè pensavo andassero ad influire sulle altre che ho messo sotto... spero di non aver fatto male.
Noto purtroppo che non è collegata ovviamente :(...

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: configurazione wireless

Messaggio da conraid »

intanto è ifconfig e non lsconfig, ma posta bene i dati della tua rete e vediamo di configuarla

Avatar utente
Smandrake
Linux 0.x
Linux 0.x
Messaggi: 8
Iscritto il: mer 11 giu 2008, 11:52
Slackware: 12.1, linux 2.6.25.6
Località: Rovigo
Contatta:

Re: configurazione wireless

Messaggio da Smandrake »

Ops, che errore, ho fatto una pessima figura :oops: .
Spero che quello che metto adesso sia giusto:

Codice: Seleziona tutto

bash-3.1# modprobe acer_acpi
bash-3.1# echo 1 > /proc/acpi/acer/wireless
bash-3.1# cat /proc/acpi/acer/wireless
1
bash-3.1# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0a:e4:e9:e9:89  
          inet addr:192.168.1.43  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:22 Base address:0x400 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:14:a4:42:56:83  
          BROADCAST NOTRAILERS MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wmaster0  Link encap:UNSPEC  HWaddr 00-14-A4-42-56-83-6C-6F-00-00-00-00-00-00-00-00  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

bash-3.1# lsmod
Module                  Size  Used by
snd_seq_dummy           6660  0 
snd_seq_oss            32896  0 
snd_seq_midi_event     10112  1 snd_seq_oss
snd_seq                50256  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device         10380  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            40352  0 
snd_mixer_oss          17920  1 snd_pcm_oss
ipv6                  234724  12 
rfkill_input            7296  0 
lp                     13348  0 
parport_pc             27556  0 
parport                34632  2 lp,parport_pc
fuse                   45588  5 
b43                   113568  0 
rfkill                  9488  6 rfkill_input,b43
mac80211              122124  1 b43
cfg80211               14600  1 mac80211
input_polldev           7304  1 b43
sg                     30224  0 
irda                  114360  0 
acer_acpi              19264  0 
led_class               7300  2 b43,acer_acpi
crc_ccitt               5760  1 irda
rtc_cmos               11040  0 
rtc_core               18696  1 rtc_cmos
rtc_lib                 6528  1 rtc_core
sdhci                  18692  0 
tifm_7xx1               9344  0 
r8169                  30468  0 
ssb                    32516  1 b43
mmc_core               47236  1 sdhci
snd_atiixp             19212  0 
pcmcia                 35884  2 b43,ssb
tifm_core              10884  1 tifm_7xx1
yenta_socket           26636  1 
snd_ac97_codec         98724  1 snd_atiixp
rsrc_nonstatic         14592  1 yenta_socket
pcmcia_core            35988  4 b43,pcmcia,yenta_socket,rsrc_nonstatic
psmouse                40336  0 
ac97_bus                5760  1 snd_ac97_codec
snd_pcm                72068  3 snd_pcm_oss,snd_atiixp,snd_ac97_codec
serio_raw               9092  0 
snd_timer              22532  2 snd_seq,snd_pcm
k8temp                  8192  0 
snd                    47716  9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_atiixp,snd_ac97_codec,snd_pcm,snd_timer
hwmon                   6276  1 k8temp
soundcore               9824  1 snd
snd_page_alloc         11528  2 snd_atiixp,snd_pcm
i2c_piix4              11020  0 
evdev                  12672  10 
battery                14340  0 
ac                      8068  0 
video                  19472  0 
output                  6656  1 video
thermal                16540  0 
wmi_acer               10668  1 acer_acpi
processor              32680  1 thermal
button                 10000  0 
pl2303                 22404  0 
ati_agp                10764  0 
usbserial              33384  1 pl2303
agpgart                30664  1 ati_agp
usblp                  15616  0 
bash-3.1# iwconfig wlan0 up
iwconfig: unknown command "up"
bash-3.1# kwrite /etc/rc.d/rc.inet1.conf

bash-3.1# 
bash-3.1# kwrite /etc/rc.d/rc.inet1.conf
bash-3.1# cat /etc/rc.d/rc.inet1.conf
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]="192.168.1.43"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""



# Default gateway IP address:
GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your data.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]="192.168.1.45"
#NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="no"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=adslmarco
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]="3"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set #WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30
#DHCP_TIMEOUT[4]=3

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name instead of
                                # the default 'eth4'
#IFNAME[4]="eth0:1"             # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15             # The default timeout for the DHCP client to
                                # wait for server resonse is 30 seconds, but
                                # you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # An example of how you can override _any_
                                # parameter defined in rc.wireless.conf, by
                                # prepending 'WLAN_' to the parameter's name.
                                # Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=elle4321"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
#WLAN_WPA[4]="wpa_supplicant"   # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
                                # ndiswrapper driver (if you leave this empty
                                # the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30             # In case it takes long for the WPA association
                                # to finish, you can increase the wait time
                                # (defaults to 10 seconds)

IFNAME[4]="wlan0"
HWADDR[4]="00:14:a4:42:56:83"
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=3
DHCP_KEEPRESOLV[4]=yes
WLAN_ESSID[4]=adslmarco
bash-3.1# iwlist wlan0 scan
wlan0     Interface doesn't support scanning : Network is down

bash-3.1# iwlist wlan0 auth
wlan0     Authentication capabilities :
		WPA
		WPA2
		CIPHER-TKIP
		CIPHER-CCMP
          Current Authentication algorithm :
		open
		shared-key
bash-3.1# iwlist wlan0 accesspoints
wlan0     Interface doesn't have a list of Peers/Access-Points
bash-3.1# iwlist wlan0 keys
wlan0     2 key sizes : 40, 104bits
          4 keys available :
		[1]: off
		[2]: off
		[3]: off
		[4]: off
          Current Transmit Key: [1]


bash-3.1# iwlist wlan0 ap  
wlan0     Interface doesn't have a list of Peers/Access-Points

bash-3.1# 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 Channel=0

bash-3.1# iwlist wlan0 power    
wlan0     
bash-3.1# iwlist wlan0 txpower
wlan0     unknown transmit-power information.

          Current Tx-Power=0 dBm  	(1 mW)
bash-3.1# 



 

Avatar utente
conraid
Staff
Staff
Messaggi: 13630
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: configurazione wireless

Messaggio da conraid »

Da quel che posso vedere ti manca solamente di attivare wpa_supplicant

In rc.inet1.conf metti questo

Codice: Seleziona tutto

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=3
DHCP_KEEPRESOLV[4]="yes"
WLAN_WPA[4]="wpa_supplicant"

in wpa_supplicant fai un network così

Codice: Seleziona tutto

network={
  scan_ssid=1
  ssid="adslmarco"
  proto=WPA
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  psk="xxxxxxxxxxxxxx"
}
dove ci sono gli x puoi mettere la tua chiave o la tua passphrase che generi con wpa_passphrase

Non mettere altro.

Successivamente accendi la scheda wireless e riavvia la rete

Codice: Seleziona tutto

# /etc/rc.d/rc.inet1 restart
E guarda se va.

Do per scontato che con i driver WPA generici (WEXT) funzioni, altrimenti prova "broadcom" mettendolo in fondo

Codice: Seleziona tutto

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=3
DHCP_KEEPRESOLV[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="broadcom"
Guarda dmesg per controllare gli eventuali errori

Naturalmente il tuo AP deve essere configurato con ESSID "adslmarco" e per fare da DCHP, e con il WPA attivo.

Se non vuoi il WPA e lasci aperto (come mi sembra che sia adesso) prova a mettere in rc.inet1.conf questo

Codice: Seleziona tutto

IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_TIMEOUT[4]=3
DHCP_KEEPRESOLV[4]="yes"
WLAN_MODE[4]=Managed
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="auto"
WLAN_ESSID[4]="adslmarco"

Rispondi