glug: driver per rtl8180 + sa2400 (Chip scheda Wi-fi)

Stefano Negro stblack@linux.it
Ven 23 Set 2005 19:35:39 CEST


Ciao.
Sto provando ad usare il driver perchè ho una Netgear MA521.
Dopo averlo compilato li ho aggiunti a modules.preload (sto usando Mandriva 
2005LE) in questo ordine:
ieee80211_crypt-r8180.ko
ieee80211_crypt_wep-r8180.ko
ieee80211-r8180.ko
r8180.ko

All'inserimento dmesg la vede :
ieee80211_crypt: registered algorithm 'NULL'
ieee80211-r8180: loading with WEP enabled.

Linux kernel driver for RTL8180 based WLAN cards
Copyright (c) 2004-2005, Andrea Merello
rtl8180: Initializing module
rtl8180: Wireless extensions version 17
rtl8180: Initializing proc filesystem
rtl8180: Configuring chip resources
PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
ACPI: PCI interrupt 0000:03:00.0[A] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:03:00.0 to 64
rtl8180: Memory mapped space @ 0x28800000
rtl8180: Hardware frame sequence numbers disabled
rtl8180: MAC controller is a RTL8180
rtl8180: Reported EEPROM chip is a 93c56 (2Kbit)
rtl8180: Card MAC address is 00:09:5b:bf:fb:62
rtl8180: EEPROM version 102
rtl8180: RfParam: 5
rtl8180: Card reports RF frontend by Philips.
rtl8180: OK! Philips SA2400 radio chipset is supported.
rtl8180: Analog PHY found
rtl8180: Energy threshold: b
rtl8180: PAPE from CONFIG2: 6
rtl8180: Antenna A is default antenna
rtl8180: Antenna diversity is enabled
rtl8180: Carrier sense 1
rtl8180: 40-bit WEP is NOT supported in hardware
rtl8180: 104-bit WEP is NOT supported in hardware
rtl8180: IRQ 19
rtl8180: Driver probe completed

rtl8180: Bringing up iface
rtl8180: Card successfully reset
rtl8180: Configuring CARDBUS registers
rtl8180: Setting SW wep key
rtl8180: Bringing up iface
rtl8180: Card successfully reset
rtl8180: Configuring CARDBUS registers
wlan0: no IPv6 routers present

Penso che tutto vada bene, ma quando provo a dare ifconfig wlan0 up non riesco 
a connettermi con il router. Questo sia che usi il DCHP sia un IP statico.

Provando il DHCP :
[root@localhost ~]# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:09:5B:BF:FB:62
          inet6 addr: fe80::209:5bff:febf:fb62/64 Scope:Link
          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:19 Memory:e90c6000-e90c6100

[root@localhost ~]# iwconfig wlan0
wlan0     IEEE 802.11b  Mode:Auto  Frequency:2.462 GHz
          Access Point: FF:B7:2C:00:00:00   Bit Rate=11 Mb/s
          Retry:on   Fragment thr:off
          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

[root@localhost ~]# iwlist wlan0 scanning
wlan0     No scan results
Perchè non vede la mia rete wireless ?
Tanto per precisare, se imposto mode master, vede la rete, ma a me serve 
Managed.

Nel file  /var/log/messages ho :
Sep 23 19:18:04 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 4
Sep 23 19:18:08 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 4
Sep 23 19:18:12 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 10
Sep 23 19:18:22 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 8
Sep 23 19:18:30 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 14
Sep 23 19:18:44 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 12
Sep 23 19:18:56 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 
port 67 interval 9
Sep 23 19:19:05 localhost dhclient: No DHCPOFFERS received.

Allora provo a dare un IP statico:
[root@localhost ~]# ifconfig wlan0 192.168.0.10
[root@localhost ~]# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:09:5B:BF:FB:62
          inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::209:5bff:febf:fb62/64 Scope:Link
          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:19 Memory:e90c6000-e90c6100
[root@localhost ~]# ifup wlan0

Determining IP information for wlan0... failed.
Che faccio?
Ma il modo Auto come funziona? E' proprio auto in tutti i settaggi della 
frequenza del canale, velocità etc?
Allora provo impostando mode Managed

[root@localhost ~]# iwconfig wlan0 mode Managed
[root@localhost ~]# iwconfig wlan0

wlan0     IEEE 802.11b  Mode:Managed  Frequency:2.417 GHz
          Access Point: 00:00:00:00:00:00   Bit Rate=11 Mb/s
          Retry:on   Fragment thr:off
          Encryption key:off
          Link Quality=49/100  Signal level=-103 dBm  Noise level=-205 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Perchè Access-Point è tutto 0?
[root@localhost ~]# iwconfig wlan0 essid "Wireless"
[root@localhost ~]# iwconfig wlan0 channel 5
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Operation not permitted.
Perchè non permitted?

Qui mi fermo perchè mi sembra che basti no? ;-)
Help, Aiuto. !
---
Ciao
Stblack 
http://www.linux.it/~stblack


Maggiori informazioni sulla lista glug