Skip to content

net: wifi: Error log is seen during uAP switch to 2G's channel using ECSA when uAP started on 5G channels. #81123

@MaochenWang1

Description

@MaochenWang1

Describe the bug
Use NXP rd_rw621_bga board.
Error prints " wpa_supp: Failed to check if DFS is required; ret=-1" are seen during SAP switch to 2G's channel using ECSA when SAP started on 5G channels.

To Reproduce

  1. Load the build
  2. Start SAP in Channel 36:
    $ wifi ap enable -s AP_SSID -c 36
  3. Connect Ex-STA to APUT and Verify association using ping traffic
  4. Now request SAP to switch to CH6, warning prints
    $ nxp_wifi uap-set-ecsa-cfg 1 0 6 10 1
    wpa_supp: Failed to check if DFS is required; ret=-1

Expected behavior
ECSA should work fine without any error messages.

Impact
The root cause is that when SAP switch to 2.4G, its iface->current_mode is still about 5G, not updated. So the SAP state is not correct.

Logs and console output
$ nxp_wifi uap-set-ecsa-cfg 1 0 6 10 1
Command wlan-uap-set-ecsa-cfg
$ uap switch to channel 6 success!
[00:46:11.618,293] wpa_supp: ua: CTRL-EVENT-CHANNEL-SWITCH freq=2437 ht_enabled=1 ch_offset=0 ch_width=20 MHz cf1=2437 cf2=0 d0
[00:46:11.633,317] wpa_supp: ua: AP-CSA-FINISHED freq=2437 dfs=0
[00:46:11.642,514] wpa_supp: Failed to check if DFS is required; ret=-1

Metadata

Metadata

Labels

area: Wi-FiWi-FibugThe issue is a bug, or the PR is fixing a bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions