Issue with USB8997 Wi-Fi Module: No wlan Interface After Driver and Firmware Load

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

Issue with USB8997 Wi-Fi Module: No wlan Interface After Driver and Firmware Load

Jump to solution
2,261 Views
rikins
Contributor III

Hi NXP Support Team,

I'm currently facing an issue with the NXP USB8997 Wi-Fi module. After loading the necessary drivers (mlan.ko and usb8997.ko) and firmware (usb8997_wlan_v4.bin), the driver appears to load successfully, but no wlan interface is shown in the output of ifconfig. Below are the details of the steps I followed and the logs that I gathered:

Steps Taken:

  1. Loaded the mlan.ko driver:
     insmod mlan.ko

  2. Loaded the usb8997.ko driver with the following parameters:
    insmod usb8997.ko fw_name=usb8997_wlan_v4.bin drv_mode=7 cfg80211_wext=0xf wfd_name=p2p max_vir_bss=1 (also tried with drv_mode2, 3, and, 5)
  3. I have both usb8997_wlan_v4.bin and usbusb8997_combo_v4.bin firmware files and  the required kernel modules (mlan.ko, usb8997.ko).

  4. Checked dmesg logs after loading the drivers:

    wlan: Loading MWLAN driver
    wlan: Register to Bus Driver...
    USB probe: idVendor=1286 idProduct=2052 bInterfaceNumber=0
    VID/PID = 1286/2052, Boot2 version = 4000
    Attach moal handle ops, card interface type: 0x404
    No module param cfg file specified
    rx_work=0 cpu_num=1
    Enable moal_recv_amsdu_packet
    Attach mlan adapter operations.card_type is 0x404.
    Request firmware: usb8997_wlan_v4.bin
    fw_dnld: 418420 bytes downloaded
    usbcore: registered new interface driver usbxxx
    wlan: Register to Bus Driver Done
    wlan: Driver loaded successfully

Issue:

  • After successfully loading the drivers and firmware, I do not see the wlan interface in the output of ifconfig.

  • No errors or warnings appear in the logs after loading the drivers and firmware, but the interface is still missing.

Things I Have Tried:

  1. Checked if the drivers are loaded using lsmod and dmesg logs.

  2. Verified that the firmware file usb8997_wlan_v4.bin is present and being downloaded successfully.

  3. Ensured the correct parameters are passed to the usb8997.ko driver (drv_mode=7, cfg80211_wext=0xf, etc.).

  4. Tried restarting the system and reloading the modules to no avail.

 

Questions:

  1. Is there something missing in the driver configuration or firmware loading process?

  2. Could there be any additional configurations required for the Wi-Fi module to appear in ifconfig?

  3. Are there any other logs I should check to diagnose this issue further?

Any help or guidance on resolving this issue would be greatly appreciated.

Regards,
RS

 

0 Kudos
Reply
1 Solution
1,963 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @rikins ,

 

Try the following steps for your uAP application.

Before starting uap, please ensure connmand & networkmanager are not managing Wi-Fi interface.

# systemctl disable connman.service

systemctl stop NetworkManager.service

or

systemctl mask NetworkManager.service

1. hostapd-2g.conf  in /etc/

ctrl_interface=/var/run/hostapd
interface=uap0
driver=nl80211
ssid=8997-uap0_2G
hw_mode=g
channel=1
max_num_sta=10
auth_algs=1
beacon_int=100
dtim_period=1
wmm_enabled=1
ignore_broadcast_ssid=0
wpa_key_mgmt=WPA-PSK
wpa=2
rsn_pairwise=CCMP
wpa_passphrase=123456789
own_ip_addr=192.168.6.1

2. Configuring uap0 IP address

# ifconfig uap0 192.168.6.1 netmask 255.255.255.0 up

3. starting hostapd

# hostapd -d /etc/hostapd-2g.conf -B

 

Then use other PC Wi-Fi to search 8997-uap0_2G to see if it can be found.

 

Regards,

weidong

 

 

View solution in original post

0 Kudos
Reply
12 Replies
1,912 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @rikins ,

 

I think your current configurations are good.  

Sure, I know your module is USB 8997, you know PCIe is faster than USB, so we can take it to be a reference.

weidong_sun_0-1747290036452.png

especially your test is under office environment, so the throughput is good.

 

Thanks!

Regards,

weidong

0 Kudos
Reply
2,180 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @rikins ,

 

It seems that loading driver is successful.

if you run "ifconfig -a", you should see interfaces.

 

Thanks!
Regards,

weidong

 

 

0 Kudos
Reply
2,075 Views
rikins
Contributor III

Hi @weidong_sun ,

First of all, thanks for all your inputs, man. It was really helpful. 

Just to get you the context. We also had another thread where you suggested the NXP's secure USB8997 driver. [Issue ticket Link FYR]

Now replying to this Issue: It worked after I used the combo fw.

Current status:
1. Driver loading - Done
2. Getting the mlan interface - Done
3. Set the board in AP/STA mode - Done
4. Connect Ubuntu PC with the baord's SSID - Done
5. While checking the bandwidth using iperf3, it is continuously disconnecting. The connection is not stable. [Also, when we use the board as STA, we sometimes face a similar issue. ] - Not Working.

Can you please help me with this? Any insights from your side would be really helpful.

Below are the steps I am following. Please review it and LMK if I have overlooked anything.
1. Got the driver for USB8997. Built and compiled it for my board. (I have used the *GPL folder and added the *mlan related source in it, which got me mlan.ko and usb8997.ko. I have not added any app or other folders)
2. insmod mlan.ko
3. insmod usb8997.ko mod_para=wifi_mod_para.conf fw_name=usbusb8997_combo_v4.bin
4. wifi_mod_para.conf has below details:

USB8997 = {
        cfg80211_wext=0xf
        wfd_name=p2p
        max_vir_bss=1
        cal_data_cfg=none
        drv_mode=7
}

 5. ifconfig mlan0 192.168.2.1 netmask 255.255.255.0
6. route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
7. dnsmasq -C dnsmasq.conf

dnsmasq.conf has below content:

interface=mlan0
dhcp-range=192.168.2.3,192.168.2.230,12h​

8. hostapd -d hostapd_2ghz.conf -B

 

hostapd_2ghz.conf content is as below:

# 802.11b/g/n with WPA2-PSK

# the interface used by the AP
interface=mlan0
# "g" simply means 2.4GHz band
hw_mode=g
# the channel to use
channel=10
# limit the frequencies used to those allowed in the country
ieee80211d=1
# the country code
country_code=US
# 802.11n support
ieee80211n=1
# QoS support, also required for full speed on 802.11n/ac/ax
wmm_enabled=1

# the name of the AP
ssid=<name>
# 1=wpa, 2=wep, 3=both
auth_algs=1
# WPA2 only
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=<pass>

#1 - only open system authentication
#2 - both open system authentication and shared key authentication
auth_algs=2

 

[Below are all the logs which I have came accross]

1. After doing all this above steps, when the device was connect to my board ssid and I started iperf3 I got the below prints:

                                                                                                               
wlan: UAP/GO add peer station, address =ea:XX:XX:XX:ab:41                                                                                                 
wlan: HostMlme mlan0 send assoc/reassoc resp                                 
wlan: deauth station ea:XX:XX:XX:ab:41                                       
wlan: UAP/GO add peer station, address =ea:XX:XX:XX:ab:41                                                                                                 
wlan: HostMlme mlan0 send assoc/reassoc resp                                 
wlan: deauth station ea:XX:XX:XX:ab:41                                       
wlan: UAP/GO add peer station, address =ea:XX:XX:XX:ab:41                                                                                                 
wlan: HostMlme mlan0 send assoc/reassoc resp                                 
wlan: deauth station ea:XX:XX:XX:ab:41                                       

#                                                                            
# iperf3 -c 192.168.2.30                                                     
Connecting to host 192.168.2.30, port 5201                                   
[  4] local 192.168.2.1 port 35222 connected to 192.168.2.30 port 5201                                                                                    
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd                                                                                          
[  4]   0.00-1.00   sec  28.3 KBytes   231 Kbits/sec    2   1.41 KBytes                                                                                   
[  4]   1.00-2.00   sec  87.7 KBytes   719 Kbits/sec   11   14.1 KBytes                                                                                   
Card is removed: -71                                                         
Card is removed: -71                                                         
Card is removed: -104                                                        
Card is removed: -104                                                        
Card is removed: -104                                                        
Card is removed: -104                                                        
Card is removed: -104                                                        
Block  woal_cfg80211_del_beacon in abnormal driver state                                                                                                  
woal_close: woal_disconnect failed                                           
[  4]   2.00-3.01   sec   324 KBytes  2.63 Mbits/sec    0   29.7 KBytes                                                                                   
Fail to get ap channel                                                       
USB: unregister device                                                       
Free module params                                                           
[  4]   3.01-4.00   sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes                                                                                     
USB probe: idVendor=1286 idProduct=2052 bInterfaceNumber=0                                                                                                
VID/PID = 1286/2052, Boot2 version = 4000                                    
Attach moal handle ops, card interface type: 0x404                           
USB8997: init module param from usr cfg                                      
card_type: USB8997, config block: 0                                          
cfg80211_wext=0xf                                                            
wfd_name=p2p                                                                 
max_vir_bss=1                                                                
cal_data_cfg=none                                                            
drv_mode = 7                                                                 
rx_work=0 cpu_num=1                                                          
Request firmware: usbusb8997_combo_v4.bin                                    
[  4]   4.00-5.00   sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes                                                                                     
USB: unregister device                                                       
Free module params                                                           
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes                                                                                     
USB probe: idVendor=1286 idProduct=204e bInterfaceNumber=0                                                                                                
VID/PID = 1286/204E, Boot2 version = 3201                                    
woal_usb_probe: invalid endpoint assignment                                  
USB probe: idVendor=1286 idProduct=204e bInterfaceNumber=0                                                                                                
VID/PID = 1286/204E, Boot2 version = 3201                                    
woal_usb_probe: invalid endpoint assignment                                  
USB probe: idVendor=1286 idProduct=204e bInterfaceNumber=0                                                                                                
VID/PID = 1286/204E, Boot2 version = 3201                                    
Attach moal handle ops, card interface type: 0x404                           
USB8997: init module param from usr cfg                                      
card_type: USB8997, config block: 0                                          
cfg80211_wext=0xf                                                            
wfd_name=p2p                                                                 
max_vir_bss=1                                                                
cal_data_cfg=none                                                            
drv_mode = 7                                                                 
rx_work=0 cpu_num=1                                                          
WLAN FW is active                                                            
Register NXP 802.11 Adapter mlan0                                            
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes                                                                                     
Register NXP 802.11 Adapter uap0                                             
Register NXP 802.11 Adapter p2p0                                             
wlan: version = USB8997---16.197.121.p1-MX5X16505.p7.2-(FP197)                                                                                            
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec    0   1.41 KBytes                



2. Relevant Kernel Logs During Failure (AP Mode + iperf3):

[  833.674061] usb 3-1: USB disconnect, device number 7
[  833.687637] mwifiex_usb 3-1:1.0: card is removed: -71
[  833.687641] mwifiex_usb 3-1:1.0: info: shutdown mwifiex...
[  834.085604] usb 3-1: new high-speed USB device number 8 using xhci_hcd
[  834.235672] usb 3-1: New USB device found, idVendor=1286, idProduct=204e, bcdDevice= 0.01
[  834.235681] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  834.235686] usb 3-1: Product: USB WLAN
[  834.235690] usb 3-1: Manufacturer: Marvell
[  834.235694] usb 3-1: SerialNumber: 000000000000
[  834.327309] mwifiex_usb 3-1:1.0: WLAN FW is active
[  834.421334] mwifiex_usb 3-1:1.0: CMD_RESP: cmd 0x103 error, result=0x1
[  834.421340] mwifiex_usb 3-1:1.0: mwifiex_process_cmdresp: cmd 0x8010 failed during reinit
[  834.421344] mwifiex_usb 3-1:1.0: info: mwifiex_init_fw complete

 

3. Extended Error Logs: Firmware Dump Failures & USB Resets

[ 945.120387] mwifiex_usb 3-1:1.0: CMD_RESP: cmd 0x20 error, result=0x1 [ 945.120393] mwifiex_usb 3-1:1.0: mwifiex_process_cmdresp: cmd 0x1020 failed during INIT
 
[ 945.565442] mwifiex_usb 3-1:1.0: info: trying to get firmware dump for reinit [ 945.565454] mwifiex_usb 3-1:1.0: info: firmware dump is not supported [ 945.565463] mwifiex_usb 3-1:1.0: info: shutdown mwifiex...
 
[ 947.589326] mwifiex_usb 3-1:1.0: wlan0: CMD_RESP: cmd 0xb1 error, result=0x1 [ 947.589332] mwifiex_usb 3-1:1.0: mwifiex_process_cmdresp: cmd 0x20b1 failed [ 947.589337] mwifiex_usb 3-1:1.0: wlan0: scan failed
 
[ 949.243824] usb 3-1: USB disconnect, device number 12 [ 949.243838] mwifiex_usb 3-1:1.0: card is removed: -108 [ 949.243843] mwifiex_usb 3-1:1.0: info: shutdown mwifiex...
[ 951.454882] usb 3-1: new high-speed USB device number 13 using xhci_hcd [ 951.604793] usb 3-1: New USB device found, idVendor=1286, idProduct=204e, bcdDevice= 0.01 [ 951.604796] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 951.604798] usb 3-1: Product: USB WLAN [ 951.604799] usb 3-1: Manufacturer: Marvell [ 951.604800] usb 3-1: SerialNumber: 0000000000000001 
0 Kudos
Reply
2,061 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @rikins ,

 

mlan0 is STA interface,

uap0 is uAP interface,

wfd0 is Wi-Fi direct interface.

Since you want to setup an AP using 8997, why not use uap0, but mlan0?

 

Regards,

weidong

0 Kudos
Reply
2,011 Views
rikins
Contributor III

Hi @weidong_sun ,

uap0 is uAP interface -
For uap0 - I am getting the same output behaviour.

Just to make sure we are on the same page, below are logs for uap0:

1. Ifconfig details

uap0      Link encap:Ethernet  HWaddr 9E:50:D1:E6:8A:B1  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


2. hostapd_2ghz.conf

# 802.11b/g/n with WPA2-PSK

# the interface used by the AP
interface=uap0
# "g" simply means 2.4GHz band
hw_mode=g
# the channel to use
channel=10
# limit the frequencies used to those allowed in the country
ieee80211d=1
# the country code
country_code=US
# 802.11n support
ieee80211n=1
# QoS support, also required for full speed on 802.11n/ac/ax
wmm_enabled=1

# the name of the AP
ssid=<ssid>
# 1=wpa, 2=wep, 3=both
auth_algs=1
# WPA2 only
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=<pass>

#1 - only open system authentication
#2 - both open system authentication and shared key authentication
auth_algs=2



3. Below are the error logs (we have faced the similar issue with mlan0)

Configuration file: hostapd_2ghz.conf                                                                                                                                                                                                                                                                                                                                                                                                                                                       nl80211: Supported cipher 00-0f-ac:1                                                           
nl80211: Supported cipher 00-0f-ac:5                                                                                                                                                                                                                                                                                                                                                                                                                                                        nl80211: Supported cipher 00-0f-ac:2                                                           
nl80211: Supported cipher 00-0f-ac:4                                                                                                                                                                                                                                                                                                                                                                                                                                                        nl80211: Supported cipher 00-14-72:1                                                           
nl80211: Supported cipher 00-0f-ac:6                                                                                                                                                                                                                                                                                                                                                                                                                                                        nl80211: Supported cipher 00-0f-ac:10                                                          
nl80211: Supports Probe Response offload in AP mode                                                                                                                                                                                                                                                                                                                                                                                                                                         nl80211: Using driver-based off-channel TX                                                     
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=11): 00 00 00 00 01 00 00 40 00 00 00                                                                                                     
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=11): 00 00 00 00 01 00 00 40 00 00 00                                                                                                
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=0                                                                                                                                                       
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4105                                                                                                                                                    
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=8                                                                                                                                                       
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=512                                                                                                                                                     
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=513                                                                                                                                                     
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=514                                                                                                                                                     
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5376                                                                                                                                                    
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=2                                                                                                                                                       
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5                                                                                                                                                       
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=256                                                                                                                                                     
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5126                                                                                                                                                    
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=5124                                                                                                                                                    
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4106                                                                                                                                                    
nl80211: Supported vendor command: vendor_id=0x5043 subcmd=4109                                                                                                                                                    
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=0                                                                                                                                                         
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=1                                                                                                                                                         
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=2                                                                                                                                                         
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=3                                                                                                                                                         
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=4                                                                                                                                                         
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=5377                                                                                                                                                      
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65537                                                                                                                                                     
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65538                                                                                                                                                     
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65540                                                                                                                                                     
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65541                                                                                                                                                     
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65542                                                                                                                                                     
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65543                                                                                                                                
nl80211: Supported vendor event: vendor_id=0x5043 subcmd=65544                                                                                                                                
nl80211: Use separate P2P group interface (driver advertised support)                                                                                         
nl80211: interface uap0 in phy mwiphy0                                                                                                                                                        
nl80211: Set mode ifindex 5 iftype 3 (AP)                                                                                                                                                     
nl80211: Setup AP(uap0) - device_ap_sme=0 use_monitor=0                                                                                                                                       
nl80211: Subscribe to mgmt frames with AP handle 0xa3018                                                               
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0xa3018 match=                                        
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0xa3018 match=                                    
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0xa3018 match=                                 
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0xa3018 match=                                    
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0xa3018 match=                                      
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0xa3018 match=                                   
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=04                                    
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=0501                                  
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=0504                                  
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=06                                    
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=08                                    
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=09                                                                                                           
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=0a                                    
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=11                                    
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xa3018 match=7f                                    
rfkill: Cannot open RFKILL control device                                                      
nl80211: RFKILL status not available                                                           
nl80211: Add own interface ifindex 5 (ifidx_reason -1)                                                                 
nl80211: if_indices[16]: 5(-1)                                                                                         
phy: mwiphy0                                                                                                           
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)                                                                     
uap0: interface state UNINITIALIZED->COUNTRY_UPDATE                                                                    
Previous country code 00, new country code US                                                                          
Continue interface setup after channel list update                                                                     
ctrl_iface not configured!                                                                                             
# wlan: uap0 Starting AP                                                                                               
wlan: uap0 AP started                                                                                                  
Set AC=3, txop=47 cwmin=3, cwmax=7 aifs=1                                                                              
Card is removed: -71                                                                                                   
Card is removed: -71                                                                                                   
Card is removed: -104                                                                                                  
Card is removed: -104                                                                                                  
Card is removed: -104                                                                                                  
Card is removed: -104                                                                                                  
Card is removed: -104                                                                                                  
IOCTL failed: c2564000 id=0x20000, sub_id=0x20015 action=2, status_code=0x80000007                                     
wlan: We don't support AP WMM parameter                                                                                
Set AC=2, txop=94 cwmin=7, cwmax=15 aifs=1                                                                             
wlan: We don't support AP WMM parameter                                                                                
Set AC=0, txop=0 cwmin=15, cwmax=63 aifs=3                                                                             
wlan: We don't support AP WMM parameter                                                                                
Set AC=1, txop=0 cwmin=15, cwmax=1023 aifs=7                                                                           
wlan: We don't support AP WMM parameter                                                                                
Block  woal_cfg80211_del_beacon in abnormal driver state                                                               
woal_close: woal_disconnect failed                                                                                     
Fail to get ap channel                                                                                                 
USB: unregister device                                                                                                 
Free module params                                                                                                     
USB probe: idVendor=1286 idProduct=2052 bInterfaceNumber=0                                                             
VID/PID = 1286/2052, Boot2 version = 4000                                                                              
Attach moal handle ops, card interface type: 0x404                                                                     
USB8997: init module param from usr cfg                                                                                
card_type: USB8997, config block: 0                                                                                    
cfg80211_wext=0xf                                                                                                      
wfd_name=p2p                                                          


PS: same drivers are loaded. (mlan.ko and usb8997.ko as said in the previous messages) - Loading step and configs are also the same as said previously.

Please lmk if you need any more details. which can help us solve this issue.

Looking forward to your response. Your help throughout is appreciated!!

Regards,
Rikin

0 Kudos
Reply
1,995 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @rikins ,

 

Could you tell me the following information?

Where did you get the 88W8997 USB driver?

-- The driver from github doesn't support 88W8997 USB.

-- Only way to get USB driver for 8997 is from NXP website.

https://www.nxp.com/products/wireless-connectivity/wi-fi-plus-bluetooth-plus-802-15-4/2-4-5-ghz-dual...

For example: this is the latest usb driver

NXP_L_USB-USB-8997-U16-X86-W8997-W16.197.121.p1-16.26.121.p1-MXM5X16505.p7.2_V4-GPL

If you don't have NDA & access rights , you can't access & download it.

 

Confirm it, please!

 

Thanks!

Regards,

weidong

0 Kudos
Reply
1,981 Views
rikins
Contributor III

Hi @weidong_sun ,

I confirm, I have the USB driver for 8997 from the NXP website

Name: NXP_L_USB-USB-8997-U16-X86-W8997-W16.197.121.p1-16.26.121.p1-MXM5X16505.p7.2_V4-GPL.

 

PS: I have used the USB-UAPSTA-8997-U16-X86-W16.197.121.p1-MXM5X16505.p7.2_V4-GPL-src folder and have added the mlan src from the USB-UAPSTA-8997-U16-X86-W16.197.121.p1-MXM5X16505.p7.2_V4-mlan-src. I have cross-compiled this for my custom toolchain (arch: ARM). This activity got me mlan.ko and usb8997.ko.

The steps and config that I've followed to load the drivers are said in the above message.

Please LMK if you want any more details from my side wrt to this issue.

Regards,
Rikin

0 Kudos
Reply
1,964 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @rikins ,

 

Try the following steps for your uAP application.

Before starting uap, please ensure connmand & networkmanager are not managing Wi-Fi interface.

# systemctl disable connman.service

systemctl stop NetworkManager.service

or

systemctl mask NetworkManager.service

1. hostapd-2g.conf  in /etc/

ctrl_interface=/var/run/hostapd
interface=uap0
driver=nl80211
ssid=8997-uap0_2G
hw_mode=g
channel=1
max_num_sta=10
auth_algs=1
beacon_int=100
dtim_period=1
wmm_enabled=1
ignore_broadcast_ssid=0
wpa_key_mgmt=WPA-PSK
wpa=2
rsn_pairwise=CCMP
wpa_passphrase=123456789
own_ip_addr=192.168.6.1

2. Configuring uap0 IP address

# ifconfig uap0 192.168.6.1 netmask 255.255.255.0 up

3. starting hostapd

# hostapd -d /etc/hostapd-2g.conf -B

 

Then use other PC Wi-Fi to search 8997-uap0_2G to see if it can be found.

 

Regards,

weidong

 

 

0 Kudos
Reply
1,921 Views
rikins
Contributor III

Hi @weidong_sun ,

Thanks, brother — it's working now!

Your insights and this configuration helped me get AP mode working successfully on the Vatics board with the Murata USB8997 module.

Initially, I was getting around 21 Mbps, but after tweaking a few settings, I’ve been able to push it to around 40 Mbps on 2.4 GHz. Still, that seems lower than what the module is theoretically capable of (as per the datasheet).

Here’s what I’ve done so far:

  • Enabled ieee80211n=1, ieee80211d=1, ieee80211h=1 in hostapd.conf

  • Used ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][RX-STBC1][TX-STBC][DSSS_CCK-40]

  • Enabled WMM (wmm_enabled=1)

  • Disable power save on the STA side: iw dev <iface> set power_save off

  • Ran iperf3 -c <AP_IP> -P 8 -t 50 to test multi-stream throughput (to simulate multiple clients and check max bandwidth)

FYR, below is the hostapd_2ghz.conf file content:

ctrl_interface=/var/run/hostapd
interface=uap0
driver=nl80211
ssid=8997-uap0_2G
hw_mode=g
channel=1
max_num_sta=10
auth_algs=1
beacon_int=100
dtim_period=1
wmm_enabled=1
ignore_broadcast_ssid=0

# Enable HT (802.11n)
ieee80211n=1
ieee80211d=1
country_code=IN
ieee80211h=1
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][RX-STBC1][TX-STBC][DSSS_CCK-40]

ap_max_inactivity=0

wpa_key_mgmt=WPA-PSK
wpa=2
rsn_pairwise=CCMP
wpa_passphrase=123456789
own_ip_addr=192.168.2.1

Would really appreciate it if you could review these settings and suggest further tweaks to improve throughput and reach closer to the module's rated performance.

Thanks again!

Regards,
Rikin

0 Kudos
Reply
1,917 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @rikins ,

 

I feel your test result seems no problem, because your test is under office environment, not Shielded Room. 

You can refer to the documents, see page 108, it is the throughput data of PCIE 8997. 

https://www.nxp.com/docs/en/release-note/RN00104.pdf

 

Thanks!

Regards,

weidong

0 Kudos
Reply
1,915 Views
rikins
Contributor III
Just to confirm once again:

I’m using USB 8997, and based on your feedback, these results (~40 Mbps) are acceptable given that it's tested in an office environment, not a shielded room — correct?

Also, my current hostapd_2ghz.conf setup looks good and doesn’t require further changes?

Kindly validate these two points so we can consider this thread resolved.

Thanks again!
Rikin
0 Kudos
Reply
1,904 Views
rikins
Contributor III

Hi @weidong_sun,

Thanks for the confirmation. It was great talking to you.

Regards,
Rikin

JFR, confirmation reply is pasted below.

I think your current configurations are good.  

Sure, I know your module is USB 8997, you know PCIe is faster than USB, so we can take it to be a reference.

rikins_1-1747290499719.png




especially your test is under office environment, so the throughput is good.




Thanks!

Regards,

weidong

 

0 Kudos
Reply