wifi w8997 dual ap issue

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

wifi w8997 dual ap issue

2,433 Views
changbaoma
Contributor III

Hi, NXP experts

 

I face a strange issue on w8997 dual ap.

 

w8997 driver & firmware are all the newest version, see below:

mwifiex driver version: mxm5x17283.p2 (branch remotes/origin/lf-5.10.72_2.2.0 of git http://source.codeaurora.org/external/imx/mwifiex) 

firmware  version: nxp/FwImage_8997_SD/sdiouart8997_combo_v4.bin(16.92.21.p11.1))(branch remotes/origin/lf-5.10.72_2.2.0 of git https://github.com/NXP/imx-firmware.git

 

I have change "./mlinux/moal_main.h:936:#define MAX_UAP_BSS /*1*/ 2 " to let mxm_wifiex to support second AP interface.

 

When sequential execution:

1. install wifi driver; (modprobe moal mod_para=nxp/wifi_mod_para.conf)

SD8997 = {
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=1
auto_ds=1
host_mlme=1
fw_name=nxp/sdiouart8997_combo_v4.bin
drv_mode=7
sta_name=wlan
max_uap_bss=2
}

2. start STA connect; to other AP (wpa_supplicant -i mlan0 -Dnl80211 –c /etc/wpa_supplicant.conf) 

3. start ap0 connect; (udhcpd /etc/udhcpd.conf; hostapd /etc/hostapd.conf &)

4. start ap1 connect; (udhcpd /etc/udhcpd2.conf; hostapd /etc/hostapd2.conf &)

   ---Then, my phone can success to connect to ap0 , and also ap1. (it is ok)

 

But when sequential execution (do not start STA):

1. install wifi driver; (modprobe moal mod_para=nxp/wifi_mod_para.conf, the same as above)

2. start ap0 connect (udhcpd /etc/udhcpd.conf; hostapd /etc/hostapd.conf &)

    --- At here my phone can success to connect to ap0.

3. start ap1 connect (udhcpd /etc/udhcpd2.conf; hostapd /etc/hostapd2.conf &)

    --- Then, i found my phone disconnet to ap0 , even i retry to connect my phone to ap0 againt and again, it alway fail with "Denied access to network. connection failed" on my phone.

    --- But my phone can always success to connect to ap1.

 

Can any one do the same test on imx EVK board for me?

How do dual with this issue?

Labels (2)
0 Kudos
7 Replies

2,402 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @changbaoma ,

>>How do mlan0/uap0/uap1/wfd0 share the 1 Radio( 1 MAC)?  Is there documentation for parsing?

you doens't undstand my explanations.

----Normally, 8997 like below;

mlan0---STA

uap0----Access point

wfd0----wifi direct.

BUT now you set it to be 2 Access Points.

uap0 : for No.1 Access point

uap1: for No.2 Access point

wfd0: wifi direct.

So no STA interface.  

FOR 88W8997, when using 2 uap interfaces, STA will not be used. 

SO FOR the "mlan0/uap0/uap1/wfd0" configuration doesn't exist !

Clearly ?

 

Have a good day!

Regards,

weidong

0 Kudos

2,369 Views
changbaoma
Contributor III

您好,卫东 @weidong_sun 

非常感谢您的耐心回复,但是我还是很疑惑,我验证的结论跟您的解析有些出入:

 

1、您说"FOR 88W8997, when using 2 uap interfaces, STA will not be used. ",但实际我测试来看STA+UAP0+UAP1是可以同时工作的。实验中我板子的W8997以STA方式连接办公室wifi上网,然后再分别开启两个热点UAP0和UAP1;然后可以成功使用两个手机分别连接热点UAP0和UAP1;这时我板子可以ping通baidu,同时与可以ping通下端的两个手机。

 

2、既然您说“88W8997 only support 1 Radio( 1 MAC),Radio1: wlan0/uap0/wfd0  (802.11ax supported)”,同时也说“when using 2 uap interfaces, STA will not be used. "”,那是不是说88W8997应该支持这一组合”Radio1: uap0/uap1/wfd0”? 但我实际测试的结论是启动UAP1后,原先已经启动好的UAP0就无法再连接了,见我问题原贴。

 

3、为何NXP官方的mwifiex driver源码默认是不支持第二个AP接口(UAP1)的? 包括 http://source.codeaurora.org/external/imx/mwifiex各分支驱动以及imx8m plus评估板自动的w8997 wifi驱动都没提及第二个AP接口的支持。是不是第二个AP接口有已知bug或者是未经严格测试验证,所以默认只支持单个UPA0。

 

0 Kudos

2,360 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @changbaoma ,

1、您说"FOR 88W8997, when using 2 uap interfaces, STA will not be used. ",但实际我测试来看STA+UAP0+UAP1是可以同时工作的。实验中我板子的W8997以STA方式连接办公室wifi上网,然后再分别开启两个热点UAP0和UAP1;然后可以成功使用两个手机分别连接热点UAP0和UAP1;这时我板子可以ping通baidu,同时与可以ping通下端的两个手机。

本来资源支持了3个接口wlan0/uap0/wfd0, 现在多出来一个uap1,您需要多测试一下,在运行时间上和数据量上安排一下比较缜密的测试,看看效果。我这里没有具体的数据给您支撑这个用法。

 

2、既然您说“88W8997 only support 1 Radio( 1 MAC),Radio1: wlan0/uap0/wfd0  (802.11ax supported)”,同时也说“when using 2 uap interfaces, STA will not be used. "”,那是不是说88W8997应该支持这一组合”Radio1: uap0/uap1/wfd0”? 但我实际测试的结论是启动UAP1后,原先已经启动好的UAP0就无法再连接了,见我问题原贴。

(1)uap0/uap1/wfd0

你可以这样,插上以太网,作为接入其他网络的物理接口,uap0和uap1如果配置OK,原则上不会冲突:连上一个,断一个的情况不该发生。

(2)wlan0/uap0/uap1

很多情况,wfd0不怎么用,所以不创建它。就用这2个有用的接口,对wifi资源上安全一些。

所以,建议您试试这样的配置。

让drv_mode = 3,试试情况,接口能不能出来。因为默认drv_mode=7.

3、为何NXP官方的mwifiex driver源码默认是不支持第二个AP接口(UAP1)的? 包括 http://source.codeaurora.org/external/imx/mwifiex各分支驱动以及imx8m plus评估板自动的w8997 wifi驱动都没提及第二个AP接口的支持。是不是第二个AP接口有已知bug或者是未经严格测试验证,所以默认只支持单个UPA0。

mwifiex driver,我们release时,只支持wlan0/uap0/wfd0接口,没有声明支持第二个uap。具体的原因,我这里也没有相关的信息。

 

Have a good day!

Regards,

weidong

 

 

0 Kudos

2,355 Views
changbaoma
Contributor III

您好! 卫东

新的反馈信息:

1、去掉wfd接口(即改为drv_mode=3)后,UAP0和UAP1好像可以同时使用了,不会出现之前连一个断一个的情况。

2、即使去掉wfd接口(即改为drv_mode=3),只保留wlan0/uap0/uap1. 这种模式下还会引起您说的“when using 2 uap interfaces, STA will not be used"的情况吗? STA+UAP0+UAP1尽快是可以同时工作(手机可以同时看到两个热点),但一般过不多久wifi驱动就会报异常,我不清是不是您说的资源不安全的情况,log见附件。

0 Kudos

2,343 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @changbaoma 

 

说实话,还是第一次遇到您的需求,在一个MAC上用2个UAP的情况。

看来只有一条路好走了:wlan0/uap0+uap1/wfd0。

但是我无法100%保证这样是可靠的,我找不到相应的测试数据支持它的可行性。

但是,你需要花点时间验证:wlan0对外连接是否长时间不断线,uap0/uap1对内连接长时间不断线。最好同时有一定的数据吞吐量。

 

weidong

0 Kudos

2,417 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @changbaoma ,

 

88W8997 only support 1 Radio( 1 MAC), if you use 2 uaps, it means that STA can't be used. it's resource has been taken up by second uap.

If dual ap is very important for your application, select 88W9098 (For example, AW-XM458MA-PUR modue, PCIE for wifi and uart for BT). 88W9098 chip supports 2 Radios, if you are using linux and 88W9098, interface will be:

-Radio1: wlan0/uap0/wfd0  (802.11ax supported)

-Radio2: mlan0/muap0/mwfd0 (802.11ac supported)

 

Have a good day!

regards,

weidong

0 Kudos

2,410 Views
changbaoma
Contributor III

Hello, @weidong_sun 

Thank you for your reply. 

 

88W8997 only support 1 Radio( 1 MAC), if you use 2 uaps, it means that STA can't be used. it's resource has been taken up by second uap.

--> 1Radio(1 MAC), do you mean only one interface of mlan0/uap0/uap1/wfd0 can work at each time?

      Actually mlan0+muap0 can work togeter on my W8997, also  mlan0+uap0+uap1( i have tested). But uap0+uap1 can't work togeter on my W8997.

     

How do mlan0/uap0/uap1/wfd0 share the 1 Radio( 1 MAC)?  Is there documentation for parsing?

What combinations of those interfaces can work together?

      

 

0 Kudos