Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1785 (new defect)

Opened 14 years ago

Last modified 13 years ago

DHCP not working when using WEP encryption.

Reported by: olieboer2001@yahoo.com Assigned to:
Priority: minor Milestone:
Component: madwifi: other Version: trunk
Keywords: DHCP, WEP Cc:
Patch is attached: 0 Pending:

Description

I just got an ASUS C90S notebook, which has a AR5008X (AR5418) wifi chip. It runs Ubuntu 7.10. I followed the instructions on the Ubuntu site for Macbook C2D notebooks, as they seemed to have the same support issue with this chip. I downloaded the SVN version of madwifi r3346 as far as I can tell. Now the wireless card connects well (including obaining an address with DHCP) but only when I'm not using any encryption on the AP. As soon as I switch on WEP encryption, the card can associate with the wep-key, but doesn't get an address anymore when using DHCP. Sounds like a familiar problem, but I haven't been able to find the exact same problem in the exising and closed tickets. Problem is that there doesn't seem to be going anything wrong, but DHCP persistently refuses to get an IP address. I've listed some stats below. Any idea what this could be? If more details would help, please let me know ..

e@reddwarf:~$ lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 8600M GT (rev a1)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 12)
03:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
05:00.0 Network controller: Atheros Communications, Inc. AR5418 802.11a/b/g/n Wireless PCI Express Adapter (rev 01)
08:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
08:01.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
08:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
08:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
08:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
e@reddwarf:~$ 

dmesg:

[   28.539907] ath_hal: module license 'Proprietary' taints kernel.
[   28.540419] ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133)
[   28.560706] Bluetooth: Core ver 2.11
[   28.560738] NET: Registered protocol family 31
[   28.560739] Bluetooth: HCI device and connection manager initialized
[   28.560741] Bluetooth: HCI socket layer initialized
[   28.607084] Bluetooth: HCI USB driver ver 2.9
[   28.611229] usbcore: registered new interface driver hci_usb
[   28.705687] wlan: svn r
[   28.754296] ath_pci: svn r
[   28.754341] ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 17 (level, low) -> IRQ 17
[   28.754352] PCI: Setting latency timer of device 0000:05:00.0 to 64
[   28.878692] MadWifi: ath_attach: Switching rfkill capability off
[   28.898444] sdhci: Secure Digital Host Controller Interface driver
[   28.898445] sdhci: Copyright(c) Pierre Ossman
[   28.956906] ath_rate_sample: 1.2 (svn r)
[   28.956988] MadWifi: ath_attach: Switching per-packet transmit power control off
[   28.957080] wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[   28.957086] wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[   28.957089] wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[   28.957095] wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[   28.957099] wifi0: turboG rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[   28.957104] wifi0: H/W encryption support: WEP AES AES_CCM TKIP
[   28.957109] wifi0: ath_announce: Use hw queue 1 for WME_AC_BE traffic
[   28.957111] wifi0: ath_announce: Use hw queue 0 for WME_AC_BK traffic
[   28.957112] wifi0: ath_announce: Use hw queue 2 for WME_AC_VI traffic
[   28.957114] wifi0: ath_announce: Use hw queue 3 for WME_AC_VO traffic
[   28.957115] wifi0: ath_announce: Use hw queue 8 for CAB traffic
[   28.957117] wifi0: ath_announce: Use hw queue 9 for beacons
[   29.272672] ath_pci: wifi0: Atheros 5418: mem=0xf7ff0000, irq=17

associate:

e@reddwarf:~$ sudo iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

wlan0     IEEE 802.11b  ESSID:"vanDale"  Nickname:"vanDale"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:04:E2:A2:55:50   
          Bit Rate:1 Mb/s   Tx-Power:14 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:EF1A-5948-A09C-4F2F-D198-ECE2-5B   Security mode:restricted
          Power Management:off
          Link Quality=51/70  Signal level=-47 dBm  Noise level=-98 dBm
          Rx invalid nwid:1241  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
e@reddwarf:~$ lsmod | grep -e wlan -e ath
wlan_wep                8064  1 
wlan_scan_sta          15104  1 
ath_rate_sample        15616  1 
ath_pci               199468  0 
wlan                  251248  5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal               233952  3 ath_rate_sample,ath_pci
e@reddwarf:~$ 

athstats (interval: 5) when associating and dhcp-request:

   input   output altrate   short    long xretry crcerr  crypt  phyerr rssi rate
     336      286       0       0       0      0      0      0       0    0   0M
       0        0       0       0       0      0      0      0       0    0   0M
       0        0       0       0       0      0      0      0       0    0   0M
       0        0       0       0       0      0      0      0       0    0   0M
       0        0       0       0       0      0      0      0       0    0   0M
      14       22       0       0       0      0      0      0       0    0   0M
       8       38       0       0       0      0      0      0       0    0   0M
     547      541       0       0       0      0      1      0       0   46   0M
    1771     1725       0       0       2      0      0      0       0   49   0M
    1772     1723       0       0       0      0      0      0       0   48   0M
    1774     1725       0       0       0      0      0      0       0   46   0M
    1773     1725       0       0       1      0      0      0       0   47   0M
    1773     1724       0       0       0      0      0      0       0   48   0M
    1770     1722       0       0       1      0      0      0       0   45   0M
    1769     1723       0       0       2      0      0      0       0   49   0M
    1773     1725       0       0       1      0      0      0       0   48   0M

the dhcp request itself:

e@reddwarf:~$ sudo dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit youknowwhere

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/wlan0/00:15:af:4e:68:1a
Sending on   LPF/wlan0/00:15:af:4e:68:1a
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Change History

02/23/08 21:59:42 changed by olieboer2001@yahoo.com

Odd .. WPA seems to work fine, but I just can't seem to make WEP work. Oh well .. can work with this setting for now.

As a note to the developers. Fantastic piece of work!

02/27/08 15:14:17 changed by Raseelbhagat@gmail.com

I am facing the same issue. Is this valudated and is there a fix if you want to use WEP security mode itself

02/28/08 04:42:04 changed by debasish.garai@gmail.com

I am also facing the same problem. Is it broken or there is some patch in hostap or madwifi for this.

02/28/08 04:42:52 changed by debasish.garai@gmail.com

Another thing is, the client gets associated with AP and tried giving static ip to client. But still it's not able to ping the AP machine.

(in reply to: ↑ description ) 02/28/08 05:11:33 changed by anonymous

I'm also having this exact same problem...

I'm using ubuntu 7.10 and the madwifi driver.

A fix/workaround would be great..

(in reply to: ↑ description ; follow-up: ↓ 7 ) 03/23/08 13:33:54 changed by Thanatermesis (gmail)

Seems like the WEP is not supported anymore on the macbooks by madwifi, can you show me the result of your command iwlist auth ? Aparently the WEP is not listed on the Authentication capabilities

(in reply to: ↑ 6 ) 03/30/08 21:15:34 changed by olieboer2001@yahoo.com

Seems you might be right. iwlist auth gives:

lo        no authentication information.

wifi0     no authentication information.

wlan0     Authentication capabilities :
                WPA
                WPA2
                CIPHER-TKIP
                CIPHER-CCMP
          Current WPA version :
                WPA
          Current Key management :
                802.1x
                PSK
          Current Pairwise cipher :
                WEP-104
          Current Pairwise cipher :
                TKIP
          Current TKIP countermeasures : no
          Current Drop unencrypted : yes
          Current Roaming control : yes
          Current Privacy invoked : yes


eth0      no authentication information.

No idea why WEP is not listed in the capabilities.

05/10/08 15:25:14 changed by jxjoox@yahoo.com

Any updates on this ticket? I am also getting exactly the same problem.

05/14/08 07:17:53 changed by anonymous

you guys are lucky you got it working, with mine it recognizes the card except the wifi program says theres no card installed

05/24/08 04:58:17 changed by anonymous

I appear to have the same problem here. Debian 2.6.25-2-686, WEP, Network Manager, DHCP, Thinkpad 41p, built-in Atheros abg (not sure which offhand). The card will connect to the AP, but can not get an address via DHCP.

(follow-up: ↓ 12 ) 06/04/08 03:12:14 changed by matt@sators.com

weird - I was totally having this same problem on Ubuntu 8.04 with AR5418, only using Wicd and having problems connecting to any wifi, not getting any DHCP back. Installed the usual updates, now on 2.6.24-18, went back to networkmanager through symantecs which uninstalled Wicd, reinstalled the madwifi driver from the trunk, modprobe ath_pci and everything's back online...not too much to go on there, but it's working.

(in reply to: ↑ 11 ) 06/30/08 14:01:45 changed by dvd.mchl@gmail.com

Have the same problem with card AR5212, IBM T42, CentOS5.2.

# wlanconfig ath0 list caps
ath0=6782e00f<WEP,TKIP,AES,AES_CCM,TXPMGT,SHSLOT,SHPREAMBLE,TKIPMIC,WPA1,WPA2,BURST,WME>

# wlanconfig ath0 list keys
[list_keys not implemented (yet). Spawning iwlist...] ath0 3 key sizes : 40, 104, 
128bits
4 keys available :
[1]: ...-2937 (128 bits)
[2]: ...-6D23-EDAB (128 bits)
[3]: off
[4]: off
Current Transmit Key: [1]
Security mode:restricted
Authentication capabilities :
WPA
WPA2
CIPHER TKIP
CIPHER CCMP
Current key_mgmt:0x3
Current cipher_pairwise:0x10
Current cipher_group:0x4

WEP doesn't work, even it looks like it is connected to AP (how can i find if card is associated with AP?), I can see an AP MAC address in iwconfig ath0.

WPA works fine.

06/30/08 21:51:47 changed by benoitg@coeus.ca

Same issue still present in today's SVN, on AR5418.

07/01/08 11:33:00 changed by anonymous

Same problem. I have nothing to do with madwifi.

# lspci |grep Network
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)

# iwlist eth1 auth 
eth1      Authentication capabilities :
		WPA
		WPA2
		CIPHER-TKIP
		CIPHER-CCMP
          Current Authentication algorithm :
		open