#333: FCC channel problem, and adhoc memory leak
--------------------------+-------------------------------------------------
Reporter: kiru | Owner:
Type: defect | Status: new
Priority: major | Milestone: version 0.9.0 - move to new codebase
Component: madwifi: HAL | Version: trunk
Keywords: FCC channels |
--------------------------+-------------------------------------------------
System:
test2:~# uname -a
Linux test2 2.6.15.1 #1 Mon Jan 23 00:17:07 CET 2006 i686 GNU/Linux
madwifi: madwifi-ng-r1406-20060123.tar.gz
If I load the ath_pci module with these arguments:
modprobe ath_pci xchanmode=0 outdoor=1 countrycode=348
and I issue this command:
/usr/local/bin/wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
then wlanconfig shows this output:
test2:~# wlanconfig ath0 list chan
Channel 1 : 2412 Mhz 11g Channel 48 : 5240* Mhz 11a
Channel 2 : 2417 Mhz 11g Channel 52 : 5260* Mhz 11a
Channel 3 : 2422 Mhz 11g Channel 56 : 5280* Mhz 11a
Channel 4 : 2427 Mhz 11g Channel 60 : 5300* Mhz 11a
Channel 5 : 2432 Mhz 11g Channel 64 : 5320* Mhz 11a
Channel 6 : 2437 Mhz 11g Dynamic Channel 100 : 5500* Mhz 11a
Channel 7 : 2442 Mhz 11g Channel 104 : 5520* Mhz 11a
Channel 8 : 2447 Mhz 11g Channel 108 : 5540* Mhz 11a
Channel 9 : 2452 Mhz 11g Channel 112 : 5560* Mhz 11a
Channel 10 : 2457 Mhz 11g Channel 116 : 5580* Mhz 11a
Channel 11 : 2462 Mhz 11g Channel 120 : 5600* Mhz 11a
Channel 12 : 2467 Mhz 11g Channel 124 : 5620* Mhz 11a
Channel 13 : 2472 Mhz 11g Channel 128 : 5640* Mhz 11a
Channel 36 : 5180* Mhz 11a Channel 132 : 5660* Mhz 11a
Channel 40 : 5200* Mhz 11a Channel 136 : 5680* Mhz 11a
Channel 44 : 5220* Mhz 11a Channel 140 : 5700* Mhz 11a
I live in Hungary, and these channels are not correct in my country. The
right channels are:
for 5ghz mode: 5180, 5200, 5220, 5240, 5260, 5280, 5300, 5320, 5745, 5765,
5785, 5805;
The wrong channels that wlanconfig shows are working well, but the right
channels not.
I don't know the atheros card type, but lspci -vvv shows the follow:
0000:00:12.0 Ethernet controller: Atheros Communications, Inc.: Unknown
device 001b (rev 01)
Subsystem: Unknown device 17f9:000c
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR+ FastB2B+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 0x08 (32
bytes)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at f3ff0000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
If you need it I can search you the type of the card.
The same hardware works good (FCC channels) with Mikrotik OS.
I tried the "modprobe ath_pci" command, and it's variation
(xchanmode,outdoor). The result is the same.
How can I set the correct channel list with this driver?
My log messages:
Jan 23 22:09:46 localhost kernel: ath_hal: 0.9.16.13
(AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, DFS)
Jan 23 22:09:46 localhost kernel: ath_rate_sample: 1.2
Jan 23 22:09:46 localhost kernel: ath_pci: 0.9.4.5
(Atheros/multi-bss)
Jan 23 22:09:47 localhost kernel: PCI: Found IRQ 11 for
device 0000:00:12.0
Jan 23 22:09:47 localhost kernel: PCI: Sharing IRQ 11
with 0000:01:01.0
Jan 23 22:09:47 localhost kernel: wifi0: 11a rates: 6Mbps 9Mbps 12Mbps
18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Jan 23 22:09:47 localhost kernel: wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps
11Mbps
Jan 23 22:09:47 localhost kernel: wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps
11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps
36Mbps 48Mbps 54Mbps
Jan 23 22:09:47 localhost kernel: wifi0: turboG rates: 6Mbps 12Mbps 18Mbps
24Mbps 36Mbps 48Mbps 54Mbps
Jan 23 22:09:47 localhost kernel: wifi0: H/W encryption support: WEP AES
AES_CCM TKIP
Jan 23 22:09:47 localhost kernel: wifi0: mac 10.5 phy 6.1 radio 6.3
Jan 23 22:09:47 localhost kernel: wifi0: Use hw queue 1 for WME_AC_BE
traffic
Jan 23 22:09:47 localhost kernel: wifi0: Use hw queue 0 for WME_AC_BK
traffic
Jan 23 22:09:47 localhost kernel: wifi0: Use hw queue 2 for WME_AC_VI
traffic
Jan 23 22:09:47 localhost kernel: wifi0: Use hw queue 3 for WME_AC_VO
traffic
Jan 23 22:09:47 localhost kernel: wifi0: Use hw queue 8 for CAB traffic
Jan 23 22:09:47 localhost kernel: wifi0: Use hw queue 9 for beacons
Jan 23 22:09:47 localhost kernel: wifi0: Atheros 5212: mem=0xf3ff0000,
irq=11
--
Ticket URL: <http://madwifi.org/ticket/333>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity