Hi Dmitry, > Thank you for logs! > As I can see the device itself is alive, but nothing is coming back as a > response to the "scan" command. Something happened with RF part or (likely) > wrong PLL settings? > What kind of platform you are running on? What frequency you are providing > as a master clock for cw1200? I am running on an iMX51 platform very similar to the Freescale babbage board. The cw1200 is on a sg901_1091 module from Sagrad. I measured the clock on the sg901_1091 module and it is 38.4MHz. Based on some other cw1200 driver source I have changed the PLL init value from 0x0EC4F121 to 0x100010C1. After that change "iw wlan0 scan" succeeds! :) However, I have not been able to actually connect to any networks. :( "iw --debug wlan0 connect cw_test" returns: -- Debug: Sent Message: -------------------------- BEGIN NETLINK MESSAGE --------------------------- [HEADER] 16 octets .nlmsg_len = 40 .nlmsg_type = 17 <0x11> .nlmsg_flags = 5 <REQUEST,ACK> .nlmsg_seq = 1336063010 .nlmsg_pid = 2087 [PAYLOAD] 24 octets 2e 00 00 00 08 00 03 00 04 00 00 00 0b 00 34 00 63 77 ..............4.cw 5f 74 65 73 74 00 _test. --------------------------- END NETLINK MESSAGE --------------------------- -- Debug: Received Message: -------------------------- BEGIN NETLINK MESSAGE --------------------------- [HEADER] 16 octets .nlmsg_len = 168 .nlmsg_type = 17 <0x11> .nlmsg_flags = 0 <> .nlmsg_seq = 0 .nlmsg_pid = 0 [PAYLOAD] 152 octets 21 01 00 00 08 00 01 00 01 00 00 00 08 00 03 00 04 00 !................. 00 00 10 00 2d 00 0b 00 00 00 63 77 5f 74 65 73 74 00 ....-.....cw_test. 74 00 2c 00 08 00 00 00 6c 09 00 00 08 00 01 00 71 09 t.,.....l.......q. 00 00 08 00 02 00 76 09 00 00 08 00 03 00 7b 09 00 00 ......v.......{... 08 00 04 00 80 09 00 00 08 00 05 00 85 09 00 00 08 00 .................. 06 00 8a 09 00 00 08 00 07 00 8f 09 00 00 08 00 08 00 .................. 94 09 00 00 08 00 09 00 99 09 00 00 08 00 0a 00 9e 09 .................. 00 00 08 00 0b 00 a3 09 00 00 08 00 0c 00 a8 09 00 00 .................. 08 00 0d 00 b4 09 00 00 ........ --------------------------- END NETLINK MESSAGE --------------------------- -- Error: Invalid message: type=0x11 length=168 flags=<> sequence-nr=0 pid=0 -- Debug: Received Message: -------------------------- BEGIN NETLINK MESSAGE --------------------------- [HEADER] 16 octets .nlmsg_len = 36 .nlmsg_type = 2 <ERROR> .nlmsg_flags = 0 <> .nlmsg_seq = 1336063010 .nlmsg_pid = 2087 [ERRORMSG] 20 octets .error = 0 "Success" [ORIGINAL MESSAGE] 16 octets .nlmsg_len = 16 .nlmsg_type = 17 <0x11> .nlmsg_flags = 5 <REQUEST,ACK> .nlmsg_seq = 1336063010 .nlmsg_pid = 2087 --------------------------- END NETLINK MESSAGE --------------------------- I have also attached a kernel log. > Also I see unexpectedly high rate of IRQs, they should not come every now > and then.. Any ideas what could cause this or how I should debug it? Thanks, Kevin
Attachment:
kernel.log
Description: Binary data