#1679: Support for AR2425 (AR5007EG) chipset
--------------------------------------+-------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: madwifi: HAL | Version: v0.9.3.3
Resolution: | Keywords: AR2425 AR5007EG HAL
Patch_attached: 0 |
--------------------------------------+-------------------------------------
Comment (by jebba):
This on a 4G asus eeepc. This is using the ath5k driver, not madwifi, HAL,
OpenHAL, etc.
I hope this info helps you in your development.
2.6.24 kernel as a base (along with a number of other unrelated patches)
(spam prevents urls below...)
Updated wireless:
{{{
2008-04-02
linuxwireless dot org download compat-wireless-2.6 compat-
wireless-2.6.tar.bz2
}}}
Then built ath5k from Nick Kossifidis tarball:
{{{
kernel dot org pub linux kernel people mickflemm ath5k-2425-test2.tar.bz2
}}}
I had to disable PM in kernel:
{{{
CONFIG_PM=no
}}}
With the driver loaded dmesg
{{{
ath5k phy0: Atheros AR5418 chip found (MAC: 0xe2, PHY: 0x70)
}}}
More info with module loaded.
{{{
# lspci -d 168c:001c
01:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11
b/g Wireless PCI Express Adapter (rev 01)
}}}
{{{
# lspci -vvv
01:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11
b/g Wireless PCI Express Adapter (rev 01)
Subsystem: Unknown device 1a3b:1026
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: 16 bytes
Interrupt: pin A routed to IRQ 10
Region 0: Memory at fbef0000 (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 Disabled; 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
Kernel driver in use: ath5k_pci
Kernel modules: ath5k
}}}
{{{
# `lspci -vvv -d 168c:001c | grep Memory`
"Region 0: Memory at fbef0000"
# setpci -s 01:00.0 command=0x41f cache_line_size=0x10
}}}
From madwifi-nr-r3366+ar5007/tools/ath_info
{{{
# ath_info 0xfbef0000
Warning: Invalid EEPROM Magic number!
-==Device Information==-
MAC Version: 2425 (0xe0)
MAC Revision: 2425 (0xe2)
PHY Revision: 5110 (0x00)
-==EEPROM Information==-
EEPROM Version: 5.3
EEPROM Size: 4K
Regulatory Domain: 0x60
-==== Capabilities ====-
| 802.11a Support: no |
| 802.11b Support: no |
| 802.11g Support: yes |
| RFKill Support: yes |
| 32KHz Crystal: no |
========================
GPIO registers: CR 00000000 DO 00000000 DI 00000003
}}}
I can see the device with `iwconfig` fine:
{{{
# iwconfig ath0
ath0 IEEE 802.11 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
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
}}}
I can change the ESSID:
{{{
# iwconfig ath0 essid foo && iwconfig ath0 | grep ESSID && iwconfig ath0
essid bar && iwconfig ath0 | grep ESSID
ath0 IEEE 802.11 ESSID:"foo"
ath0 IEEE 802.11 ESSID:"bar"
}}}
I can change the channel:
{{{
# iwconfig ath0 channel 1 && iwconfig ath0 | grep Frequency && iwconfig
ath0 channel 6 && iwconfig ath0 | grep Frequency
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
}}}
I can NOT change the mode, garr garr garr:
{{{
# iwconfig ath0 mode ad-hoc
Error for wireless request "Set Mode" (8B06) :
SET failed on device ath0 ; Device or resource busy.
}}}
Scanning doesn't see anything (there is an open/advertised network here):
{{{
# iwlist ath0 scan
ath0 No scan results
}}}
--
Ticket URL: <http://madwifi.org/ticket/1679#comment:122>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets