IBSS mode with ath9K and latest compat-wireless
A message that is not in the archive (sent off-list or not yet received): [email protected]
Team,
I am interested in testing adhoc network using high power n-radios from Ubiquiti. As of now I don't think IBSS mode is fully working on ath9k but please correct me if I am missing something.
Any help in this direction is appreciated. And of course I am more than willing to collect more traces for debugging this problem.
Regards,
Jaideep
My configuration:
octeon:~# uname -a Linux octeon 2.6.27.7-Cavium-Octeon #11 SMP Thu Sep 24 18:28:07 CDT 2009 mips64 GNU/Linux
Using Compat-wireless from compat-wireless-2009-09-24 and ath9k
Radios:
02:04.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
Subsystem: Device 0777:4002
Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 44 Memory at 11b00f0000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ath9k
Kernel modules: ath9k
Issue #1: Nodes don't associate with each other
Node 1:
octeon:~# iw dev wlan0 set type ibss octeon:~# ifconfig wlan0 192.168.16.194 netmask 255.255.255.0 octeon:~# iw --debug dev wlan0 ibss join JSL_N_TEST 2427 00:15:6D:84:03:EA
octeon:~# iw dev wlan0 scan -u
............
...............
BSS 00:15:6d:84:03:ea (on wlan0) -- joined
freq: 2427
beacon interval: 100
capability: IBSS (0x0002)
signal: 0.00 dBm
SSID: JSL_N_TEST
Supported rates: 1.0* 2.0* 5.5 11.0 6.0 9.0 12.0 18.0
DS Parameter set: channel 4
Unknown IE (6): 00 00
Extended supported rates: 24.0 36.0 48.0 54.0
............
...............Node 2:
octeon:~# iw dev wlan0 set type ibss octeon:~# ifconfig wlan0 192.168.16.196 netmask 255.255.255.0 octeon:~# iw --debug dev wlan0 ibss join JSL_N_TEST 2427 00:15:6D:84:03:EA
octeon:# iw dev wlan0 scan
BSS 00:15:6d:84:03:ea (on wlan0) -- joined
freq: 2427
beacon interval: 100
capability: IBSS (0x0002)
signal: 0.00 dBm
SSID: JSL_N_TEST
Supported rates: 1.0* 2.0* 5.5 11.0 6.0 9.0 12.0 18.0
DS Parameter set: channel 4
Extended supported rates: 24.0 36.0 48.0 54.0Issue #2: Frequent crashes
octeon:# ifconfig wlan0 up
octeon:~# CPU 0 Unable to handle kernel paging request at virtual
address 0000000000000038, epc == ffffffffc00e1300, ra ==
ffffffffc00e12fc
Oops[#1]:
Cpu 0
$ 0 : 0000000000000000 ffffffff81680000 ffffffffdeadbeef
000000000002322e
$ 4 : a800000419c65324 0000000000000000 a800000419c65f98
0000000000000000
$ 8 : a800000411c32058 0000000000000000 0000000000000005
ffffffff81689e40
$12 : 000000001000cce0 000000001000001f a80000041e8d0000
ffffffffd9d970a9
$16 : a800000419c50000 ffffffffdeadbeef 0000000000000000
ffffffffdeadbeef
$20 : ffffffffc00c89b8 ffffffff81640000 0000000000000000
0000000000200200
$24 : 000000002adbcb70 ffffffff81504c68
$28 : ffffffff81608000 ffffffff8160bc80 ffffffff81689198
ffffffffc00e12fc
Hi : 0000000000000005
Lo : 333333333333333b
epc : ffffffffc00e1300 ath9k_hw_ani_monitor+0x80/0x428 [ath9k]
Not tainted
ra : ffffffffc00e12fc ath9k_hw_ani_monitor+0x7c/0x428 [ath9k]
Status: 1000cce3 KX SX UX KERNEL EXL IE
Cause : 00800008
BadVA : 0000000000000038
PrId : 000d0409 (Cavium Octeon)
Modules linked in: ipv6 led_class rfkill_backport cfg80211 ath mac80211
ath9k ecb arc4 [last unloaded: led_class]
Process swapper (pid: 0, threadinfo=ffffffff81608000,
task=ffffffff8160c380, tls=0000000000000000)
Stack : a800000419c651c0 0000000001291232 a800000419c50000
00000000000003e8
0000000000000000 ffffffffc00e6ecc ffffffff81687580
0000000000000100
ffffffffc00e6d08 ffffffff81640000 ffffffff81688598
ffffffff81688998
ffffffff81688d98 ffffffff811706ac a80000041e112468
a80000041e112468
0000000000000000 ffffffff8163f708 0000000000000041
8001070000000200
ffffffff8167c810 000000000000000a ffffffff8167db20
ffffffff81640000
ffffffff81640000 ffffffff8116a668 0000000000000000
ffffffff81640000
8001070000000218 8001070000000200 8001070000000000
8001070000000108
ffffffff8167db20 ffffffff81681280 ffffffff81670000
ffffffff8116a808
0000000000008000 ffffffff81100d64 ffffffff8167f780
0000000000000000
...
Call Trace:
[<ffffffffc00e1300>] ath9k_hw_ani_monitor+0x80/0x428 [ath9k]
[<ffffffffc00e6ecc>] ath_ani_calibrate+0x1c4/0x2b0 [ath9k]
[<ffffffff811706ac>] run_timer_softirq+0x13c/0x260
[<ffffffff8116a668>] __do_softirq+0xf0/0x218
[<ffffffff8116a808>] do_softirq+0x78/0x80