Hi,
I have done a small investigation. IXP425 (ARM) in big-endian mode,
EABI, mini-PCI atk5k wifi card, hostapd.
Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)
Subsystem: Wistron NeWeb Corp. CM9 Wireless a/b/g MiniPCI Adapter
168c:0013 subsystem 185f:1012
Results:
Bad mode in data abort handler detected
Internal error: Oops - bad mode: 0 [#1]
LR is at ath5k_beacon_config+0x150/0x1d4 [ath5k]
This means the PCI device didn't respond on the bus or something
like that. Obviously the card is then unusable and the system needs to
be restarted.
Bisecting (I had to modify the procedure a bit since it only started to
show up after other unrelated code was merged) shows the guilty commit:
e8f055f0c3ba226ca599c14c2e5fe829f6f57cbb (ath5k: Update reset code).
The problem exists with 2.6.30, 2.6.31 and current Linus' tree.
Signed-off-by: Krzysztof Hałasa <[email protected]>
----------------------------------------------
2.6.30 appears to be fixed by:
--- a/drivers/net/wireless/ath5k/reset.c
+++ b/drivers/net/wireless/ath5k/reset.c
@@ -476,7 +476,7 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
(ah->ah_mac_version == (AR5K_SREV_AR2417 >> 4))) {
ath5k_hw_reg_write(ah, 0x26, AR5K_PHY_SLMT);
ath5k_hw_reg_write(ah, 0x0d, AR5K_PHY_SCAL);
- ath5k_hw_reg_write(ah, 0x07, AR5K_PHY_SCLOCK);
+ ath5k_hw_reg_write(ah, 0x0C, AR5K_PHY_SCLOCK);
ath5k_hw_reg_write(ah, 0x3f, AR5K_PHY_SDELAY);
AR5K_REG_WRITE_BITS(ah, AR5K_PCICFG,
AR5K_PCICFG_SLEEP_CLOCK_RATE, 0x02);
@@ -490,8 +490,10 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
}
/* Enable sleep clock operation */
+#if 0
AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG,
AR5K_PCICFG_SLEEP_CLOCK_EN);
+#endif
} else {
The AR5K_PHY_SCLOCK brings the old value (before the commit in question)
back, I have no idea what is it. Leaving the new value causes the second
run of hostapd to make the driver fail, the chip seems to not respond.
It seems the value itself may be correct (as it works with 2.6.31+) but
there is some additional bug fixed after 2.6.30, gitk show several
candidate patches for this.
Only disabling AR5K_PCICFG write makes the data abort go away.
----------------------------------------------
2.6.31 and Linus-current only need the AR5K_PCICFG change:
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -489,9 +489,10 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
}
/* Enable sleep clock operation */
+#if 0
AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG,
AR5K_PCICFG_SLEEP_CLOCK_EN);
-
+#endif
} else {
/* Disable sleep clock operation and
The question is, obviously, how to fix that for good. I can test the
result.
Full error message, not sure why the backtrace isn't printed.
Bad mode in data abort handler detected
Internal error: Oops - bad mode: 0 [#1]
Modules linked in: ohci_hcd ehci_hcd usbcore nls_base ixp4xx_hss ath5k ath ixp4x
x_eth
CPU: 0 Not tainted (2.6.32-rc3 #123)
PC is at 0xffff01fc
LR is at ath5k_beacon_config+0x150/0x1d4 [ath5k]
pc : [<ffff01fc>] lr : [<bf028db0>] psr: a0000092
sp : c7dbfb90 ip : 00008050 fp : c78aa000
r10: c7dbfbd8 r9 : c78ac1c0 r8 : 00003304
r7 : c78aa000 r6 : c78aa000 r5 : 00000013 r4 : c78ac900
r3 : c88e0000 r2 : c88d0024 r1 : c88d0048 r0 : 800924b5
Flags: NzCv IRQs off FIQs on Mode IRQ_32 ISA ARM Segment user
Control: 000039ff Table: 067e0000 DAC: 00000015
Process hostapd (pid: 258, stack limit = 0xc7dbe278)
Stack: (0xc7dbfb90 to 0xc7dc0000)
fb80: 800924b5 c88d0048 c88d0024 c88e0000
fba0: c78ac900 00000013 c78aa000 c78aa000 00003304 c78ac1c0 c7dbfbd8 c78aa000
fbc0: 00008050 c7dbfb90 bf028db0 ffff01fc a0000092 ffffffff 00000003 00000000
fbe0: 00080000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
fc00: c78ac924 c78ac900 c78ac924 c7d34628 00000300 c7d34620 00000013 bf028ec8
fc20: c78ac1c0 c7d52980 c0487e90 c7d342c0 c78ac1c0 c67e7140 c7caef20 0000001a
fc40: 00000004 00000000 00000024 c0391694 c67e7140 c7caef20 0000001a c7dbfc88
fc60: c7d342c0 c039e974 c7d52440 00000033 c7dbfcc0 c039e998 c7dbfc88 c0487d30
fc80: c7c6e810 c0384640 00000000 00000000 00000000 00000002 00000000 00000000
fca0: c7d34000 c78ac000 c0487bb0 c7c6e800 c7d52440 c02c5448 c0488184 00000102
fcc0: 00000080 00000102 c7c6e800 c7c6e810 c7c6e814 c788d000 c7c6e800 c7d52440
fce0: c02c5258 c7c54600 c04a0710 00000038 c7dbfd1c c02c42dc c047f6ac c7d52440
fd00: c7d52440 c02c5244 c788d200 00000000 c7d52440 c02c3f14 00000024 7fffffff
fd20: 00000000 c7dbff5c c7c54600 c7d52440 c7dbfe18 00000024 00000000 00000000
fd40: 00000000 c02c47cc c7dbfe38 c7c54600 00000102 00000000 00000000 00000000
fd60: 00000000 c7dbff5c c7dbfe18 00000000 00000000 00000024 c7dbfefc 00000000
fd80: 00000008 c0282298 00000000 c7dbff1c 00000000 00000001 ffffffff 00000000
fda0: 00000000 00000000 00000000 00000000 c7839080 00000001 00000000 00000000
fdc0: 00000000 c7839080 c0185ccc c7dbfdcc c7dbfdcc 0000092a c7dbfec8 c038eae4
fde0: c7dbfe18 00008b24 c7dbfec8 c037ab88 c7dbfdec c7dbfe0c c67d7360 c01aaf9c
fe00: c7dbfe38 c0161cfc 00000000 c67da1a4 00000040 00000000 00000000 c74231bc
fe20: 00000015 00000024 c7489380 0001d000 c7dbfd50 c7dbff5c c7dbfe7c c7dbfefc
fe40: c7dbfe7c c7dbfefc c015a048 c7dbfefc 00000008 00000000 c7dbff5c c7dbff5c
fe60: c7489380 00000000 c7dbfefc c02823ec c7dbff3c c7dbff3c 00000000 00100000
fe80: 00000000 00000000 00000020 00000000 00008933 c02941a4 c67e4380 c67e4000
fea0: 0000000a c67e4380 c7dbe000 c047bc28 c786d940 c024df48 776c616e 30000000
fec0: 00000000 00000000 00000006 00000000 00000000 0e000000 c67e40e0 c67e4084
fee0: 00000000 c028171c c786d340 00008933 00000000 60000013 00000007 0005c754
ff00: 00000000 00000000 00000000 00000000 c74890e8 c0472750 00200200 00100100
ff20: c7497338 c7401498 00200200 00100100 ffffffff ffffffff c780d5a0 c01ce3a0
ff40: c7497338 c0472750 00200200 c01cea04 c786d340 00000000 c7497338 c7dbfe7c
ff60: 0000000c c7dbfefc 00000001 00000000 00000000 00000000 00000000 ffffff97
ff80: c786d340 000598f8 400722b0 000598a0 00000128 c015a048 c7dbe000 00000000
ffa0: 00000001 c0159ea0 000598f8 400722b0 00000004 be9dfb24 00000000 00000000
ffc0: 000598f8 400722b0 000598a0 00000128 00000000 00000000 00000001 00000001
ffe0: be9dfb24 be9dfaf8 40039c84 402b022c 60000010 00000004 00000000 00000000
Code: 00000000 00000000 00000000 00000000 (00000000)
---[ end trace ff977de942e87c2d ]---
--
Krzysztof Halasa
2009/10/9 Krzysztof Halasa <[email protected]>:
> Hi,
>
> I have done a small investigation. IXP425 (ARM) in big-endian mode,
> EABI, mini-PCI atk5k wifi card, hostapd.
>
> Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)
> Subsystem: Wistron NeWeb Corp. CM9 Wireless a/b/g MiniPCI Adapter
> 168c:0013 subsystem 185f:1012
>
>
> Results:
> Bad mode in data abort handler detected
> Internal error: Oops - bad mode: 0 [#1]
> LR is at ath5k_beacon_config+0x150/0x1d4 [ath5k]
>
> This means the PCI device didn't respond on the bus or something
> like that. Obviously the card is then unusable and the system needs to
> be restarted.
>
> Bisecting (I had to modify the procedure a bit since it only started to
> show up after other unrelated code was merged) shows the guilty commit:
> e8f055f0c3ba226ca599c14c2e5fe829f6f57cbb (ath5k: Update reset code).
>
> The problem exists with 2.6.30, 2.6.31 and current Linus' tree.
>
> Signed-off-by: Krzysztof Hałasa <[email protected]>
>
> ----------------------------------------------
> 2.6.30 appears to be fixed by:
>
> --- a/drivers/net/wireless/ath5k/reset.c
> +++ b/drivers/net/wireless/ath5k/reset.c
> @@ -476,7 +476,7 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
> (ah->ah_mac_version == (AR5K_SREV_AR2417 >> 4))) {
> ath5k_hw_reg_write(ah, 0x26, AR5K_PHY_SLMT);
> ath5k_hw_reg_write(ah, 0x0d, AR5K_PHY_SCAL);
> - ath5k_hw_reg_write(ah, 0x07, AR5K_PHY_SCLOCK);
> + ath5k_hw_reg_write(ah, 0x0C, AR5K_PHY_SCLOCK);
> ath5k_hw_reg_write(ah, 0x3f, AR5K_PHY_SDELAY);
> AR5K_REG_WRITE_BITS(ah, AR5K_PCICFG,
> AR5K_PCICFG_SLEEP_CLOCK_RATE, 0x02);
> @@ -490,8 +490,10 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
> }
>
> /* Enable sleep clock operation */
> +#if 0
> AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG,
> AR5K_PCICFG_SLEEP_CLOCK_EN);
> +#endif
>
> } else {
>
>
>
> The AR5K_PHY_SCLOCK brings the old value (before the commit in question)
> back, I have no idea what is it. Leaving the new value causes the second
> run of hostapd to make the driver fail, the chip seems to not respond.
> It seems the value itself may be correct (as it works with 2.6.31+) but
> there is some additional bug fixed after 2.6.30, gitk show several
> candidate patches for this.
>
>
> Only disabling AR5K_PCICFG write makes the data abort go away.
>
> ----------------------------------------------
> 2.6.31 and Linus-current only need the AR5K_PCICFG change:
>
> --- a/drivers/net/wireless/ath/ath5k/reset.c
> +++ b/drivers/net/wireless/ath/ath5k/reset.c
> @@ -489,9 +489,10 @@ static void ath5k_hw_set_sleep_clock(struct ath5k_hw *ah, bool enable)
> }
>
> /* Enable sleep clock operation */
> +#if 0
> AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG,
> AR5K_PCICFG_SLEEP_CLOCK_EN);
> -
> +#endif
> } else {
>
> /* Disable sleep clock operation and
>
>
> The question is, obviously, how to fix that for good. I can test the
> result.
Interesting, can you provide us with an eeprom info dump from your
card (using ath_info tool from madwifi svn) ?
It seems we need to skip sleep clock operation in your case.
--
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
Nick Kossifidis <[email protected]> writes:
>> +#if 0
>> AR5K_REG_ENABLE_BITS(ah, AR5K_PCICFG,
>> AR5K_PCICFG_SLEEP_CLOCK_EN);
>> +#endif
> Interesting, can you provide us with an eeprom info dump from your
> card (using ath_info tool from madwifi svn) ?
> It seems we need to skip sleep clock operation in your case.
Sure (MAC changed):
sleep_ctl reg 00000000 reset_ctl reg 00000000
-==Device Information==-
MAC Revision: 5213A (0x59)
Device type: 3
5GHz PHY Revision: 5112B (0x36)
/============== EEPROM Information =============\
| EEPROM Version: 4.8 | EEPROM Size: 16 kbit |
| EEMAP: 1 | Reg. Domain: 0x00 |
|================= Capabilities ================|
| 802.11a Support: yes | Turbo-A disabled: no |
| 802.11b Support: yes | Turbo-G disabled: no |
| 802.11g Support: yes | 2GHz XR disabled: no |
| RFKill Support: yes | 5GHz XR disabled: no |
| 32kHz Crystal: yes | |
\===============================================/
/=========================================================\
| Calibration data common for all modes |
|=========================================================|
| CCK/OFDM gain delta: 3 |
| CCK/OFDM power delta: 10 |
| Scaled CCK delta: 15 |
| 2GHz Antenna gain: 1 |
| 5GHz Antenna gain: 1 |
| Turbo 2W maximum dBm: 32 |
| Target power start: 0x1a5 |
| EAR Start: 0x20f |
\=========================================================/
/=========================================================\
| Calibration data for 802.11a operation |
|=========================================================|
| I power: 0x0a | Q power: 0x1e |
| Use fixed bias: 0x01 | Max turbo power: 0x20 |
| Max XR power: 0x24 | Switch Settling Time: 0x2d |
| Tx/Rx attenuation: 0x0f | TX end to XLNA On: 0x02 |
| TX end to XPA Off: 0x00 | TX end to XPA On: 0x0e |
| 62db Threshold: 0x0f | XLNA gain: 0x0d |
| XPD: 0x01 | XPD gain: 0x05 |
| I gain: 0x0a | Tx/Rx margin: 0x0b |
| False detect backoff: 0x00 | Noise Floor Threshold: -54 |
| ADC desired size: -32 | PGA desired size: -80 |
|=========================================================|
| Antenna control 0: 0x00 | Antenna control 1: 0x02 |
| Antenna control 2: 0x01 | Antenna control 3: 0x00 |
| Antenna control 4: 0x00 | Antenna control 5: 0x00 |
| Antenna control 6: 0x01 | Antenna control 7: 0x02 |
| Antenna control 8: 0x00 | Antenna control 9: 0x00 |
| Antenna control 10: 0x00 | Antenna control 11: 0x00 |
|=========================================================|
| Octave Band 0: 2 | db 0: 2 |
| Octave Band 1: 2 | db 1: 2 |
| Octave Band 2: 2 | db 2: 2 |
| Octave Band 3: 2 | db 3: 2 |
\=========================================================/
/============== Per rate power calibration ===========\
| Freq | 6-24Mbit/s | 36Mbit/s | 48Mbit/s | 54Mbit/s |
|======|============|==========|===========|==========|
| 4920 | 18.00 | 16.00 | 14.00 | 12.00 |
|======|============|==========|===========|==========|
| 5040 | 18.00 | 16.00 | 14.00 | 12.00 |
|======|============|==========|===========|==========|
| 5170 | 18.00 | 16.00 | 15.00 | 13.00 |
|======|============|==========|===========|==========|
| 5240 | 19.00 | 17.00 | 15.00 | 13.00 |
|======|============|==========|===========|==========|
| 5320 | 19.00 | 17.00 | 15.00 | 13.00 |
|======|============|==========|===========|==========|
| 5500 | 19.00 | 16.00 | 14.00 | 13.00 |
|======|============|==========|===========|==========|
| 5700 | 18.00 | 16.00 | 14.00 | 13.00 |
|======|============|==========|===========|==========|
| 5825 | 17.00 | 15.00 | 13.00 | 12.00 |
|======|============|==========|===========|==========|
| 5360 | 19.01 | 19.01 | 19.01 | 19.01 |
|======|============|==========|===========|==========|
| 5720 | 19.00 | 19.00 | 19.00 | 19.00 |
\=====================================================/
/=================== Per channel power calibration ====================\
| Freq | pwr_0 | pwr_1 | pwr_2 | pwr_3 |pwrx3_0|pwrx3_1|pwrx3_2|max_pwr|
| | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 4920 | 6.75 | 16.25 | 21.00 | 22.00 | 6.00 | 6.00 | 11.25 | 22.00 |
| | [25] | [50] | [62] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 4980 | 6.25 | 15.75 | 21.25 | 21.75 | 4.75 | 4.50 | 11.25 | 21.75 |
| | [25] | [50] | [62] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5040 | 6.75 | 14.75 | 19.00 | 23.00 | 3.25 | 3.25 | 11.25 | 23.00 |
| | [25] | [47] | [57] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5170 | 7.25 | 15.25 | 18.50 | 23.00 | 2.25 | 2.75 | 12.00 | 23.00 |
| | [25] | [46] | [55] | [61] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5240 | 8.00 | 16.75 | 20.50 | 23.00 | 1.75 | 3.00 | 12.25 | 23.00 |
| | [25] | [48] | [58] | [61] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5320 | 8.75 | 17.50 | 21.25 | 23.00 | 2.00 | 3.50 | 13.00 | 23.00 |
| | [25] | [48] | [58] | [59] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5500 | 9.75 | 17.75 | 21.50 | 23.00 | 2.25 | 4.50 | 14.50 | 23.00 |
| | [25] | [46] | [56] | [57] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5650 | 10.25 | 18.00 | 21.00 | 23.00 | 1.75 | 5.00 | 15.00 | 23.00 |
| | [25] | [45] | [54] | [56] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5745 | 10.75 | 19.75 | 23.00 | 23.00 | 1.25 | 5.00 | 15.00 | 23.00 |
| | [25] | [50] | [57] | [57] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 5825 | 10.25 | 20.00 | 22.25 | 22.25 | 0.50 | 4.75 | 14.75 | 22.25 |
| | [25] | [50] | [62] | [63] | [20] | [35] | [63] | |
\======================================================================/
/=========================================================\
| Calibration data for 802.11b operation |
|=========================================================|
| I power: 0x00 | Q power: 0x00 |
| Use fixed bias: 0x00 | Max turbo power: 0x00 |
| Max XR power: 0x00 | Switch Settling Time: 0x28 |
| Tx/Rx attenuation: 0x1e | TX end to XLNA On: 0x02 |
| TX end to XPA Off: 0x00 | TX end to XPA On: 0x07 |
| 62db Threshold: 0x1c | XLNA gain: 0x0d |
| XPD: 0x01 | XPD gain: 0x05 |
| I gain: 0x0a | Tx/Rx margin: 0x21 |
| False detect backoff: 0x00 | Noise Floor Threshold: -1 |
| ADC desired size: -38 | PGA desired size: -80 |
|=========================================================|
| Antenna control 0: 0x00 | Antenna control 1: 0x02 |
| Antenna control 2: 0x11 | Antenna control 3: 0x01 |
| Antenna control 4: 0x01 | Antenna control 5: 0x01 |
| Antenna control 6: 0x01 | Antenna control 7: 0x12 |
| Antenna control 8: 0x02 | Antenna control 9: 0x02 |
| Antenna control 10: 0x02 | Antenna control 11: 0x00 |
|=========================================================|
| Octave Band 0: 2 | db 0: 2 |
| Octave Band 1: 2 | db 1: 2 |
| Octave Band 2: 0 | db 2: 0 |
| Octave Band 3: 0 | db 3: 0 |
\=========================================================/
/============== Per rate power calibration ===========\
| Freq | 1Mbit/s | 2Mbit/s | 5.5Mbit/s | 11Mbit/s |
|======|============|==========|===========|==========|
| 2412 | 19.01 | 19.01 | 19.01 | 19.01 |
|======|============|==========|===========|==========|
| 2484 | 19.00 | 19.00 | 19.00 | 19.00 |
\=====================================================/
/=================== Per channel power calibration ====================\
| Freq | pwr_0 | pwr_1 | pwr_2 | pwr_3 |pwrx3_0|pwrx3_1|pwrx3_2|max_pwr|
| | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2412 | 8.00 | 15.25 | 19.50 | 23.25 | 1.50 | 3.75 | 12.00 | 23.25 |
| | [25] | [46] | [56] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2437 | 7.75 | 16.00 | 21.00 | 22.50 | 1.25 | 3.50 | 11.75 | 22.50 |
| | [25] | [49] | [60] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2472 | 7.25 | 15.75 | 21.00 | 21.75 | 0.75 | 3.25 | 11.25 | 21.75 |
| | [25] | [50] | [61] | [63] | [20] | [35] | [63] | |
\======================================================================/
/=========================================================\
| Calibration data for 802.11g operation |
|=========================================================|
| I power: 0x00 | Q power: 0x17 |
| Use fixed bias: 0x01 | Max turbo power: 0x20 |
| Max XR power: 0x26 | Switch Settling Time: 0x28 |
| Tx/Rx attenuation: 0x23 | TX end to XLNA On: 0x02 |
| TX end to XPA Off: 0x00 | TX end to XPA On: 0x0e |
| 62db Threshold: 0x1c | XLNA gain: 0x0d |
| XPD: 0x01 | XPD gain: 0x05 |
| I gain: 0x0a | Tx/Rx margin: 0x21 |
| False detect backoff: 0x00 | Noise Floor Threshold: -1 |
| ADC desired size: -32 | PGA desired size: -80 |
|=========================================================|
| Antenna control 0: 0x00 | Antenna control 1: 0x02 |
| Antenna control 2: 0x11 | Antenna control 3: 0x01 |
| Antenna control 4: 0x01 | Antenna control 5: 0x01 |
| Antenna control 6: 0x01 | Antenna control 7: 0x12 |
| Antenna control 8: 0x02 | Antenna control 9: 0x02 |
| Antenna control 10: 0x02 | Antenna control 11: 0x02 |
|=========================================================|
| Octave Band 0: 2 | db 0: 2 |
| Octave Band 1: 2 | db 1: 2 |
| Octave Band 2: 0 | db 2: 0 |
| Octave Band 3: 0 | db 3: 0 |
\=========================================================/
/============== Per rate power calibration ===========\
| Freq | 6-24Mbit/s | 36Mbit/s | 48Mbit/s | 54Mbit/s |
|======|============|==========|===========|==========|
| 2412 | 19.00 | 17.01 | 16.00 | 15.01 |
|======|============|==========|===========|==========|
| 2437 | 19.00 | 18.00 | 17.00 | 16.00 |
|======|============|==========|===========|==========|
| 2472 | 19.00 | 17.01 | 16.01 | 15.00 |
\=====================================================/
/=================== Per channel power calibration ====================\
| Freq | pwr_0 | pwr_1 | pwr_2 | pwr_3 |pwrx3_0|pwrx3_1|pwrx3_2|max_pwr|
| | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | pcdac | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2412 | 7.25 | 16.00 | 21.75 | 22.50 | 0.25 | 3.75 | 11.50 | 22.50 |
| | [25] | [50] | [62] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2437 | 7.00 | 16.25 | 20.75 | 21.75 | 0.00 | 3.50 | 11.25 | 21.75 |
| | [25] | [50] | [61] | [63] | [20] | [35] | [63] | |
|======|=======|=======|=======|=======|=======|=======|=======|=======|
| 2472 | 6.50 | 15.50 | 20.75 | 21.00 | 0.00 | 3.00 | 10.50 | 21.00 |
| | [25] | [50] | [62] | [63] | [20] | [35] | [63] | |
\======================================================================/
GPIO registers: CR 0x00000000, DO 0x00000000, DI 0x00000001
EEPROM dump (2048 bytes)
==============================================
0000: 0013 168c 0200 0001 0000 5001 0000 1012
0008: 185f 1c0a 0100 0000 01c2 0002 c606 0001
0010: 0000 0000 0000 0000 0000 0000 0000 0000
0018: 0000 0000 0000 0000 0000 3445 1223 0001
0020: 0000 0000 0000 0000 0000 0000 0000 0000
0028: 0000 0000 0000 0000 0000 0000 0000 0000
0030: 0000 0000 0000 0000 0000 0000 0000 0000
0038: 0000 0000 0000 0000 0000 5aa5 0000 0000
0040: 0313 4943 2053 7104 1202 0400 0306 0001
0048: 0000 0500 410e 39b1 1eb5 4e2d 3056 ffff
0050: e902 0700 0106 0000 0100 1500 0752 4101
0058: 6874 7265 736f 4320 6d6f 756d 696e 6163
0060: 6974 6e6f 2c73 4920 636e 002e 5241 3035
0068: 3130 302d 3030 2d30 3030 3030 5700 7269
0070: 6c65 7365 2073 414c 204e 6552 6566 6572
0078: 636e 2065 6143 6472 3000 0030 00ff 2100
0080: 0602 2201 0205 8d80 005b 0522 4002 8954
0088: 2200 0205 1b00 00b7 0522 8002 12a8 2201
0090: 0205 3600 016e 0522 0002 2551 2202 0205
0098: 6c00 02dc 0522 8002 37f9 2203 0205 a200
00a0: 044a 0222 0803 0822 0604 0100 2312 4534
00a8: 0222 0105 00ff 0000 0000 0000 0000 0000
00b0: ffff ffff ffff ffff ffff ffff ffff ffff
00b8: ffff ffff ffff ffff ffff ffff 0000 0000
00c0: ee2b 4008 5a07 0101 420f 41a5 0101 3002
00c8: 0003 0000 0000 0000 0000 0000 0000 0000
00d0: 0000 0000 0000 0000 2d3c 0081 0000 0108
00d8: 0000 e049 2492 020f 000e b0ca 21ab 4024
00e0: 0af1 000b 0000 0000 0000 0000 0000 0000
00e8: 0000 0000 0000 0000 0000 0000 0000 0000
00f0: 0000 0000 2878 0091 0410 4148 2082 da22
00f8: 021c 0007 b0ff 01ab 4012 0001 8970 21ac
0100: 0000 0000 0000 0000 0000 0000 0000 0000
0108: 0000 0000 0000 0000 0000 288c 0091 0410
0110: 4148 2082 e022 021c 000e b0ff 21ab 4012
0118: 7851 8970 1320 21ac 00bb 0003 0000 0000
0120: 0000 0000 0000 0000 0000 0000 0000 0000
0128: 1013 1112 1440 3031 3234 0000 0000 0000
0130: 0000 0000 0000 0000 0000 0000 0000 0000
0138: 0000 0000 0000 0000 0000 0000 0000 0000
0140: 0000 0000 0000 0000 0000 0000 0000 0000
0148: 0000 0000 0000 0000 0000 0000 0000 0000
0150: 2418 4a30 6858 aa8c cdbd 411b 5854 0599
0158: 1818 192d 3f19 5755 0599 1213 192d 3b1b
0160: 5c4c 1956 0d0d 192d 3d1d 5c4a 1935 0b09
0168: 1930 4320 5c52 0d57 0c07 1931 4623 5c55
0170: 0557 0e08 1934 4727 5c56 0555 1209 193a
0178: 4829 5c54 0934 1407 193c 4f2b 5c5c 00f9
0180: 1405 193c 5029 5959 0599 1302 193b 3d20
0188: 5d4e 1d55 0f06 1930 401f 5a54 0d78 0e05
0190: 192f 3f1d 5754 0979 0d03 192d 401d 5a57
0198: 0599 0f01 192e 411c 5753 0979 0e00 192d
01a0: 3e1a 5453 0599 0c00 192a 1892 0718 3092
01a8: 0718 4a92 079a 589a 279a 689a 279a 8c9a
01b0: 071a b492 071a cd89 e698 709e 79e7 b89a
01b8: 69a6 709a 381f 899a 48a0 ac9a 385e 4c58
01c0: 5c68 bdc1 cd00 2222 2423 2464 2400 5052
01c8: 5a60 62c0 c1c9 2262 2224 2423 6323 7075
01d0: a200 0000 0000 2868 2800 0000 0000 7075
01d8: 9da2 0000 0000 2166 6621 0000 0000 8989
01e0: 0000 0000 0000 2626 0000 0000 0000 4a56
01e8: 0000 0000 0000 3c3c 0000 0000 0000 4c68
01f0: 8cb4 bdc1 cd00 2424 2424 3c7c 3c00 7075
01f8: ac00 0000 0000 2060 2000 0000 0000 7075
0200: ac00 0000 0000 1d5d 1d00 0000 0000 8989
0208: 0000 0000 0000 1e1e 0000 0000 0000 ea0e
0210: c000 0e07 8042 a204 0002 0e03 8186 9858
0218: 0000 0e01 800c 9824 0707 0e02 8063 9860
0220: 0003 03ff a210 0080 6333 03ff a214 0010
0228: 6c10 03ff a21c 1883 800a 03ff a220 0188
0230: 30c6 05ff c0fd 1001 c8f5 707f c8fc 1000
0238: c85a 2001 c85c 2002 c85e 2001 c8fe 1001
0240: c519 1001 cc01 2001 cc03 2001 cc8b 1001
0248: cc8c 1001 dc92 1001 0fff 8081 1230 0001
0250: 0fff 8010 982c a002 09ff 8063 0000 0000
0258: 0000 0000 0000 0000 0000 0000 0000 0000
0260: 0000 0000 0000 0000 0000 0000 0000 0000
0268: 0000 0000 0000 0000 0000 0000 0000 0000
0270: 0000 0000 0000 0000 0000 0000 0000 0000
0278: 0000 0000 0000 0000 0000 0000 0000 0000
0280: 0000 0000 0000 0000 0000 0000 0000 0000
0288: 0000 0000 0000 0000 0000 0000 0000 0000
0290: 0000 0000 0000 0000 0000 0000 0000 0000
0298: 0000 0000 0000 0000 0000 0000 0000 0000
02a0: 0000 0000 0000 0000 0000 0000 0000 0000
02a8: 0000 0000 0000 0000 0000 0000 0000 0000
02b0: 0000 0000 0000 0000 0000 0000 0000 0000
02b8: 0000 0000 0000 0000 0000 0000 0000 0000
02c0: 0000 0000 0000 0000 0000 0000 0000 0000
02c8: 0000 0000 0000 0000 0000 0000 0000 0000
02d0: 0000 0000 0000 0000 0000 0000 0000 0000
02d8: 0000 0000 0000 0000 0000 0000 0000 0000
02e0: 0000 0000 0000 0000 0000 0000 0000 0000
02e8: 0000 0000 0000 0000 0000 0000 0000 0000
02f0: 0000 0000 0000 0000 0000 0000 0000 0000
02f8: 0000 0000 0000 0000 0000 0000 0000 0000
0300: 0000 0000 0000 0000 0000 0000 0000 0000
0308: 0000 0000 0000 0000 0000 0000 0000 0000
0310: 0000 0000 0000 0000 0000 0000 0000 0000
0318: 0000 0000 0000 0000 0000 0000 0000 0000
0320: 0000 0000 0000 0000 0000 0000 0000 0000
0328: 0000 0000 0000 0000 0000 0000 0000 0000
0330: 0000 0000 0000 0000 0000 0000 0000 0000
0338: 0000 0000 0000 0000 0000 0000 0000 0000
0340: 0000 0000 0000 0000 0000 0000 0000 0000
0348: 0000 0000 0000 0000 0000 0000 0000 0000
0350: 0000 0000 0000 0000 0000 0000 0000 0000
0358: 0000 0000 0000 0000 0000 0000 0000 0000
0360: 0000 0000 0000 0000 0000 0000 0000 0000
0368: 0000 0000 0000 0000 0000 0000 0000 0000
0370: 0000 0000 0000 0000 0000 0000 0000 0000
0378: 0000 0000 0000 0000 0000 0000 0000 0000
0380: 0000 0000 0000 0000 0000 0000 0000 0000
0388: 0000 0000 0000 0000 0000 0000 0000 0000
0390: 0000 0000 0000 0000 0000 0000 0000 0000
0398: 0000 0000 0000 0000 0000 0000 0000 0000
03a0: 0000 0000 0000 0000 0000 0000 0000 0000
03a8: 0000 0000 0000 0000 0000 0000 0000 0000
03b0: 0000 0000 0000 0000 0000 0000 0000 0000
03b8: 0000 0000 0000 0000 0000 0000 0000 0000
03c0: 0000 0000 0000 0000 0000 0000 0000 0000
03c8: 0000 0000 0000 0000 0000 0000 0000 0000
03d0: 0000 0000 0000 0000 0000 0000 0000 0000
03d8: 0000 0000 0000 0000 0000 0000 0000 0000
03e0: 0000 0000 0000 0000 0000 0000 0000 0000
03e8: 0000 0000 0000 0000 0000 0000 0000 0000
03f0: 0000 0000 0000 0000 0000 0000 0000 0000
03f8: 0000 0000 0000 0000 0000 0000 0000 0000
==============================================
STA_ID0: 00:00:00:00:00:00
STA_ID1: 0x10000000, AP: 0, IBSS: 0, KeyCache Disable: 0
TIMER0: 0x0000fdee, TBTT: 65006, TU: 0xc749fdee
TIMER1: 0x0007ffff, DMAb: 65535, TU: 0xc749ffff (+529)
TIMER2: 0x015bcffd, SWBA: 31231, TU: 0xc76b79ff (+2194449)
TIMER3: 0x0000fddf, ATIM: 64991, TU: 0xc749fddf (-15)
TSF: 0xcad0ef1d26f6ab81, TSFTU: 48554, TU: 0xc749bdaa
BEACON: 0x007bfbe7
LAST_TSTP: 0xfbe5fbef
--
Krzysztof Halasa
Nick Kossifidis <[email protected]> writes:
> Interesting, can you provide us with an eeprom info dump from your
> card (using ath_info tool from madwifi svn) ?
> It seems we need to skip sleep clock operation in your case.
BTW the problem doesn't always happen immediately, sometimes it shows up
only on second or further hostapd invocation. I think in only occurs
while hostapd is starting - if it starts successfully, it works.
--
Krzysztof Halasa