PCI 88W9098 - Interface doesn't support scanning : Operation not supported

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PCI 88W9098 - Interface doesn't support scanning : Operation not supported

1,764 次查看
kbpanchal05
Contributor I

Hello NXP TechSupport,

I am using PCIE-WLAN-UART-BT-9098-U16-X86-17.68.1.p81-17.26.1.p81-MXM5X17277_V0V1-MGPL.zip package.

After loading the driver sometimes I am facing below error on wlp5s0f0 or wlp5s0f1

Error

------------------

$ ifconfig wlp5s0f0 up

$ ifconfig wlp5s0f1 up

$ iwlist wlp5s0f0 scan | grep SSID

wlp5s0f0 Interface doesn't support scanning : Operation not supported

OR 

$ iwlist wlp5s0f1 scan | grep SSID

wlp5s0f1 Interface doesn't support scanning : Operation not supported

------------------

Also mlan0 OR uap0  interfaces availability is not consistent. 

Then after retying unloading and reloading Driver few times fixes the issue.

What is the possible root cause for such random behavior ?  

Kalpesh

------------------------------------------------------------------------------------------

Linux Driver Unload/Load log

-----------------------------------------

wlan: Unloading MWLAN driver
Free module params
Free module params
wlan: Driver unloaded
wlan: Loading MWLAN driver
Attach moal handle ops, card interface type: 0x206
PCIE9098: init module param from usr cfg
card_type: PCIE9098, config block: 0
cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode = 7
ps_mode = 2
auto_ds = 2
fw_name=nxp/pcieuart9098_combo_v1.bin
rx_work=1 cpu_num=4
Request firmware: nxp/pcieuart9098_combo_v1.bin
WLAN FW is active
wlan: version = PCIE9098--17.68.1.p81-MXM5X17277-GPL-(FP68)
Attach moal handle ops, card interface type: 0x206
PCIE9098: init module param from usr cfg
card_type: PCIE9098, config block: 1
cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode = 7
ps_mode = 2
auto_ds = 2
fw_name=nxp/pcieuart9098_combo_v1.bin
rx_work=1 cpu_num=4
Request firmware: nxp/pcieuart9098_combo_v1.bin
WLAN FW is active
wlan: version = PCIE9098--17.68.1.p81-MXM5X17277-GPL-(FP68)
wlan: Driver loaded successfully

 

0 项奖励
10 回复数

1,725 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

OK! Thanks!@kbpanchal05 ,

 

Let us try to add interface name when loading driver.

attachment is configruation file for loading driver, all parameters for loading driver are in it. you can copy it to /lib/firmware/nxp, and use it like below:

===========Loading 9098 driver======

# insmod mlan.ko

# insmod moal.ko mod_para=nxp/wifi_mod_para.conf

================================

Then run ifconfig -a to check interface name.

---For MAC0: WiFi 6  802.11ax

Station is  : mlan0

AP is : uap0

WiFi direct is : wfd0

---For MAC1 : WiFi 5  802.11ac

Station is  : mmlan0

AP is : muap0

WiFi direct is : mwfd0

 

Actually you can change their names to yours.

 

Regards,

weidong

 

 

 

 

0 项奖励

1,747 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @kbpanchal05 ,

 

Tell me the following information, please!

1. Linux kernel version.

2. your hardware platform.

3. logs after running ifconfig -a

4. logs after running lspci -k

5. your 9098 is a module designed by nxp partner or COB design on board?

 

Thanks!

Regards,

weidong

0 项奖励

1,715 次查看
kbpanchal05
Contributor I

Any feedback on this ?

0 项奖励

1,700 次查看
rtwheato
Contributor II

Kalpesh,

I believe you're getting the different interfaces loading for different functionality. 

In your wifi_mod_para.conf, or on the command line for your insmod command, you can add the argument:

 

drv_mode=1

 

And it will just set the device up for STA functionality, which should support scanning.

For different functionality you can use different bit settings.

Bit 0 : STA
Bit 1 : uAP
Bit 2 : WIFIDIRECT  

These can be combined for different modes, for example

1 : STA
2 : uAP
3 : STA + uAP
7 : STA + uAP + WIFIDIRECT

The default drv_mode is 7.

I believe you can also change the different mode settings while the driver is loaded, as such:

 

echo drv_mode=1 > /proc/mwlan/adapterX/config		// STA
echo drv_mode=2 > /proc/mwlan/adapterX/config		// uAP
echo drv_mode=3 > /proc/mwlan/adapterX/config		// STA+uAP
echo drv_mode=7 > /proc/mwlan/adapterX/config		// STA+uAP+WIFIDIRECT

 

Hope this helps,

-ryan

0 项奖励

1,688 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @rtwheato 

 

Thanks for your joining the discussion.

 

Regards,

weidong

0 项奖励

1,706 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @kbpanchal05 ,

 

Replied to you yesterday.

Didn't you see my answer ?

check it, please!

 

Regards,

weidong

0 项奖励

1,670 次查看
kbpanchal05
Contributor I

Hello weidong,

Thanks a lot for your reply.

Here is my conf and firmware on file system.

# ls -l /lib/firmware/nxp/*
 /lib/firmware/nxp/pcie9098_wlan_v1.bin
 /lib/firmware/nxp/pcieuart9098_combo_v1.bin
 /lib/firmware/nxp/uart9098_bt_v1.bin
 /lib/firmware/nxp/wifi_mod_para.conf

----------------------------------------------

PCIE9098_0 = {

cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode=7
ps_mode=2
auto_ds=2
fw_name=nxp/pcieuart9098_combo_v1.bin

}

---------------------------------------------------------------------------------

---------------------------------- 

echo "Starting WiFi"
# Load WiFi driver
modprobe moal mod_para=nxp/wifi_mod_para.conf
# Reload wireless regulatory.db
iw reg reload;
# Default set to US to use 5G channels allowed in USA
iw reg set US

---------------------------------- 

Thanks,

Kalpesh

0 项奖励

1,628 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @kbpanchal05 ,

 

9098 supports 2 MACs , in your wifi_mod_para.conf, there should be 2 9098 modes.

PCIE9098_0 = {

cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode=7
ps_mode=2
auto_ds=2
fw_name=nxp/pcieuart9098_combo_v1.bin

}

PCIE9098_1 = {

cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode=7
ps_mode=2
auto_ds=2
fw_name=nxp/pcieuart9098_combo_v1.bin

}

Actually if you don't specify sta_name/uap_name/wfd_name/ drv_mode in the config file, the follwing interfaces will be created by 9098 driver:

MAC0: mlan0 / uap0 / wfd0.

MAC1 : mmlan0 / muap0 / mwfd0.

BUT for your configration , the following interfaces will be created:

MAC0: mlan0 / uap0 / p2p0.    ( This is WiFi 6 , 802.11ax)

MAC1 : mmlan0 / muap0 / p2p1. (This is WiF 5 , 802.11ac)

 

So after loading driver,  if you run "ifconfig -a" , you will see above 6 interfaces of 9098 under linux.

So you should confirm if these interfaces are correct.

Then run the following commands to connect it to ROUTER or Access Point.

=====================

# wpa_passphrase SSID  PASSWORD >> /etc/wpa_supplicant.conf

# wpa_supplicant -d -B -i mlan0 -c /etc/wpa_supplicant.conf -Dnl80211

=====================

In order to verify if 9098 can access internet, you can ping 8.8.8.8 .

 

Regards,

weidong

0 项奖励

1,516 次查看
kbpanchal05
Contributor I

Hello weidong, 

sorry for the delay in reply. And Thank you so much for your response.

After debugging further more I tried with two different configuration

Case 1:  With wfd_name as wfd and mwfd

PCIE9098_0 = {
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=2
auto_ds=2
drv_mode=7
wfd_name=wfd
sta_name=mlan
uap_name=uap
host_mlme=1
mac_addr=00:50:43:20:12:34
fw_name=nxp/pcieuart9098_combo_v1.bin
}

PCIE9098_1 = {
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=2
auto_ds=2
drv_mode=7
wfd_name=mwfd
sta_name=mmlan
uap_name=muap
host_mlme=1
mac_addr=00:50:43:20:52:56
fw_name=nxp/pcieuart9098_combo_v1.bin
}

 Following interfaces are available with ifconfig -a command output

MAC0: mlan0 / uap0 / wfd0.  

MAC1 : mmlan0 / muap0 / mwfd0.

Case 2: With wfd_name as p2p in both MAC

PCIE9098_0 = {
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=2
auto_ds=2
drv_mode=7
wfd_name=p2p
sta_name=mlan
uap_name=uap
host_mlme=1
mac_addr=00:50:43:20:12:34
fw_name=nxp/pcieuart9098_combo_v1.bin
}

PCIE9098_1 = {
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=2
auto_ds=2
drv_mode=7
wfd_name=p2p
sta_name=mmlan
uap_name=muap
host_mlme=1
mac_addr=00:50:43:20:52:56
fw_name=nxp/pcieuart9098_combo_v1.bin
}

Following interfaces are available with ifconfig -a command output first time

MAC0:  wlp5s0f0/ uap0 / p2p0.  

MAC1 : wlp5s0f1 / muap0 / p2p1.

muap0: flags=4098<BROADCAST,MULTICAST> mtu 1500
p2p0: flags=4098<BROADCAST,MULTICAST> mtu 1500
p2p1: flags=4098<BROADCAST,MULTICAST> mtu 1500
uap0: flags=4098<BROADCAST,MULTICAST> mtu 1500
wlp5s0f0: flags=4098<BROADCAST,MULTICAST> mtu 1500
wlp5s0f1: flags=4098<BROADCAST,MULTICAST> mtu 1500

mlan0 and mmlan0 missing

- Reloaded driver and interfaces available with ifconfig -a command output second time

mlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
mmlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
muap0: flags=4098<BROADCAST,MULTICAST> mtu 1500
p2p0: flags=4098<BROADCAST,MULTICAST> mtu 1500
wlp5s0f0: flags=4098<BROADCAST,MULTICAST> mtu 1500
wlp5s0f1: flags=4098<BROADCAST,MULTICAST> mtu 1500

And also sometimes uap0/p2p1 is NOT created . So In that case I have to reload the driver.

What is the difference between p2p and  wfd / mwfd for wfd_name

Why it's affecting  uap0/maln0/mmlan0/p2p interface creations in Case-2 ?

Can I use Case-1 configuration for using WiFi-6 and WiFi-5 mode ?

Are MAC0 and MAC1 hard configured to WiFi 6 (802.11ax)  and WiF 5 (802.11ac) respectively on 88W9098 ? How can we verify that using command line ? 

Thanks,

Kalpesh

0 项奖励

1,388 次查看
kbpanchal005
Contributor I

Hello NXP Team,

Could you please provide your feedback on this ? 

Thanks,

Kalpesh

0 项奖励