ath5k, too high output power?
I have laptop with ath5k card, and just tried to run it with ath5k driver. I notice strange thing:
lappi ~ # iw phy phy0 info
Wiphy phy0
Band 1:
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
I guess it is too high. I am not sure it is actual value, but if it is right and actual value, then i am exceeding local regulations.
I have simple spectrum analyzer (spectran), and i can try to test actual output power if required.
Another thing, is it possible to change antenna output?
Hardware:
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
Subsystem: Hewlett-Packard Company Device 137a
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 16
Region 0: Memory at d1300000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mAPME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] Message Signalled Interrupts: Mask- 64bit-
Count=1/1 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
Capabilities: [100] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO+ CmpltAbrt- UnxCmplt-
RxOF- MalfTLP- ECRC- UnsupReq- ACSVoil-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
RxOF- MalfTLP- ECRC- UnsupReq- ACSVoil-
UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt-
RxOF+ MalfTLP+ ECRC- UnsupReq- ACSVoil-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout-
NonFatalErr-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout-
NonFatalErr-
AERCap: First Error Pointer: 0e, GenCap+ CGenEn- ChkCap+
ChkEn-
Capabilities: [140] Virtual Channel <?>
Kernel driver in use: ath5k
Kernel modules: ath5k
Quoted 11 lines · Denys Fedoryschenko
I have laptop with ath5k card, and just tried to run it with ath5k driver. I notice strange thing:
lappi ~ # iw phy phy0 info
Wiphy phy0
Band 1:
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
Quoted 2 lines
I guess it is too high. I am not sure it is actual value, but if it is right and actual value, then i am exceeding local regulations.
That value is the maximum value allowed, not your actual eirp. By default the EEPROM's card is read and that is used for regulatory purposes, users can however be good citizens and help regulatory compliance further by indicating their country and if the max eirp of the programmed EEPROM is higher than your current country it will be lowered.
Please have a good read at:
http://wireless.kernel.org/en/developers/Regulatory
http://wireless.kernel.org/en/users/Drivers/ath
Quoted 1 line
Another thing, is it possible to change antenna output?
You obviously can change the antenna on a lot of devices, sometimes that is difficult due to the connectors used but you are likely to find them online somewhere.
Luis
Quoted 3 lines · On Tuesday 27 October 2009 03:38:02 Luis R. Rodriguez wrote:
You obviously can change the antenna on a lot of devices, sometimes that is difficult due to the connectors used but you are likely to find them online somewhere.
I mean A or B :-) AUX or MAIN :-)
Sorry for my ugly English.
In madwifi, as i remember i was possible to do that or over sysctl or over module parameter, i dont remember exactly where.
Quoted 9 lines · Denys Fedoryschenko
Quoted 3 lines · On Tuesday 27 October 2009 03:38:02 Luis R. Rodriguez wrote:
You obviously can change the antenna on a lot of devices, sometimes that is difficult due to the connectors used but you are likely to find them online somewhere.
I mean A or B :-) AUX or MAIN :-)
Sorry for my ugly English.
In madwifi, as i remember i was possible to do that or over sysctl or over module parameter, i dont remember exactly where.
You mean can you do antenna diversity and select this manually ? I am not sure, but I doubt it, should be easy to add though.
Luis
Quoted 2 lines · On Tuesday 27 October 2009 04:59:20 Luis R. Rodriguez wrote:
You mean can you do antenna diversity and select this manually ? I am not sure, but I doubt it, should be easy to add though.
Yes, on some laptops wireless card connected really weird way. And while on Windows everything worked fine, on Linux signal was too weak, and some people thinking it is driver issue.
I had this issue with madwifi before, and choosing antenna manually helped. But it was long time ago, no idea if it's useful now in ath5k. But in custom boards like Routerboard it is very useful.
Quoted 10 lines · Denys Fedoryschenko
Quoted 2 lines · On Tuesday 27 October 2009 04:59:20 Luis R. Rodriguez wrote:
You mean can you do antenna diversity and select this manually ? I am not sure, but I doubt it, should be easy to add though.
Yes, on some laptops wireless card connected really weird way. And while on Windows everything worked fine, on Linux signal was too weak, and some people thinking it is driver issue.
I had this issue with madwifi before, and choosing antenna manually helped. But it was long time ago, no idea if it's useful now in ath5k. But in custom boards like Routerboard it is very useful.
ath5k and madwifi are very different.
Luis
Quoted 1 line · On Tuesday 27 October 2009 05:14:27 Luis R. Rodriguez wrote:
ath5k and madwifi are very different.
I know, but as i know there no way to know to which connector vendor plugged antenna cable.
Quoted 4 lines · Denys Fedoryschenko
Quoted 1 line · On Tuesday 27 October 2009 05:14:27 Luis R. Rodriguez wrote:
ath5k and madwifi are very different.
I know, but as i know there no way to know to which connector vendor plugged antenna cable.
How do we do this for windows then?
Luis
Quoted 3 lines · On Tuesday 27 October 2009 05:25:44 Luis R. Rodriguez wrote:
How do we do this for windows then?
You are right. I search in registry and .inf files, there is nothing vendor specific. Most probably what is exist now - enough for laptops.
Quoted 7 lines · Luis R. Rodriguez
Quoted 4 lines
I mean A or B :-) AUX or MAIN :-)
Sorry for my ugly English.
In madwifi, as i remember i was possible to do that or over sysctl or over module parameter, i dont remember exactly where.You mean can you do antenna diversity and select this manually ? I am not sure, but I doubt it, should be easy to add though.
The code's already there in the driver, there's just not any interface to do it from cfg80211 yet. If you want to hack the driver just look for the antenna-related defines :)
Signature · 1 line
Bob Copeland %% www.bobcopeland.com