2013-11-17 03:56:38

by Jaya Kumar

[permalink] [raw]
Subject: WL12xx support for WL1270 and ti-connectivity firmware

Hi friends,

I searched through the mailing list archives to see if there's any
conclusive answer about this but didn't find any. I'm planning on
using the wl12xx driver in 3.0.35 for i.mx6 board with a murata
LBWA19XSLZ chip (TI WL1270 transceiver) and am checking if this might
work.

a) does wl12xx support wl1270?
I'm not certain whether or not the wl12xx driver supports wl1270. The
code does not mention wl1270. The defines/ops are prefixed with
wl1271. Eg:
linux-3.0.35$ egrep ieee80211_ops drivers/net/wireless/wl12xx/*.c
drivers/net/wireless/wl12xx/main.c:static const struct ieee80211_ops
wl1271_ops = {

Can I conclude that I should not expect this to work for wl1270? Or is
it just that wl1271 and wl1270 share compatible ops?

b) is there specific firmware I will need for the wl1270?
I see that wl1271 gets its firmware from ti-connectivity which has:
https://github.com/shaharlevi/linux-firmware-ti-connectivity/tree/ti-connectivity/ti-connectivity
wl1271-fw.binlinux-firmware: wl12xx-update STA FW supports 11n BA sessions
wl127x-fw-3.binlinux-firmware: wl12xx: Updated STA & AP FW for wl12xx-fw-3

I'm wondering if that wl127x includes wl1270 support.

Thanks for any advice/suggestions.

Thanks,
jayakumar


2013-11-18 09:10:07

by Luca Coelho

[permalink] [raw]
Subject: Re: WL12xx support for WL1270 and ti-connectivity firmware

On Sun, 2013-11-17 at 11:56 +0800, Jaya Kumar wrote:
> Hi friends,
>
> I searched through the mailing list archives to see if there's any
> conclusive answer about this but didn't find any. I'm planning on
> using the wl12xx driver in 3.0.35 for i.mx6 board with a murata
> LBWA19XSLZ chip (TI WL1270 transceiver) and am checking if this might
> work.
>
> a) does wl12xx support wl1270?
> I'm not certain whether or not the wl12xx driver supports wl1270. The
> code does not mention wl1270. The defines/ops are prefixed with
> wl1271. Eg:
> linux-3.0.35$ egrep ieee80211_ops drivers/net/wireless/wl12xx/*.c
> drivers/net/wireless/wl12xx/main.c:static const struct ieee80211_ops
> wl1271_ops = {
>
> Can I conclude that I should not expect this to work for wl1270? Or is
> it just that wl1271 and wl1270 share compatible ops?

I have never heard of wl1270 while working at TI. My only guess is that
this is a chip based on wl1271 (since the Murata specs only say b/g/n
and no "a" which is the 5GHz support in wl1273). Maybe it's a cheaper
chip without Bluetooth? To be sure, you should ask TI.


> b) is there specific firmware I will need for the wl1270?
> I see that wl1271 gets its firmware from ti-connectivity which has:
> https://github.com/shaharlevi/linux-firmware-ti-connectivity/tree/ti-connectivity/ti-connectivity
> wl1271-fw.binlinux-firmware: wl12xx-update STA FW supports 11n BA sessions
> wl127x-fw-3.binlinux-firmware: wl12xx: Updated STA & AP FW for wl12xx-fw-3
>
> I'm wondering if that wl127x includes wl1270 support.

Same as above... If this wl1270 is indeed based on the wl1271, it should
probably work. With the driver you may need to add some new SDIO IDs
for it to be recognized though.

--
Luca.



2014-03-24 22:08:41

by Luca Coelho

[permalink] [raw]
Subject: Re: WL12xx support for WL1270 and ti-connectivity firmware

On Mon, 2014-03-24 at 20:32 +0200, Luca Coelho wrote:
> On March 24, 2014 2:03:12 PM EET, Jaya Kumar <[email protected]> wrote:
> >I retried with debug_level=256 (scan debug) and I see a lot of output
> >appended below. I haven't figured out how to interpret them yet. I'd
> >be grateful for any advice/suggestions on this.
>
> There's nothing very useful in those kids

I meant "in those logs", obviously. My phone's auto-correction is not
that good when writing technical terms. :)

--
Luca.


2014-03-24 18:33:48

by Luca Coelho

[permalink] [raw]
Subject: Re: WL12xx support for WL1270 and ti-connectivity firmware

On March 24, 2014 2:03:12 PM EET, Jaya Kumar <[email protected]> wrote:
>On Mon, Nov 18, 2013 at 5:09 PM, Luca Coelho <[email protected]> wrote:
>>
>> Same as above... If this wl1270 is indeed based on the wl1271, it
>should
>> probably work. With the driver you may need to add some new SDIO IDs
>> for it to be recognized though.
>>
>
>Hi,
>
>I'm now bringing up the board with the wl1270. I'm using 3.0.35 (stuck
>on this kernel version due to other drivers).

Do you mean out-of-tree drivers? If they were in the mainline you should be able to upgrade.

Anyway, you should at least try to use compat (now called backport) to get the latest wireless stuff.

> The good news is that
>the chip is detected and wl12xx/wl12xx_sdio loads. However, I haven't
>been able to get it to get any scan results and can't associate with
>any AP (even open).

Usually this happens because you're not getting any interrupts. Are you sure the WLAN IRQ GPIO is correctly configured?



>---
>mmc1: card claims to support voltages below the defined range. These
>will be ignored.
>mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
>mmc1: new SDIO card at address 0001
>...
>I'm using ti-linux-firmware-wl12xx-r3-m1-rc2.tar.gz for the nvs and fw
>files.
>
>root@freescale ~$ modprobe wl12xx
>root@freescale ~$ modprobe wl12xx_sdio
>add wake up source irq 106
>wl1271: loaded
>wl1271: initialized
>root@freescale ~$ ifconfig wlan0 up
>wl1271: firmware booted (Rev 6.1.5.50.69)
>
>root@freescale ~$ iwlist wlan0 scan

You should really be using the iw tool instead of the old wireless-tools. This probably won't make a difference in your case, but there's no reason to use a tool that had been deprecated for years...


>wlan0 No scan results
>---
>
>I retried with debug_level=256 (scan debug) and I see a lot of output
>appended below. I haven't figured out how to interpret them yet. I'd
>be grateful for any advice/suggestions on this.

There's nothing very useful in those kids
It just shows that the scan command was issued but you never got the scan complete interrupt.

--
Luca.


2014-03-25 05:55:15

by Luca Coelho

[permalink] [raw]
Subject: Re: WL12xx support for WL1270 and ti-connectivity firmware

On Tue, 2014-03-25 at 09:48 +0800, Jaya Kumar wrote:
> On Tue, Mar 25, 2014 at 2:32 AM, Luca Coelho <[email protected]> wrote:
> >> The good news is that
> >>the chip is detected and wl12xx/wl12xx_sdio loads. However, I haven't
> >>been able to get it to get any scan results and can't associate with
> >>any AP (even open).
> >
> > Usually this happens because you're not getting any interrupts. Are you sure the WLAN IRQ GPIO is correctly configured?
> >
> > There's nothing very useful in those kids
> > It just shows that the scan command was issued but you never got the scan complete interrupt.
> >
>
> Hi Luca,
>
> Thanks for your reply. I think the wlan irq gpio is configured. When I
> look at /proc/interrupts, I see it increasing each time I try to scan.

Interesting. Try to take more logs, use 6625 for instance. This will
produce a lot of messages.

Another common cause for failed scan (and RX in general) is a wrong
clock frequency for the WiLink chip. Make sure you're using the correct
values in your board file.

HTH.

--
Luca.


2014-03-24 12:03:13

by Jaya Kumar

[permalink] [raw]
Subject: Re: WL12xx support for WL1270 and ti-connectivity firmware

On Mon, Nov 18, 2013 at 5:09 PM, Luca Coelho <[email protected]> wrote:
>
> Same as above... If this wl1270 is indeed based on the wl1271, it should
> probably work. With the driver you may need to add some new SDIO IDs
> for it to be recognized though.
>

Hi,

I'm now bringing up the board with the wl1270. I'm using 3.0.35 (stuck
on this kernel version due to other drivers). The good news is that
the chip is detected and wl12xx/wl12xx_sdio loads. However, I haven't
been able to get it to get any scan results and can't associate with
any AP (even open).

---
mmc1: card claims to support voltages below the defined range. These
will be ignored.
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new SDIO card at address 0001
...
I'm using ti-linux-firmware-wl12xx-r3-m1-rc2.tar.gz for the nvs and fw files.

root@freescale ~$ modprobe wl12xx
root@freescale ~$ modprobe wl12xx_sdio
add wake up source irq 106
wl1271: loaded
wl1271: initialized
root@freescale ~$ ifconfig wlan0 up
wl1271: firmware booted (Rev 6.1.5.50.69)

root@freescale ~$ iwlist wlan0 scan
wlan0 No scan results
---

I retried with debug_level=256 (scan debug) and I see a lot of output
appended below. I haven't figured out how to interpret them yet. I'd
be grateful for any advice/suggestions on this.

Thanks,
jaya

root@freescale ~$ modprobe wl12xx debug_level=256
root@freescale ~$ modprobe wl12xx_sdio
add wake up source irq 106
wl1271: loaded
wl1271: initialized
root@freescale ~$ ifconfig wlan0 up
wl1271: firmware booted (Rev 6.1.5.50.69)
root@freescale ~$ iwlist wlan0 scan
wl1271: PROBE REQ: 00000000: 40 00 00 00 ff ff ff ff ff ff de ad be ef 00 00
wl1271: PROBE REQ: 00000010: ff ff ff ff ff ff 00 00 00 00 01 08 02 04 0b 16
wl1271: PROBE REQ: 00000020: 0c 12 18 24 32 04 30 48 60 6c 2d 1a 30 01 18 ff
wl1271: PROBE REQ: 00000030: 00 00 00 00 00 00 00 00 00 48 00 01 00 00 00 00
wl1271: PROBE REQ: 00000040: 00 00 00 00 00 00
wl1271: SCAN: 00000000: 00 00 00 00 08 00 00 00 14 02 00 00 04 00 0b 02
wl1271: SCAN: 00000010: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000030: 00 00 00 00 00 00 00 00 00 00 01 00 4c 1d 00 00
wl1271: SCAN: 00000040: 30 75 00 00 ff ff ff ff ff ff 00 14 01 00 00 00
wl1271: SCAN: 00000050: 4c 1d 00 00 30 75 00 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000060: 02 00 00 00 4c 1d 00 00 30 75 00 00 ff ff ff ff
wl1271: SCAN: 00000070: ff ff 00 14 03 00 00 00 4c 1d 00 00 30 75 00 00
wl1271: SCAN: 00000080: ff ff ff ff ff ff 00 14 04 00 00 00 4c 1d 00 00
wl1271: SCAN: 00000090: 30 75 00 00 ff ff ff ff ff ff 00 14 05 00 00 00
wl1271: SCAN: 000000a0: 4c 1d 00 00 30 75 00 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 000000b0: 06 00 00 00 4c 1d 00 00 30 75 00 00 ff ff ff ff
wl1271: SCAN: 000000c0: ff ff 00 14 07 00 00 00 4c 1d 00 00 30 75 00 00
wl1271: SCAN: 000000d0: ff ff ff ff ff ff 00 14 08 00 00 00 4c 1d 00 00
wl1271: SCAN: 000000e0: 30 75 00 00 ff ff ff ff ff ff 00 14 09 00 00 00
wl1271: SCAN: 000000f0: 4c 1d 00 00 30 75 00 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000100: 0a 00 00 00 4c 1d 00 00 30 75 00 00 ff ff ff ff
wl1271: SCAN: 00000110: ff ff 00 14 0b 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: PROBE REQ: 00000000: 40 00 00 00 ff ff ff ff ff ff de ad be ef 00 00
wl1271: PROBE REQ: 00000010: ff ff ff ff ff ff 00 00 00 00 01 08 02 04 0b 16
wl1271: PROBE REQ: 00000020: 0c 12 18 24 32 04 30 48 60 6c 2d 1a 30 01 18 ff
wl1271: PROBE REQ: 00000030: 00 00 00 00 00 00 00 00 00 48 00 01 00 00 00 00
wl1271: PROBE REQ: 00000040: 00 00 00 00 00 00
wl1271: SCAN: 00000000: 00 00 00 00 08 00 00 00 14 02 00 00 05 00 03 02
wl1271: SCAN: 00000010: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000030: 00 00 00 00 00 00 00 00 00 00 01 00 a0 86 01 00
wl1271: SCAN: 00000040: a0 86 01 00 ff ff ff ff ff ff 00 14 0c 00 00 00
wl1271: SCAN: 00000050: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000060: 0d 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 00000070: ff ff 00 14 0e 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: PROBE REQ: 00000000: 40 00 00 00 ff ff ff ff ff ff de ad be ef 00 00
wl1271: PROBE REQ: 00000010: ff ff ff ff ff ff 00 00 00 00 01 08 0c 12 18 24
wl1271: PROBE REQ: 00000020: 30 48 60 6c 2d 1a 30 01 18 ff 00 00 00 00 00 00
wl1271: PROBE REQ: 00000030: 00 00 00 48 00 01 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000000: 00 00 00 00 08 00 00 00 14 02 00 00 05 00 0c 02
wl1271: SCAN: 00000010: 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000030: 00 00 00 00 00 00 00 00 01 00 01 00 a0 86 01 00
wl1271: SCAN: 00000040: a0 86 01 00 ff ff ff ff ff ff 00 14 24 00 00 00
wl1271: SCAN: 00000050: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000060: 26 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 00000070: ff ff 00 14 28 00 00 00 a0 86 01 00 a0 86 01 00
wl1271: SCAN: 00000080: ff ff ff ff ff ff 00 14 2a 00 00 00 a0 86 01 00
wl1271: SCAN: 00000090: a0 86 01 00 ff ff ff ff ff ff 00 14 2c 00 00 00
wl1271: SCAN: 000000a0: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 000000b0: 2e 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 000000c0: ff ff 00 14 30 00 00 00 a0 86 01 00 a0 86 01 00
wl1271: SCAN: 000000d0: ff ff ff ff ff ff 00 14 95 00 00 00 a0 86 01 00
wl1271: SCAN: 000000e0: a0 86 01 00 ff ff ff ff ff ff 00 14 99 00 00 00
wl1271: SCAN: 000000f0: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000100: 9d 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 00000110: ff ff 00 14 a1 00 00 00 a0 86 01 00 a0 86 01 00
wl1271: SCAN: 00000120: ff ff ff ff ff ff 00 14 a5 00 00 00 00 00 00 00
wl1271: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00
wlan0 No scan results

root@freescale ~$ iwconfig wlan0 essid testingopen ap any
wl1271: PROBE REQ: 00000000: 40 00 00 00 ff ff ff ff ff ff de ad be ef 00 00
wl1271: PROBE REQ: 00000010: ff ff ff ff ff ff 00 00 00 0b 74 65 73 74 69 6e
wl1271: PROBE REQ: 00000020: 67 6f 70 65 6e 01 08 02 04 0b 16 0c 12 18 24 32
wl1271: PROBE REQ: 00000030: 04 30 48 60 6c 2d 1a 30 01 18 ff 00 00 00 00 00
wl1271: PROBE REQ: 00000040: 00 00 00 00 48 00 01 00 00 00 00 00 00 00 00 00
wl1271: PROBE REQ: 00000050: 00
wl1271: SCAN: 00000000: 00 00 00 00 08 00 00 00 14 02 00 00 04 00 0b 02
wl1271: SCAN: 00000010: 01 00 00 00 00 0b 00 00 74 65 73 74 69 6e 67 6f
wl1271: SCAN: 00000020: 70 65 6e 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000030: 00 00 00 00 00 00 00 00 00 00 01 00 4c 1d 00 00
wl1271: SCAN: 00000040: 30 75 00 00 ff ff ff ff ff ff 00 14 01 00 00 00
wl1271: SCAN: 00000050: 4c 1d 00 00 30 75 00 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000060: 02 00 00 00 4c 1d 00 00 30 75 00 00 ff ff ff ff
wl1271: SCAN: 00000070: ff ff 00 14 03 00 00 00 4c 1d 00 00 30 75 00 00
wl1271: SCAN: 00000080: ff ff ff ff ff ff 00 14 04 00 00 00 4c 1d 00 00
wl1271: SCAN: 00000090: 30 75 00 00 ff ff ff ff ff ff 00 14 05 00 00 00
wl1271: SCAN: 000000a0: 4c 1d 00 00 30 75 00 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 000000b0: 06 00 00 00 4c 1d 00 00 30 75 00 00 ff ff ff ff
wl1271: SCAN: 000000c0: ff ff 00 14 07 00 00 00 4c 1d 00 00 30 75 00 00
wl1271: SCAN: 000000d0: ff ff ff ff ff ff 00 14 08 00 00 00 4c 1d 00 00
wl1271: SCAN: 000000e0: 30 75 00 00 ff ff ff ff ff ff 00 14 09 00 00 00
wl1271: SCAN: 000000f0: 4c 1d 00 00 30 75 00 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000100: 0a 00 00 00 4c 1d 00 00 30 75 00 00 ff ff ff ff
wl1271: SCAN: 00000110: ff ff 00 14 0b 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00
root@freescale ~$ wl1271: PROBE REQ: 00000000: 40 00 00 00 ff ff ff ff
ff ff de ad be ef 00 00
wl1271: PROBE REQ: 00000010: ff ff ff ff ff ff 00 00 00 0b 74 65 73 74 69 6e
wl1271: PROBE REQ: 00000020: 67 6f 70 65 6e 01 08 02 04 0b 16 0c 12 18 24 32
wl1271: PROBE REQ: 00000030: 04 30 48 60 6c 2d 1a 30 01 18 ff 00 00 00 00 00
wl1271: PROBE REQ: 00000040: 00 00 00 00 48 00 01 00 00 00 00 00 00 00 00 00
wl1271: PROBE REQ: 00000050: 00
wl1271: SCAN: 00000000: 00 00 00 00 08 00 00 00 14 02 00 00 05 00 03 02
wl1271: SCAN: 00000010: 01 00 00 00 00 0b 00 00 74 65 73 74 69 6e 67 6f
wl1271: SCAN: 00000020: 70 65 6e 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000030: 00 00 00 00 00 00 00 00 00 00 01 00 a0 86 01 00
wl1271: SCAN: 00000040: a0 86 01 00 ff ff ff ff ff ff 00 14 0c 00 00 00
wl1271: SCAN: 00000050: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000060: 0d 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 00000070: ff ff 00 14 0e 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: PROBE REQ: 00000000: 40 00 00 00 ff ff ff ff ff ff de ad be ef 00 00
wl1271: PROBE REQ: 00000010: ff ff ff ff ff ff 00 00 00 0b 74 65 73 74 69 6e
wl1271: PROBE REQ: 00000020: 67 6f 70 65 6e 01 08 0c 12 18 24 30 48 60 6c 2d
wl1271: PROBE REQ: 00000030: 1a 30 01 18 ff 00 00 00 00 00 00 00 00 00 48 00
wl1271: PROBE REQ: 00000040: 01 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000000: 00 00 00 00 08 00 00 00 14 02 00 00 05 00 0c 02
wl1271: SCAN: 00000010: 08 00 00 00 00 0b 00 00 74 65 73 74 69 6e 67 6f
wl1271: SCAN: 00000020: 70 65 6e 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000030: 00 00 00 00 00 00 00 00 01 00 01 00 a0 86 01 00
wl1271: SCAN: 00000040: a0 86 01 00 ff ff ff ff ff ff 00 14 24 00 00 00
wl1271: SCAN: 00000050: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000060: 26 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 00000070: ff ff 00 14 28 00 00 00 a0 86 01 00 a0 86 01 00
wl1271: SCAN: 00000080: ff ff ff ff ff ff 00 14 2a 00 00 00 a0 86 01 00
wl1271: SCAN: 00000090: a0 86 01 00 ff ff ff ff ff ff 00 14 2c 00 00 00
wl1271: SCAN: 000000a0: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 000000b0: 2e 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 000000c0: ff ff 00 14 30 00 00 00 a0 86 01 00 a0 86 01 00
wl1271: SCAN: 000000d0: ff ff ff ff ff ff 00 14 95 00 00 00 a0 86 01 00
wl1271: SCAN: 000000e0: a0 86 01 00 ff ff ff ff ff ff 00 14 99 00 00 00
wl1271: SCAN: 000000f0: a0 86 01 00 a0 86 01 00 ff ff ff ff ff ff 00 14
wl1271: SCAN: 00000100: 9d 00 00 00 a0 86 01 00 a0 86 01 00 ff ff ff ff
wl1271: SCAN: 00000110: ff ff 00 14 a1 00 00 00 a0 86 01 00 a0 86 01 00
wl1271: SCAN: 00000120: ff ff ff ff ff ff 00 14 a5 00 00 00 00 00 00 00
wl1271: SCAN: 00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wl1271: SCAN: 00000210: 00 00 00 00 00 00 00 00 00 00 00 00

root@freescale ~$ iwconfig
lo no wireless extensions.

usb0 no wireless extensions.

wlan0 IEEE 802.11abgn ESSID:"testingopen"
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

2014-03-25 01:48:15

by Jaya Kumar

[permalink] [raw]
Subject: Re: WL12xx support for WL1270 and ti-connectivity firmware

On Tue, Mar 25, 2014 at 2:32 AM, Luca Coelho <[email protected]> wrote:
>> The good news is that
>>the chip is detected and wl12xx/wl12xx_sdio loads. However, I haven't
>>been able to get it to get any scan results and can't associate with
>>any AP (even open).
>
> Usually this happens because you're not getting any interrupts. Are you sure the WLAN IRQ GPIO is correctly configured?
>
> There's nothing very useful in those kids
> It just shows that the scan command was issued but you never got the scan complete interrupt.
>

Hi Luca,

Thanks for your reply. I think the wlan irq gpio is configured. When I
look at /proc/interrupts, I see it increasing each time I try to scan.

I'll try to see how to switch to latest compat.

Thanks,
jaya

root@freescale ~$ modprobe wl12xx
root@freescale ~$ modprobe wl12xx_sdio
add wake up source irq 106
wl1271: loaded
wl1271: initialized
root@freescale ~$ cat /proc/interrupts
CPU0
34: 0 GIC sdma
51: 0 GIC snvs_rtc
55: 48913 GIC mmc0
56: 148 GIC mmc1
58: 81 GIC IMX-uart
63: 2 GIC spi_imx
68: 257 GIC imx-i2c
69: 0 GIC imx-i2c
75: 33 GIC usb_wakeup, fsl-usb2-udc
87: 675 GIC i.MX Timer Tick
112: 0 GIC imx2-wdt
114: 0 GIC imx-keypad
121: 0 GIC dvfs
130: 0 GIC pxp-irq
391: 0 GPIO wl1271
Err: 0
root@freescale ~$ ifconfig wlan0 up
wl1271: firmware booted (Rev 6.1.5.50.69)
root@freescale ~$ cat /proc/interrupts
CPU0
34: 0 GIC sdma
51: 0 GIC snvs_rtc
55: 49888 GIC mmc0
56: 6032 GIC mmc1
58: 121 GIC IMX-uart
63: 2 GIC spi_imx
68: 257 GIC imx-i2c
69: 0 GIC imx-i2c
75: 34 GIC usb_wakeup, fsl-usb2-udc
87: 732 GIC i.MX Timer Tick
112: 0 GIC imx2-wdt
114: 0 GIC imx-keypad
121: 0 GIC dvfs
130: 0 GIC pxp-irq
391: 1 GPIO wl1271
Err: 0
root@freescale ~$ iwlist wlan0 scan
wlan0 No scan results

root@freescale ~$ iw
-sh: iw: command not found
root@freescale ~$ cat /proc/interrupts
CPU0
34: 0 GIC sdma
51: 0 GIC snvs_rtc
55: 60085 GIC mmc0
56: 6248 GIC mmc1
58: 176 GIC IMX-uart
63: 2 GIC spi_imx
68: 257 GIC imx-i2c
69: 0 GIC imx-i2c
75: 35 GIC usb_wakeup, fsl-usb2-udc
87: 806 GIC i.MX Timer Tick
112: 0 GIC imx2-wdt
114: 0 GIC imx-keypad
121: 0 GIC dvfs
130: 0 GIC pxp-irq
391: 7 GPIO wl1271
Err: 0

root@freescale ~$ iwlist wlan0 scan
wlan0 No scan results

root@freescale ~$ cat /proc/interrupts
CPU0
34: 0 GIC sdma
51: 0 GIC snvs_rtc
55: 64141 GIC mmc0
56: 6464 GIC mmc1
58: 246 GIC IMX-uart
63: 2 GIC spi_imx
68: 257 GIC imx-i2c
69: 0 GIC imx-i2c
75: 36 GIC usb_wakeup, fsl-usb2-udc
87: 930 GIC i.MX Timer Tick
112: 0 GIC imx2-wdt
114: 0 GIC imx-keypad
121: 0 GIC dvfs
130: 0 GIC pxp-irq
391: 13 GPIO wl1271
Err: 0