Mwifiex crashes when creating an accesspoint

Hi,
I am using a iMX8 module to create Wifi accesspoints. Once a client successfully connected the AP is closed, reconfigured for another channel and reopened. However after some AP creation attemeps the mwifiex driver crashes like shown below. Any help would be much appreciated!

Apalis iMX8QP 2GB WB
Ixora V1.3A Carrier
Torizon 5.15.148-6.7.0-devel+git.94979392529c

[ 12.114996] mwifiex_pcie 0000:01:00.0: no quirks enabled
[ 12.115035] mwifiex_pcie 0000:01:00.0: enabling device (0000 → 0002)
[ 12.115235] mwifiex_pcie: PCI memory map Virt0: 00000000de324a37 PCI memory map Virt2: 0000000058caa307
[ 13.194181] mwifiex_pcie 0000:01:00.0: info: FW download over, size 639044 bytes
[ 14.063441] mwifiex_pcie 0000:01:00.0: WLAN FW is active
[ 14.091894] mwifiex_pcie 0000:01:00.0: Unknown api_id: 5
[ 14.112277] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.10.p159)
[ 14.112294] mwifiex_pcie 0000:01:00.0: driver_version = mwifiex 1.0 (16.68.10.p159)
[ 3526.296340] mwifiex_pcie 0000:01:00.0: mwifiex_cmd_timeout_func: Timeout cmd id = 0x4d, act = 0x1
[ 3526.296380] mwifiex_pcie 0000:01:00.0: num_data_h2c_failure = 0
[ 3526.296393] mwifiex_pcie 0000:01:00.0: num_cmd_h2c_failure = 0
[ 3526.296404] mwifiex_pcie 0000:01:00.0: is_cmd_timedout = 1
[ 3526.296415] mwifiex_pcie 0000:01:00.0: num_tx_timeout = 0
[ 3526.296426] mwifiex_pcie 0000:01:00.0: last_cmd_index = 4
[ 3526.296437] mwifiex_pcie 0000:01:00.0: last_cmd_id: 10 00 28 00 10 00 28 00 4d 00
[ 3526.296452] mwifiex_pcie 0000:01:00.0: last_cmd_act: 01 00 13 00 01 00 13 00 01 00
[ 3526.296465] mwifiex_pcie 0000:01:00.0: last_cmd_resp_index = 3
[ 3526.296476] mwifiex_pcie 0000:01:00.0: last_cmd_resp_id: 10 80 28 80 10 80 28 80 5e 80
[ 3526.296489] mwifiex_pcie 0000:01:00.0: last_event_index = 1
[ 3526.296500] mwifiex_pcie 0000:01:00.0: last_event: 0a 00 2e 00 0b 00 0a 00 0b 00
[ 3526.296512] mwifiex_pcie 0000:01:00.0: data_sent=0 cmd_sent=1
[ 3526.296524] mwifiex_pcie 0000:01:00.0: ps_mode=1 ps_state=0
[ 3526.296577] mwifiex_pcie 0000:01:00.0: set mac address failed: ret=-110
[ 3526.297397] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 3526.297414] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 3526.297622] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 3526.297635] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 3526.297667] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 3526.298114] mwifiex_pcie 0000:01:00.0: ===mwifiex driverinfo dump start===
[ 3526.298135] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.10.p159)
[ 3526.298185] mwifiex_pcie 0000:01:00.0: PCIE register dump start
[ 3526.298198] mwifiex_pcie 0000:01:00.0: pcie scratch register:
[ 3526.298218] mwifiex_pcie 0000:01:00.0: reg:0xcf0, value=0xfedcba00
[ 3526.298232] mwifiex_pcie 0000:01:00.0: PCIE register dump end
[ 3526.298359] mwifiex_pcie 0000:01:00.0: ===mwifiex driverinfo dump end===
[ 3526.298370] mwifiex_pcie 0000:01:00.0: == mwifiex firmware dump start ==
[ 3526.409749] mwifiex_pcie 0000:01:00.0: Ignore scan. Card removed or firmware in bad state
[ 3526.409784] mwifiex_pcie 0000:01:00.0: scan failed: -14
[ 3527.114753] mwifiex_pcie 0000:01:00.0: Ignore scan. Card removed or firmware in bad state
[ 3527.114789] mwifiex_pcie 0000:01:00.0: scan failed: -14
[ 3531.073621] mwifiex_pcie 0000:01:00.0: Ignore scan. Card removed or firmware in bad state
[ 3531.073657] mwifiex_pcie 0000:01:00.0: scan failed: -14
[ 3536.074822] mwifiex_pcie 0000:01:00.0: Ignore scan. Card removed or firmware in bad state
[ 3536.074857] mwifiex_pcie 0000:01:00.0: scan failed: -14
[ 3543.072866] mwifiex_pcie 0000:01:00.0: Ignore scan. Card removed or firmware in bad state
[ 3543.072901] mwifiex_pcie 0000:01:00.0: scan failed: -14
[ 3553.079766] mwifiex_pcie 0000:01:00.0: Ignore scan. Card removed or firmware in bad state
[ 3553.079801] mwifiex_pcie 0000:01:00.0: scan failed: -14
[ 3566.092849] mwifiex_pcie 0000:01:00.0: == mwifiex firmware dump end ==
[ 3566.094359] mwifiex_pcie 0000:01:00.0: == mwifiex dump information to /sys/class/devcoredump start
[ 3566.094599] mwifiex_pcie 0000:01:00.0: == mwifiex dump information to /sys/class/devcoredump end
[ 3566.094632] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 3566.094952] mwifiex_pcie 0000:01:00.0: info: shutdown mwifiex…
[ 3566.097862] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 3566.107908] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 3566.207097] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 3566.207133] mwifiex_pcie 0000:01:00.0: Failed to delete mgmt IEs!
[ 3566.207145] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 3566.207155] mwifiex_pcie 0000:01:00.0: Failed to stop the BSS
[ 3566.209201] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 3566.223228] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 3566.687068] mwifiex_pcie 0000:01:00.0: info: dnld wifi firmware from 174544 bytes
[ 3568.814331] mwifiex_pcie 0000:01:00.0: info: FW download over, size 639044 bytes
[ 3569.527081] mwifiex_pcie 0000:01:00.0: WLAN FW is active
[ 3569.555607] mwifiex_pcie 0000:01:00.0: Unknown api_id: 5
[ 3569.572260] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.10.p159)
[ 3569.572287] mwifiex_pcie 0000:01:00.0: driver_version = mwifiex 1.0 (16.68.10.p159)

Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Greetings,

The issue you’re encountering with the mwifiex driver crashing on your Apalis iMX8QP 2GB WB module when creating and reconfiguring WiFi access points appears to be related to the firmware or driver state not handling the rapid changes in configuration robustly. Here are several steps and considerations to help address or mitigate the issue:

  1. Firmware and Driver Update: Ensure that your system is running the latest firmware and drivers for the WiFi module. Firmware bugs and driver issues can often lead to instability, especially under non-standard operating conditions such as rapidly reconfiguring the access point settings.

  2. Serializing Access Point Operations: If your application logic allows, consider adding a delay between shutting down the access point and reconfiguring it for a new channel. This can give the firmware and driver stack more time to properly reset its state and may prevent the crash.

  3. Reviewing Driver Logs: Look into the kernel logs (dmesg) for any warnings or errors that precede the crash. These logs can provide clues on what the driver or firmware was doing right before the failure occurred. It’s possible that specific operations or sequences of operations are triggering a bug.

  4. Limiting Rapid Reconfigurations: If the use case permits, try to limit the frequency of access point reconfigurations. Continuous reconfiguration might be pushing the driver or hardware into an untested or unstable state.

  5. Debugging and Reporting: If the issue persists, consider enabling more detailed logging for the mwifiex driver if available. This could provide further insights into the failure. Reporting this issue to the maintainers of the mwifiex driver with detailed logs and steps to reproduce can also help in identifying and fixing the bug.

  6. Alternative Configurations: Evaluate if your application’s requirements could be met with less frequent changes to the WiFi access point settings or by using a fixed channel if the environment allows.

  7. Hardware Considerations: Although less likely, hardware issues or limitations could also contribute to such problems. Ensure that the WiFi module is properly seated in the carrier board and that there are no hardware faults.

Remember, continuous rapid reconfiguration of WiFi settings is a relatively uncommon use case, and the driver or firmware might not be optimized for such operations. If the problem is critical to your application and cannot be resolved through the above suggestions, consider reaching out to the community or forums where developers discuss similar issues for potential workarounds or patches.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Toradex’s Linux Images - How to connect to a Wi-Fi network | Toradex Developer Center.

Greetings @qojote,

Just to summarize. You create a bunch of access-points and after some attempts it stops working. Is that more or less right?

Some questions.

How are you exactly creating these access-points?

Is this issue predictably reproducible? Or is there some random elements to it? For example does it always fail on the 10th attempt, or something like that?

Finally, I assume restating the driver/system brings it back into a good state?

Best Regards,
Jeremias

Hi @jeremias.tx,
I am creating an accesspoint with hostapd (see config script below) on my iMX8. Once the AP is started a Raspberry Pi scans for this specific SSID and connects. As far as i remember the connection always works at the first time. Then the connection is closed and the AP is reconfigured for another channel. Starting the AP again does also work. Typically the next connection attempt causes this issue on the iMX8 site. I was never able to do that procedure more than three times before the mwifiex driver crashes.
Sometimes the driver reloads automatically - in that case my program can be rerun but it will trigger that issue again.

BR

interface=uap0
driver=nl80211
macaddr_acl=0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
channel=48
ssid=ktwifi_a_48
beacon_int=100
ieee80211h=0
ieee80211d=1
country_code=KT
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=1234trivial
hw_mode=a
logger_syslog=2
logger_stdout=-1
logger_stdout_level=0

Here is the content of the hostapd logfile.

uap0: AP-ENABLED
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.11: associated
uap0: STA 00:0e:8e:ab:13:8a WPA: event 1 notification
uap0: STA 00:0e:8e:ab:13:8a WPA: start authentication
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: unauthorizing port
uap0: STA 00:0e:8e:ab:13:8a WPA: sending 1/4 msg of 4-Way Handshake
uap0: STA 00:0e:8e:ab:13:8a WPA: EAPOL-Key timeout
uap0: STA 00:0e:8e:ab:13:8a WPA: sending 1/4 msg of 4-Way Handshake
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: did not Ack EAPOL-Key frame (unicast index=27)
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: did not Ack EAPOL-Key frame (unicast index=27)
uap0: STA 00:0e:8e:ab:13:8a WPA: EAPOL-Key timeout
uap0: STA 00:0e:8e:ab:13:8a WPA: sending 1/4 msg of 4-Way Handshake
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: did not Ack EAPOL-Key frame (unicast index=27)
uap0: STA 00:0e:8e:ab:13:8a WPA: EAPOL-Key timeout
uap0: STA 00:0e:8e:ab:13:8a WPA: sending 1/4 msg of 4-Way Handshake
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: did not Ack EAPOL-Key frame (unicast index=27)
uap0: STA 00:0e:8e:ab:13:8a WPA: EAPOL-Key timeout
uap0: STA 00:0e:8e:ab:13:8a WPA: PTKSTART: Retry limit 4 reached
uap0: STA 00:0e:8e:ab:13:8a WPA: event 3 notification
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: unauthorizing port
uap0: STA 00:0e:8e:ab:13:8a MLME: MLME-DEAUTHENTICATE.indication(00:0e:8e:ab:aa:cc, 15)
uap0: STA 00:0e:8e:ab:13:8a MLME: MLME-DELETEKEYS.request(00:0e:8e:ab:aa:cc)
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.11: disassociated
uap0: STA 00:0e:8e:ab:13:8a WPA: event 2 notification
uap0: STA 00:0e:8e:ab:13:8a IEEE 802.1X: unauthorizing port
uap0: interface state ENABLED->DISABLED
uap0: AP-DISABLED

and another dmesg printout. First three connections worked. Then it crashed.

[ 11.345929] mwifiex_pcie 0000:01:00.0: no quirks enabled
[ 11.345978] mwifiex_pcie 0000:01:00.0: enabling device (0000 → 0002)
[ 11.346253] mwifiex_pcie: PCI memory map Virt0: 00000000ce9481be PCI memory map Virt2: 00000000f0427236
[ 12.399592] mwifiex_pcie 0000:01:00.0: info: FW download over, size 639044 bytes
[ 13.263256] mwifiex_pcie 0000:01:00.0: WLAN FW is active
[ 13.291561] mwifiex_pcie 0000:01:00.0: Unknown api_id: 5
[ 13.306510] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.10.p159)
[ 13.306532] mwifiex_pcie 0000:01:00.0: driver_version = mwifiex 1.0 (16.68.10.p159)
[ 13.343720] mwifiex_pcie 0000:01:00.0: uap0: changing to 2 not supported
[ 16.247965] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 467.586557] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 487.620733] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 516.607300] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 559.622265] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 718.615188] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 839.749219] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 839.749607] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 879.609138] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 1254.354316] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 1260.703910] mwifiex_pcie 0000:01:00.0: uap0: changing to 2 not supported
[ 2368.168498] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb5 error, result=0x1
[ 2556.903735] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb5 error, result=0x1
[ 6519.552182] mwifiex_pcie 0000:01:00.0: mwifiex_cmd_timeout_func: Timeout cmd id = 0xb5, act = 0xe00
[ 6519.552224] mwifiex_pcie 0000:01:00.0: num_data_h2c_failure = 0
[ 6519.552237] mwifiex_pcie 0000:01:00.0: num_cmd_h2c_failure = 0
[ 6519.552249] mwifiex_pcie 0000:01:00.0: is_cmd_timedout = 1
[ 6519.552260] mwifiex_pcie 0000:01:00.0: num_tx_timeout = 0
[ 6519.552271] mwifiex_pcie 0000:01:00.0: last_cmd_index = 4
[ 6519.552282] mwifiex_pcie 0000:01:00.0: last_cmd_id: 5e 00 28 00 28 00 5e 00 b5 00
[ 6519.552297] mwifiex_pcie 0000:01:00.0: last_cmd_act: 01 00 13 00 13 00 01 00 00 0e
[ 6519.552309] mwifiex_pcie 0000:01:00.0: last_cmd_resp_index = 3
[ 6519.552321] mwifiex_pcie 0000:01:00.0: last_cmd_resp_id: 5e 80 28 80 28 80 5e 80 28 80
[ 6519.552333] mwifiex_pcie 0000:01:00.0: last_event_index = 1
[ 6519.552344] mwifiex_pcie 0000:01:00.0: last_event: 44 00 2d 00 0b 00 0a 00 2e 00
[ 6519.552356] mwifiex_pcie 0000:01:00.0: data_sent=1 cmd_sent=1
[ 6519.552369] mwifiex_pcie 0000:01:00.0: ps_mode=1 ps_state=0
[ 6519.553063] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 6519.553083] mwifiex_pcie 0000:01:00.0: deleting the crypto keys
[ 6519.553245] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 6519.553259] mwifiex_pcie 0000:01:00.0: deleting the crypto keys
[ 6519.553536] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 6519.553774] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 6519.553789] mwifiex_pcie 0000:01:00.0: deleting the crypto keys
[ 6519.553905] mwifiex_pcie 0000:01:00.0: ===mwifiex driverinfo dump start===
[ 6519.553926] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.10.p159)
[ 6519.553976] mwifiex_pcie 0000:01:00.0: PCIE register dump start
[ 6519.553988] mwifiex_pcie 0000:01:00.0: pcie scratch register:
[ 6519.554008] mwifiex_pcie 0000:01:00.0: reg:0xcf0, value=0xfedcba00
[ 6519.554021] mwifiex_pcie 0000:01:00.0: PCIE register dump end
[ 6519.554150] mwifiex_pcie 0000:01:00.0: ===mwifiex driverinfo dump end===
[ 6519.554161] mwifiex_pcie 0000:01:00.0: == mwifiex firmware dump start ==
[ 6524.558797] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 6559.411670] mwifiex_pcie 0000:01:00.0: == mwifiex firmware dump end ==
[ 6559.413194] mwifiex_pcie 0000:01:00.0: == mwifiex dump information to /sys/class/devcoredump start
[ 6559.416254] mwifiex_pcie 0000:01:00.0: == mwifiex dump information to /sys/class/devcoredump end
[ 6559.416291] mwifiex_pcie 0000:01:00.0: PREP_CMD: FW is in bad state
[ 6559.416544] mwifiex_pcie 0000:01:00.0: info: shutdown mwifiex…
[ 6559.416620] mwifiex: Have pending ack frames!
[ 6559.416641] mwifiex: Have pending ack frames!
[ 6559.416651] mwifiex: Have pending ack frames!
[ 6559.416658] mwifiex: Have pending ack frames!
[ 6559.416688] mwifiex_pcie 0000:01:00.0: rx_pending=0, tx_pending=1, cmd_pending=0
[ 6559.416882] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 6559.523382] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 6559.523419] mwifiex_pcie 0000:01:00.0: Failed to delete mgmt IEs!
[ 6559.523431] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 6559.523441] mwifiex_pcie 0000:01:00.0: Failed to stop the BSS
[ 6559.524891] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 6559.528333] mwifiex_pcie 0000:01:00.0: PREP_CMD: card is removed
[ 6559.873368] mwifiex_pcie 0000:01:00.0: info: dnld wifi firmware from 174544 bytes
[ 6561.998857] mwifiex_pcie 0000:01:00.0: info: FW download over, size 639044 bytes
[ 6562.713324] mwifiex_pcie 0000:01:00.0: WLAN FW is active
[ 6562.741804] mwifiex_pcie 0000:01:00.0: Unknown api_id: 5
[ 6562.760037] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.10.p159)
[ 6562.760065] mwifiex_pcie 0000:01:00.0: driver_version = mwifiex 1.0 (16.68.10.p159)
[ 6562.815179] mwifiex_pcie 0000:01:00.0: uap0: changing to 2 not supported
[ 6568.869404] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 6568.950041] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 6580.834326] mwifiex_pcie 0000:01:00.0: scan failed: -16
[ 7014.796858] ieee80211 phy2: mwifiex_cfg80211_sched_scan_start : Invalid Sched_scan parameters
[ 7042.935217] mwifiex_pcie 0000:01:00.0: uap0: changing to 2 not supported
[ 7105.758123] mwifiex: Have pending ack frames!
[ 7139.344271] mwifiex_pcie 0000:01:00.0: CMD_RESP: cmd 0xb5 error, result=0x1

Okay I spent some time trying to reproduce this on my own setup and I think I’ve done it at least once. Took me more connection attempts than the three times you described but nonetheless after several back and forth connection attempts it seems like I got the driver to crash with logs similar to what you shared.

In the end the hostapd.conf I was using wasn’t even that similar to yours:

interface=uap0
ssid=<WIFI_SSID>
hw_mode=g
channel=1
own_ip_addr=<IP_ADDR>
wpa=2
wpa_passphrase=<WIFI_PASSWORD>

Which tells me that your specific hostapd.conf isn’t causing the issue. It seems like the issue can just manifest due to repeated connection attempts within a short time frame. Let me report this internally and see what our team can come up with.

You may need to come up with a workaround of sorts in the meantime, as there is no telling how complex this issue may be and how long it will take to investigate and possibly fix. I suppose unloading and reloading the driver when a crash is detected would be the only practical workaround at the moment.

Best Regards,
Jeremias

Hi @jeremias.tx,
Thanks for your investigations. In the mean time i did some further testing. First of all it seems like that problem only occurs when using WPA2. And it seems to be more likely to trigger that issue when changing the channels during the connection attempts. I am looping channels 1-13 in standard “g” and the driver is crashing almost every time at the third connection attempt.
How can i recognize that crash?
BR

First of all it seems like that problem only occurs when using WPA2.

This does seem to be a possible factor or at least all my attempts before had WPA2 configured.

I am looping channels 1-13 in standard “g” and the driver is crashing almost every time at the third connection attempt.

I’m not completely sure if the changing of channels is required for this. As I said earlier it did take me more than 3 connection attempts to manifest a driver crash. At first I did what you said and changed my channel in hostapd.conf between attempts. But then, I just kept the channel the same and tried repeated connection attempts and that’s when the driver crash happened for me. Now it can still be possible that looping through channels as you did increases the chance of a crash. Hard to say though.

How can i recognize that crash?

Given the nature of this issue, probably the best that can be done at the moment is to have some kind of error detection by either parsing the logs for signs of the driver crash, or picking up on when the uap0 interface goes down. There might be a more sophisticated way to go about this, but this is just what comes to my mind at the moment.

Best Regards,
Jeremias

Hi. Is there by any chance some progress on this issue? BR

Hello @qojote,
Could you check if NetworkManager is trying to take control over the AP interface?

You can use this command:

nmcli device

Please make sure that the uap0 interface is unmanaged in NetworkManager.