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 #2299 (new defect)

Opened 13 years ago

Last modified 11 years ago

Corrupted mac on ssh connections (evidence) - madwifi-hal-0.10.5.6-r4003-20090416

Reported by: angelo.corsaro@tiscali.it Assigned to:
Priority: blocker Milestone:
Component: madwifi: driver Version:
Keywords: Cc:
Patch is attached: 0 Pending: 0

Description

The driver seems confusing the "something" (maybe the whole packet?) and the relevant error is the mac address as in the log here below reported in a trasfer using ssh.

Ethernet II, Src: 00:23:4d:aa:32:c7 (00:23:4d:aa:32:c7), Dst: Advansus_00:02:9b (00:19:0f:00:02:9b) Ethernet II, Src: aa:aa:03:00:00:00 (aa:aa:03:00:00:00), Dst: 0e:20:00:00:00:00 (0e:20:00:00:00:00) Ethernet II, Src: 00:23:4d:aa:32:c7 (00:23:4d:aa:32:c7), Dst: Advansus_00:02:9b (00:19:0f:00:02:9b)

I have also error during the file trasfer (eg FTP, HTTP, etc) when I try to download iso images in the linux env. In the XP env. everything works. I have no error, only different md5sum (like yesterday night during the d/l of moblin), but when I transfer over the ssh, I receive often the error "MAC corrupted".

The log is caught on a Acer aspire One and here the lspci -vvv

03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

Subsystem: Foxconn International, Inc. Device e008 Control: I/O+ Mem+ BusMaster?+ SpecCycle?- MemWINV- VGASnoop- ParErr?- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr?- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0, Cache Line Size: 128 bytes Interrupt: pin A routed to IRQ 18 Region 0: Memory at 75200000 (64-bit, non-prefetchable) [size=64K] Capabilities: [40] Power Management version 2

Flags: PMEClk- DSI- D1- D2- AuxCurrent?=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-

Address: 00000000 Data: 0000

Capabilities: [60] Express (v1) Legacy Endpoint, MSI 00

DevCap?: MaxPayload? 128 bytes, PhantFunc? 0, Latency L0s <512ns, L1 <64us

ExtTag?- AttnBtn?- AttnInd?- PwrInd?- RBE- FLReset-

DevCtl?: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-

RlxdOrd?+ ExtTag?- PhantFunc?- AuxPwr?- NoSnoop?- MaxPayload? 128 bytes, MaxReadReq? 512 bytes

DevSta?: CorrErr?+ UncorrErr?+ FatalErr?+ UnsuppReq?+ AuxPwr?- TransPend?- LnkCap?: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us

ClockPM- Suprise- LLActRep- BwNot?-

LnkCtl?: ASPM L0s L1 Enabled; RCB 128 bytes Disabled- Retrain- CommClk?+

ExtSynch?- ClockPM- AutWidDis?- BWInt- AutBWInt-

LnkSta?: Speed 2.5GT/s, Width x1, TrErr?- Train- SlotClk?+ DLActive- BWMgmt- ABWMgmt-

Capabilities: [90] MSI-X: Enable- Mask- TabSize?=1

Vector table: BAR=0 offset=00000000 PBA: BAR=0 offset=00000000

Capabilities: [100] Advanced Error Reporting <?> Capabilities: [140] Virtual Channel <?> Kernel driver in use: ath_pci Kernel modules: ath_pci

the error is related to the drivers madwifi-hal-0.10.5.6-r4003-20090416, kernel Linux aspireone 2.6.27-14-generic #1 SMP Wed Apr 15 18:59:16 UTC 2009 i686 GNU/Linux, Distribution LinuxMint? 6.

Hope this helps and feel free to contact me for any further detail.

Angelo

Change History

09/01/09 23:09:28 changed by colrack - at - gmail - dot - com

I can confirm this problem. It is not related to ssh/scp only, but to all types of protocols/transfers. With scp:

disconnecting: Corrupted MAC on input.
lost connection

I tested my aspire one + 4 of my friends, all with the same atheros chip and same issue. This problem is present from several months and is related to the atheros chip of aspire one netbooks.

I tested:

  • madwifi-hal-0.10.5.6 svn from r3697 to 40xx.
  • recent madwifi trunk.
  • madwifi-hal-testing, several svn versions.
  • madwifi-trunk r3314 + patches from -r {2008-10-19} svn://svn.openwrt.org/openwrt/trunk/package /madwifi and ath_hal-20081002.
  • kernel from 2.6.23 to 2.6.30.x + above configurations, compiling madwifi svn with g++ 3.4 and 4.3.
  • with earlier svn versions there is hal 0.9.30.13 and the driver does not activate the chip.
  • this chip is working even with newer kernel with the shipped ath5k module, but the problem is the same and more other problems appear (ok, I know it is new).
  • tested with WPA1 psk only and many APs (atheros, broadcomm, Texas Instruments AR7 ).

The strange thing is that with the driver shipped with linpus (from Acer) wifi works PERFECTLY (oh, yes, even with Windows). The problem is that they not provide the source for madwifi, only for the kernel (2.6.23.9lw). Dmesg with their kernel says:

ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.17.1 (AR5212, RF5111, RF5112, RF2413, RF5413)
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
wlan: 0.8.4.2 (Atheros/multi-bss)
ath_rate_atheros: Version 2.0.1
Copyright (c) 2001-2004 Atheros Communications, Inc, All Rights Reserved
ath_pci: 0.9.4.5 (Atheros/multi-bss)
ath_pci: Acer-5.3.2.14-2008-Sep-23
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 18 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:03:00.0 to 64
#####################################################
####################WLAN ID:001c ####################
#####################################################
Setting ah_eepromDetach
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: mac 14.2 phy 7.0 radio 10.2
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x53100000, irq=18

So it seems that they used ath_hal 0.9.17.1. I searched for this hal in the svn, but i couldn't find it. Only 0.9.17.2 is present. But as written above, only with hal 0.10.5.6 the driver initialize the card.

So meanwhile, I manage to use my linux distro but I have to use the kernel 2.6.23.9 so I can use the driver shipped with linpus. It is very frustrating.

There are many aspireone out there...

Regards, Carlo

09/25/09 16:53:37 changed by anonymous

can anyone suggest any work around setting or patch to try to help diagnose/fix this?

I also have an aspire one and its very frustrating, most significant downloads are corrupted and ssh connections repeatedly abort with the Corrupt Mac.

Is the driver also tcp checksum offloading but not doing it properly?

08/02/10 19:52:45 changed by anonymous

This was fixed in 2.6.35