[88W9098] radar detection not working (hostapd on restricted bands)

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

[88W9098] radar detection not working (hostapd on restricted bands)

Jump to solution
2,906 Views
martinetd
Contributor IV

Hello,

 

I am using a AW-XM458 wireless module sample (88W9098), which use this driver with PCIE9098, on an imx8mp-evk board with the 5.10.72-2.2.0 BSP (as per previous threads, adjusted to restore PCI behaviour on old soc; but this also happens without that PCI workaround patch on our production boards)

 

Running with the following hostapd.conf in Japan where band=52 requires radar detection fails to start as follow:

 

Configuration file: hostapd-test-dfs.conf
rfkill: Cannot open RFKILL contro[97961.833720] CMD_RESP: cmd 0xdd error, result=0x2
l device
uap0: interface state U[97961.839197] IOCTL failed: 000000005f04267c id=0x110000, sub_id=0x110001 action=1, status_code=0x2
NINITIALIZED->COUNTRY_UPDATE
uap[97961.850912] Fail to start radar detection
0: interface state COUNTRY_UPDATE->DFS
uap0: DFS-CAC-START freq=5260 chan=52 sec_chan=0, width=0, seg0=0, seg1=0, cac_time=60s
DFS start_dfs_cac() failed, -1
Interface initialization failed
uap0: interface state DFS->DISABLED
uap0: AP-DISABLED 
uap0: Unable to setup interface.
uap0: interface state DISABLED->DISABLED
uap0: AP-DISABLED 
uap0: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface uap0 wasn't started
nl80211: deinit ifname=uap0 disabled_11b_rates=0

 

 

Here is the hostapd.conf used, which is the example given to me earlier with ieee80211d/h enabled for dfs, and channel fixed:

 

root@imx8mpevk:~# cat hostapd-test-dfs.conf 
interface=uap0
hw_mode=a
channel=52
country_code=JP
ssid=NXP_Demo
auth_algs=1
ieee80211n=1
ieee80211d=1
ieee80211h=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=123456789

 

and the regulatory details:

 

root@imx8mpevk:~# iw reg get
global
country JP: DFS-JP
	(2402 - 2482 @ 40), (N/A, 20), (N/A)
	(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM
	(4910 - 4990 @ 40), (N/A, 23), (N/A)
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
	(5490 - 5710 @ 160), (N/A, 23), (0 ms), DFS
	(57000 - 66000 @ 2160), (N/A, 10), (N/A)
root@imx8mpevk:~# iw phy
Wiphy mwiphy1
...
	Band 2:
		Frequencies:
			* 5260 MHz [52] (20.0 dBm) (radar detection)

 

 

Is that a known issue?

I see nothing in the code that hints radar detection would not work, it looks like the request is sent to firmware but fails there.

Thank you,

Dominique

0 Kudos
1 Solution
2,894 Views
ocourson
NXP TechSupport
NXP TechSupport

Dear @martinetd 

If I am correct, you are using the Wifi SW included in i.MX Linux 5.10.72-2.2.0

So your exact SW version should be 17.92.5.p11-MM5X17283.p2

Please note that these generic Linux release (Feature Pack 92) do not include DFS feature.

DFS feature is only included in specific SW versions, which access is limited and restricted.

We will contact you directly to check if you are eligible to such specific SW release.

 

Regards,

Olivier

View solution in original post

4 Replies
2,895 Views
ocourson
NXP TechSupport
NXP TechSupport

Dear @martinetd 

If I am correct, you are using the Wifi SW included in i.MX Linux 5.10.72-2.2.0

So your exact SW version should be 17.92.5.p11-MM5X17283.p2

Please note that these generic Linux release (Feature Pack 92) do not include DFS feature.

DFS feature is only included in specific SW versions, which access is limited and restricted.

We will contact you directly to check if you are eligible to such specific SW release.

 

Regards,

Olivier

2,340 Views
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 and also facing the same error with x86-64 bit.

Could you please provide correct driver and firmware package or am I missing something.

Thanks,

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

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

# iw list

..........

Frequencies:
* 5180 MHz [36] (20.0 dBm) (no IR)
* 5200 MHz [40] (20.0 dBm) (no IR)
* 5220 MHz [44] (20.0 dBm) (no IR)
* 5240 MHz [48] (20.0 dBm) (no IR)
* 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
* 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
* 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
* 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
* 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
* 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
* 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
* 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
* 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
* 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
* 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
* 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
* 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
* 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
* 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
* 5720 MHz [144] (20.0 dBm) (no IR, radar detection)
* 5745 MHz [149] (20.0 dBm) (no IR)
* 5765 MHz [153] (20.0 dBm) (no IR)
* 5785 MHz [157] (20.0 dBm) (no IR)
* 5805 MHz [161] (20.0 dBm) (no IR)
* 5825 MHz [165] (20.0 dBm) (no IR)

# iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)

# iw reg set US
#
# iw reg get
global
country 00: DFS-UNSET
(2402 - 2472 @ 40), (6, 20), (N/A)
(2457 - 2482 @ 20), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
(5170 - 5250 @ 80), (6, 20), (N/A), AUTO-BW, PASSIVE-SCAN
(5250 - 5330 @ 80), (6, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
(5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
(5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
(57240 - 63720 @ 2160), (N/A, 0), (N/A)

#

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

cat hostapd.conf

hw_mode=a
channel=0
ssid=myap
wpa_passphrase=myap_pass
interface=uap0
bridge=br0
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
driver=nl80211
country_code=US
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
disassoc_low_ack=1
preamble=1
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
ieee80211ac=1
ieee80211ax=1
ieee80211n=1
ieee80211d=1
ieee80211h=1
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

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

# hostapd hostapd.conf    # with ieee80211h=1
uap0: interface state UNINITIALIZED->COUNTRY_UPDATE
ACS: Automatic channel selection started, this may take a bit
uap0: interface state COUNTRY_UPDATE->ACS
uap0: ACS-STARTED
uap0: ACS-COMPLETED freq=5260 channel=52
uap0: interface state ACS->DFS
uap0: DFS-CAC-START freq=5260 chan=52 sec_chan=0, width=0, seg0=52, seg1=0, cac_time=60s
DFS start_dfs_cac() failed, -1
Interface initialization failed
uap0: interface state DFS->DISABLED
uap0: AP-DISABLED
ACS: Possibly channel configuration is invalid, please report this along with your config file.
ACS: Failed to start
uap0: AP-DISABLED
hostapd_free_hapd_data: Interface uap0 wasn't started
nl80211: deinit ifname=uap0 disabled_11b_rates=0
uap0: interface state DISABLED->DISABLED
uap0: interface state DISABLED->DISABLED
uap0: AP-DISABLED
uap0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface uap0 wasn't started

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

# hostapd hostapd.conf     #With option ieee80211h=0
uap0: interface state UNINITIALIZED->COUNTRY_UPDATE
ACS: Automatic channel selection started, this may take a bit
ACS: No available channels found
uap0: IEEE 802.11 Configured channel (0) or frequency (0) (secondary_channel=0) not found from the channel list of the current mode (2) IEEE 802.11a
uap0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
uap0: interface state COUNTRY_UPDATE->DISABLED
uap0: AP-DISABLED
uap0: interface state DISABLED->DISABLED
uap0: AP-DISABLED
uap0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface uap0 wasn't started
nl80211: deinit ifname=uap0 disabled_11b_rates=0

 

 

0 Kudos
2,319 Views
martinetd
Contributor IV

You seem to have a regulatory db problem like I had, try to look in dmesg if there's any error about it, or to have it reload (iw reg reload)

In my case the problem was that I had cfg80211 built-in but the regulatory.db file was not embedded in the kernel, and / was not mounted yet when cfg80211 tried to init the regdb. Mkaing cfg80211 a module to load later fixed it.

0 Kudos
2,264 Views
kbpanchal05
Contributor I

Yes, Actually CONFIG_CFG80211_INTERNAL_REGDB=y as no longer supported from 4.15 and I am using 5.15 Kernel. So I included wireless-regdb package to my filesystem and now it's allowing 5G hotspot after following two commands.

iw reg reload

iw reg set US

Thanks a lot

0 Kudos