Connection issue with LBEE5CJ1XK-687 from Murata (iw416)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connection issue with LBEE5CJ1XK-687 from Murata (iw416)

1,024 Views
alxpert
Contributor I

Hi,

we developped a custom board with the LBEE5CJ1XK-687 module (iw416).

Our team is having lost connection issues with the module. It seems the module loses connection to the SSID and cannot find it back. Here is some information on our setup.

  • Signal quality is good. This is indoors and the router is nearby
  • In or application, we need to disable 5GHz. We limited the frequencies to 2.4GHz using line freq_list=2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 in our wpa_supplicant-mlan0.conf file.
  • We had a board with a connection issue, we logged onto it to get more information, and the scan process only returns SSIDs on 5GHz. It's like the module cannot see any 2.4GHz valid SSIDs (Figure 1).
  • We scanned with an identical board next to the first one and we're getting both 5GHz and 2.4GHz valid SSIDs (Figure 2)
  • We manually reseted the faulty module by cycling the PMIC_EN pin. After a reset, we can see the 2.4GHz again and the module connects automatically to the configured network.

We do not understand how this can happen and would like to know if you can provide any insight.

Here 2 screenshot showing the scan results in both condition.

only5g.jpeg

allfreq.jpeg

We have also tried disabling the 5Ghz using that dev_cap_mask but when we do so we don't detect ANY network when the problem occured.

Thank you,

Alex

0 Kudos
Reply
17 Replies

546 Views
alxpert
Contributor I

I've also noticed that when 2.4Ghz network disappears, my access point also disappears given that the 5Ghz is disable at driver level. It's like everything on the 2.4Ghz is down or not working anymore and the only way I can re-enable it is by resetting the modules.

0 Kudos
Reply

532 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

I don’t have a clear answer to why you can’t see the 2.4 networks.

Please try to use the same FW and driver I used in my test.

 

Please share with me the terminal output of your test (like in my test). I used NXP Linux BSP 5.15.71-2.2.0.

 

Did you make any modification regarding the TX power?


Regards,

Daniel.

0 Kudos
Reply

459 Views
alxpert
Contributor I

Hi Daniel,

I just updated my firmware to use the exact same combo file as you and I still got 0 network detected after ~1 hrs.

Also I've notice that you didn't changed the device capability like I did to remove any 5Ghz network. Can you try that ? Also can you give me some documentation about that device capability field (dev_cap_mask=0xffffdbff)

As for the tx_power question, I didn't change anything on the conf file for that.

Here's the log when that happened and also when the driver is loading. The interesting part is: wlan: EVENT: Link lost (reason 0x0) because after that I can detect network anymore. I assume that this is coming from the combo firmware? And right now the only way I can get out of this situation is by resetting the device!

[ 48.845690] wlan: Loading MWLAN driver
[ 48.931585] wlan: Register to Bus Driver...
[ 48.951323] vendor=0x02DF device=0x9159 class=0 function=1
[ 49.031609] Attach moal handle ops, card interface type: 0x108
[ 49.116612] SDIW416: init module param from usr cfg
[ 49.211345] card_type: SDIW416, config block: 0
[ 49.215945] cfg80211_wext=0xf
[ 49.218929] max_vir_bss=1
[ 49.301669] cal_data_cfg=none
[ 49.304694] ps_mode = 1
[ 49.307158] auto_ds = 1
[ 49.309624] host_mlme=enable
[ 49.401204] drv_mode = 3
[ 49.403798] fw_name=nxp/sdiouartiw416_combo_v0.bin
[ 49.470172] dev_cap_mask=-9217
[ 49.491285] SDIO: max_segs=128 max_seg_size=65535
[ 49.496049] rx_work=0 cpu_num=1
[ 49.499259] Attach mlan adapter operations.card_type is 0x108.
[ 49.618144] wlan: Enable TX SG mode
[ 49.646516] wlan: Enable RX SG mode
[ 49.687123] Request firmware: nxp/sdiouartiw416_combo_v0.bin
[ 50.798314] Wlan: FW download over, firmwarelen=534196 downloaded 534196
[ 52.091459] WLAN FW is active
[ 52.094482] on_time is 52083520255
[ 52.132530] fw_cap_info=0x187c4f03, dev_cap_mask=0xffffdbff
[ 52.138187] max_p2p_conn = 8, max_sta_conn = 8
[ 52.232075] Register NXP 802.11 Adapter mlan0
[ 52.271431] Register NXP 802.11 Adapter uap0
[ 52.275875] wlan: version = SDIW416---16.92.21.p55.3-MM5X16366.p5-GPL-(FP92)
[ 52.321104] Set REG 0x80002328: 0x13d57 slew_rate=3
[ 52.343443] wlan: Register to Bus Driver Done
[ 52.347842] wlan: Driver loaded successfully
[ 74.315665] uap0: Skip change virtual intf type on uap: from 3 to 2
[ 77.680666] wlan: mlan0 START SCAN
[ 79.245166] wlan: SCAN COMPLETED: scanned AP count=13

....

[15398.315542] wlan: SCAN COMPLETED: scanned AP count=8
[15402.578460] wlan: SCAN COMPLETED: scanned AP count=17
[15442.320571] wlan: SCAN COMPLETED: scanned AP count=17
[15506.306058] wlan: SCAN COMPLETED: scanned AP count=16
[15601.766421] wlan: SCAN COMPLETED: scanned AP count=1
[15606.741715] wlan: EVENT: Link lost (reason 0x0)
[15606.741930] wlan: Disconnected from 60:XX:XX:XX:81:12: Reason code 3
[15606.844470] wlan: mlan0 START SCAN
[15606.956621] wlan: SCAN COMPLETED: scanned AP count=0
[15607.199616] wlan: SCAN COMPLETED: scanned AP count=0
[15607.200005] bssid not find in scan list
[15607.702769] wlan: mlan0 START SCAN
[15609.268817] wlan: SCAN COMPLETED: scanned AP count=0
[15609.451746] wlan: SCAN COMPLETED: scanned AP count=0
[15609.452118] bssid not find in scan list
[15610.456026] wlan: mlan0 START SCAN
[15612.028569] wlan: SCAN COMPLETED: scanned AP count=0
[15612.162380] wlan: SCAN COMPLETED: scanned AP count=0
[15612.162770] bssid not find in scan list
[15617.166945] wlan: mlan0 START SCAN
[15618.738760] wlan: SCAN COMPLETED: scanned AP count=0
[15622.154780] wlan: mlan0 START SCAN
[15623.003404] IOCTL failed: 627851a6 id=0x10000, sub_id=0x10003 action=1, status_code=0x80000007
[15623.048227] wlan: SCAN COMPLETED: scanned AP count=0
[15624.054821] wlan: SCAN COMPLETED: scanned AP count=0
[15624.055171] bssid not find in scan list
[15634.059500] wlan: mlan0 START SCAN
[15635.628154] wlan: SCAN COMPLETED: scanned AP count=0
[15640.663078] wlan: mlan0 START SCAN
[15642.248196] wlan: SCAN COMPLETED: scanned AP count=0
[15647.286661] wlan: mlan0 START SCAN
[15648.854719] wlan: SCAN COMPLETED: scanned AP count=0
[15648.887569] wlan: sched scan start
[15649.077651] wlan: sched scan stop
[15649.157980] wlan: mlan0 START SCAN
[15650.705945] wlan: SCAN COMPLETED: scanned AP count=0
[15651.012027] wlan: mlan0 START SCAN
[15652.578083] wlan: SCAN COMPLETED: scanned AP count=0
[15655.064316] wlan: mlan0 START SCAN
[15656.635233] wlan: SCAN COMPLETED: scanned AP count=0
[15660.068473] wlan: mlan0 START SCAN
[15661.637629] wlan: SCAN COMPLETED: scanned AP count=0
[15667.063424] wlan: mlan0 START SCAN
[15668.638171] wlan: SCAN COMPLETED: scanned AP count=0
[15677.077257] wlan: mlan0 START SCAN
[15678.638436] wlan: SCAN COMPLETED: scanned AP count=0
[15691.061481] wlan: mlan0 START SCAN
[15692.627637] wlan: SCAN COMPLETED: scanned AP count=0
[15701.823898] wlan: SCAN COMPLETED: scanned AP count=0
[15706.875448] wlan: SCAN COMPLETED: scanned AP count=0
[15710.182288] wlan: SCAN COMPLETED: scanned AP count=0
[15711.073203] wlan: mlan0 START SCAN
[15712.630152] wlan: SCAN COMPLETED: scanned AP count=0

While searching for the driver I found few repo's (freescale, nxp with each a version of the linux-firmware. Which one is the one I should be using ? Can It be comming from the mlan moal driver ?

Alex

0 Kudos
Reply

415 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

I don’t think is the driver nor firmware since I used the same and it worked on my side.

 

Please share with me your wifi_mod_para.conf file.

 

Please find driver and firmware in the GitHub repositories. The driver is the same for all SoC’s and the firmware is specific to the chipset.

0 Kudos
Reply

377 Views
alxpert
Contributor I

Here's the content of our wifi_mod_para.conf below.

Can you give me the exact commit hash for both repository so I can make sure we are both using the same code ?

What can cause the firmware to stop detecting 2.4Ghz ? I know that we are using an murata device which is an integration of your chipset. Can it be in that integration ?

# Not matter how many spaces or tabs are inserted in a line,
# components and ending format must be exactly same as given
# example:
#
# <card_type>[_<block_id>] = {
# key=value
# }
#
# card_type : 8XXX           (mandatory)
# block_id : configuration block id          (optional )
# key : module parameter name
# value : value for module parameter
# for string value, no need to add ""
#
# card_type supported: 8887/8897/8997/8977/8987/9098
# block_id: support same chipset with
# different module parameter.
# For example to support mutiple SD8997 cards, usr can
# specify the configuration block id number [0 - 9], if not
# specified, it is taken as 0 by default.
#
# debug related module parameters could not be set via module
# configure file, ex. drvdbg could not be set in this file
#
# line started with "#" will be ignored
# refer to the USB8997_1 for parameters that could be set in
# this configuration file, and set the corresponding value
# according to your real needs
 
SDIW416={
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=1
auto_ds=1
host_mlme=1
drv_mode=3
fw_name=nxp/sdiouartiw416_combo_v0.bin
dev_cap_mask=0xffffdbff
}

 

0 Kudos
Reply

120 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Please accept my apologies for the late response.

 

Please share with me the file in which you limit the 2.4GHz frequencies. You mentioned that you were doing this by using freq_list in your wpa_supplicant-mlan0.conf. But in the one you shared with me, I don’t see that line. Are you limiting 2.4GHz networks with dev_cap_mask only?

 

Please share with me your terminal output (commands).

 

Could you please try with the following parameters? I understand you want to get rid of 5GHz networks by modifying dev_cap_mask, but I would like to see if with a “default” configuration you are able to see both bands. This is the one I tried.

SDIW416 = {
	cfg80211_wext=0xf
	max_vir_bss=1
	cal_data_cfg=none
	ps_mode=1
	auto_ds=1
	host_mlme=1
	fw_name=nxp/sdiouartiw416_combo_v0.bin
}

I understand you have a couple of boards, but I don’t quite understand the difference between them. Please confirm the following:

  • You have a board in which you are able to scan 2.4GHz only using dev_cap_mask=0xffffdbff (this is your goal).
  • You have another board (apparently identical) in which with the “good” board configuration you are not able to scan 2.4GHz networks, only 5GHz even using dev_cap_mask=0xffffdbff.

 

Regards,
Daniel.

0 Kudos
Reply

785 Views
Boured
Contributor I

What is lbee5cj1xk certification?

0 Kudos
Reply

780 Views
alxpert
Contributor I

What do you mean by that ? We are using the modules from Murata.

0 Kudos
Reply

608 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I tried using the combo firmware included in the BSP and it is working on my side. Could you please try it as well?

I am sharing my logs.

I used 1XK module.

imx6ul7d login: root
root@imx6ul7d:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[   31.692941] mlan: loading out-of-tree module taints kernel.
[   31.842952] wlan: Loading MWLAN driver
[   31.847172] wlan: Register to Bus Driver...
[   31.853640] vendor=0x02DF device=0x9159 class=0 function=1
[   31.860732] Attach moal handle ops, card interface type: 0x108
[   31.874910] SDIW416: init module param from usr cfg
[   31.880394] card_type: SDIW416, config block: 0
[   31.884975] cfg80211_wext=0xf
[   31.890754] max_vir_bss=1
[   31.893427] cal_data_cfg=none
[   31.896412] ps_mode = 1
[   31.901997] auto_ds = 1
[   31.904735] host_mlme=enable
[   31.909566] fw_name=nxp/sdiouartiw416_combo_v0.bin
[   31.914430] SDIO: max_segs=128 max_seg_size=65535
[   31.921088] rx_work=0 cpu_num=1
[   31.924310] Attach mlan adapter operations.card_type is 0x108.
[   31.932968] wlan: Enable TX SG mode
[   31.936495] wlan: Enable RX SG mode
[   31.948048] Request firmware: nxp/sdiouartiw416_combo_v0.bin
[   32.276390] Wlan: FW download over, firmwarelen=534196 downloaded 534196
[   33.568184] WLAN FW is active
[   33.571252] on_time is 33563633168
[   33.606456] fw_cap_info=0x187c4f03, dev_cap_mask=0xffffffff
[   33.612224] max_p2p_conn = 8, max_sta_conn = 8
[   33.664941] Register NXP 802.11 Adapter mlan0
[   33.712147] Register NXP 802.11 Adapter uap0
[   33.782431] Register NXP 802.11 Adapter wfd0
[   33.786810] wlan: version = SDIW416---16.92.21.p55.3-MM5X16366.p5-GPL-(FP92)
[   33.838272] Set REG 0x80002328: 0x13d57 slew_rate=3
[   33.878100] wlan: Register to Bus Driver Done
[   33.882501] wlan: Driver loaded successfully
root@imx6ul7d:~#
root@imx6ul7d:~# ifconfig mlan0 up
root@imx6ul7d:~# iwlist mlan0 scan | grep Freq
[   66.578969] wlan: SCAN COMPLETED: scanned AP count=46
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.412 GHz (Channel 1)
                    Frequency=2.427 GHz (Channel 4)
                    Frequency=2.442 GHz (Channel 7)
                    Frequency=2.462 GHz (Channel 11)
                    Frequency=2.462 GHz (Channel 11)
                    Frequency=2.462 GHz (Channel 11)
                    Frequency=2.462 GHz (Channel 11)
                    Frequency=5.18 GHz (Channel 36)
                    Frequency=5.18 GHz (Channel 36)
                    Frequency=5.2 GHz (Channel 40)
                    Frequency=5.2 GHz (Channel 40)
                    Frequency=5.22 GHz (Channel 44)
                    Frequency=5.22 GHz (Channel 44)
                    Frequency=5.26 GHz (Channel 52)
                    Frequency=5.26 GHz (Channel 52)
                    Frequency=5.32 GHz (Channel 64)
                    Frequency=5.32 GHz (Channel 64)
                    Frequency=5.32 GHz (Channel 64)
                    Frequency=5.32 GHz (Channel 64)
                    Frequency=5.5 GHz (Channel 100)
                    Frequency=5.5 GHz (Channel 100)
                    Frequency=5.56 GHz (Channel 112)
                    Frequency=5.56 GHz (Channel 112)
                    Frequency=5.56 GHz (Channel 112)
                    Frequency=5.56 GHz (Channel 112)
                    Frequency=5.66 GHz (Channel 132)
                    Frequency=5.66 GHz (Channel 132)
                    Frequency=5.745 GHz
                    Frequency=5.745 GHz
                    Frequency=5.745 GHz
                    Frequency=5.745 GHz
                    Frequency=5.785 GHz
root@imx6ul7d:~# uname -r
5.15.71+g95448dd0dc9b
root@imx6ul7d:~#



Regards,

Daniel.

0 Kudos
Reply

994 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Could you please help me with the following details?

   - What host are you using?

   - What is your OS version?

   - What driver and FW version are you using?

Regards,

Daniel.

0 Kudos
Reply

981 Views
alxpert
Contributor I

Yes here's the requested information.

I'm running:

- Yocto Kirkstone with kernel 5.15.71 running on imx6ull platform (custom board)

- Driver is from:git://github.com/nxp-imx/mwifiex.git on branch lf-5.15.71_2.2.0 with commit d819b6d2669a20b17c562c85ab96a1f1ac36d953

- FW loaded is: nxp/sdioiw416_wlan_v0.bin cause we don't use bluetooth and the version is = SDIW416---16.92.21.p119.2-MM5X16366.p5-GPL-(FP92).

Here's some log when the modules is loading:

[ 49.825598] wlan: Loading MWLAN driver
[ 49.862585] wlan: Register to Bus Driver...
[ 49.903144] vendor=0x02DF device=0x9159 class=0 function=1
[ 49.914212] Attach moal handle ops, card interface type: 0x108
[ 50.010981] SDIW416: init module param from usr cfg
[ 50.052578] card_type: SDIW416, config block: 0
[ 50.059316] cfg80211_wext=0xf
[ 50.077735] max_vir_bss=1
[ 50.097277] cal_data_cfg=none
[ 50.100301] ps_mode = 1
[ 50.131602] auto_ds = 1
[ 50.134119] host_mlme=enable
[ 50.137017] drv_mode = 3
[ 50.139570] fw_name=nxp/sdioiw416_wlan_v0.bin
[ 50.191428] txpwrlimit_cfg=nxp/txpower_CA.bin
[ 50.195849] dev_cap_mask=-9217
[ 50.198978] SDIO: max_segs=128 max_seg_size=65535
[ 50.238431] rx_work=0 cpu_num=1
[ 50.244756] Attach mlan adapter operations.card_type is 0x108.
[ 50.274402] wlan: Enable TX SG mode
[ 50.277950] wlan: Enable RX SG mode
[ 50.347474] Request firmware: nxp/sdioiw416_wlan_v0.bin
[ 50.879517] Wlan: FW download over, firmwarelen=422664 downloaded 414292
[ 52.131684] WLAN FW is active
[ 52.134701] on_time is 52123470463
[ 52.138121] Download txpwrlimit_cfg=nxp/txpower_CA.bin
[ 52.583397] VDLL image: len=8372
[ 52.603030] fw_cap_info=0x187ccf03, dev_cap_mask=0xffffdbff
[ 52.603103] max_p2p_conn = 8, max_sta_conn = 8
[ 52.672615] Register NXP 802.11 Adapter mlan0
[ 52.695511] Register NXP 802.11 Adapter uap0
[ 52.695672] wlan: version = SDIW416---16.92.21.p119.2-MM5X16366.p5-GPL-(FP92)
[ 52.696206] Set REG 0x80002328: 0x13d57 slew_rate=3
[ 52.700523] wlan: Register to Bus Driver Done
[ 52.700553] wlan: Driver loaded successfully
[ 79.287102] uap0: Skip change virtual intf type on uap: from 3 to 2
[ 82.877560] wlan: mlan0 START SCAN

Need anything else ?

 

 

0 Kudos
Reply

960 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the information. I will take a look.

Please also share with me your wpa_supplicant-mlan0.conf file.

Regards,

Daniel.

0 Kudos
Reply

945 Views
alxpert
Contributor I

It seems that sometime even at power up I can detect any 2.4 networks. Like if it was a race condition somewhere.

Here is the wpa_supplicant-mlan0.conf file:

# This is a configuration file for wpa_supplicant using mlan0 interface
ap_scan=1
autoscan=periodic:10
disable_scan_offload=1
network={
ssid="Some SSID"
#psk="MyPassphrase"
psk=71f31a9aa8ada569be402501293a7b8aa8474f91bb66cd46aa30f18f4563210f
}

0 Kudos
Reply

925 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Thanks for the information. I will try it on my side.

0 Kudos
Reply

833 Views
alxpert
Contributor I

Do you have an idea of what can cause the device from detecting wifi network at some point or even at power up.

0 Kudos
Reply

721 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi @alxpert,

Could you please share with me a picture of your setup?

Also please share with me the whole terminal output of your test.

 

Regards,

Daniel.

0 Kudos
Reply

627 Views
alxpert
Contributor I

Hi,

Unfortunately  I can't share a picture of my setup but here's the dmesg when the problem occured.

Alex

0 Kudos
Reply