zephyr/modules
Fengming Ye fd0ac07a21 modules: hostap: remove zephyr wpa_msg socket pair
Background:
In DPP hostapd will put more than 1K bytes text in multiple
wpa_msg calls in one loop. This will drain hostapd monitor
socket pair and fail. Thus DPP connection will fail.

The monitor socket pair of wpa_supplicant and hostapd are not like
ctrl_iface socket pair, which are used for sending command to
hostap from other tasks. The monitor socket pair is used by wpa_msg
to send messages to attatched ctrl_iface monitors. But in zephyr case,
the monitor is hostap task itself.
This means hostap task is both the sender and receiver task.
So it writes all the wpa_msg text into FIFO and read it in next loop.
So there is risk of draining socket pair FIFO and missing msg.
And the reading socket loop can be omitted by directly handling msg
in wpa_msg_cb.

Linux uses monitor socket pair because hostap is a process and wpa_msg
does cross-process communication.
But zephyr hostap is used as module in the same binary with
zephyr kernel.
So the usage is different and we don't need to use socket pair to
notify ctrl_iface monitors.
As long as we don't do time-consuming process in zephyr_wpa_msg_cb,
it won't affect hostap task.
So the zephyr_wpa_msg_cb will only filter and restore interesting logs,
or raise mgmt events to wifi l2 mgmt task.

Fix:
Remove socket send flow in wpa_msg.
Directly filter and handle text in zephyr_wpa_msg_cb,
coding in zephyr repo.
This will save 2K RAM in supplicant case and 4K RAM in
supplicant & hostapd coex case, in current default hostap
socket pair config.
And this will save max 50% loops of hostap task.

Signed-off-by: Fengming Ye <frank.ye@nxp.com>
2025-04-24 10:38:03 +02:00
..
acpica modules: acpica: Fix CMakeLists.txt style 2023-11-08 15:12:02 +00:00
canopennode modules: canopennode: add rxmsg callback 2024-10-16 12:26:40 +02:00
cmsis arch: arm: Adding fault description for the cortex A7 2025-04-04 09:35:03 +02:00
cmsis-dsp cmake: compiler: Added property flag for optimization fast 2025-03-07 20:01:18 +01:00
cmsis-nn cmake: compiler: Added property flag for optimization fast 2025-03-07 20:01:18 +01:00
fatfs fs: fat_fs: fix spelling of "available" 2025-02-19 18:51:13 +01:00
hal_ambiq soc: arm: ambiq: apollo510: Add support for Apollo510 SoC 2025-04-21 20:04:31 +02:00
hal_bouffalolab drivers: serial: bouffalolab: Add bflb serial driver 2025-04-24 01:26:37 +02:00
hal_ethos_u modules: hal_ethos_u: Update to latest Ethos-U rev 2025-01-07 10:10:05 +01:00
hal_gigadevice modules: hal_gigadevice: use CONFIG_${ARCH} to select components 2024-01-10 15:05:54 +01:00
hal_infineon modules: hal_infineon: wifi-host-driver: Fixes cmake issues 2025-04-19 11:48:09 +02:00
hal_nordic modules: hal_nordic: bump regtool to 9.0.1 2025-04-09 09:03:00 +02:00
hal_nxp drivers: mipi_dbi: introduce NXP DCnano driver 2025-04-23 10:03:42 +02:00
hal_rpi_pico pico-sdk: Exclude the watchdog driver. 2025-03-07 19:47:41 +01:00
hal_silabs driver: sleeptimer: siwx917: Add siwx91x Sleeptimer driver 2025-04-03 06:24:54 +02:00
hal_st drivers/sensor: lis2dux12: add lis2duxs12 support 2024-12-27 19:34:46 +01:00
hal_tdk modules: hal_tdk: Add icp201xx support 2025-04-07 15:17:44 +02:00
hal_wch soc: Introduce Qingke V4C-based CH32V208 SoC 2025-03-14 14:39:30 +01:00
hostap modules: hostap: remove zephyr wpa_msg socket pair 2025-04-24 10:38:03 +02:00
liblc3 audio: liblc3: Fix global include path issue 2025-01-27 13:26:02 +01:00
littlefs fs: littlefs: add littlefs disk version selection 2024-12-17 20:55:51 +01:00
loramac-node lorawan: services: frag transport: prepare for pluggable decoder 2024-06-11 16:09:23 +03:00
lvgl modules: lvgl: Introduce Greyscale support 2025-03-12 14:05:14 +00:00
lz4 modules: lz4: add configurability 2024-11-22 22:46:59 +00:00
mbedtls modules: mbedtls: Expose MBEDTLS_RSA_C 2025-03-27 03:50:15 +01:00
nanopb modules: nanopb: Pull upstream fixes 2024-05-07 21:22:43 -04:00
nrf_wifi wifi: nrf_wifi: Add control pool specific APIs 2025-04-16 14:51:59 +02:00
openthread openthread: Separate OpenThread Kconfigs from L2 layer 2025-04-23 17:54:58 +02:00
percepio modules: percepio: Fix python executable name 2024-08-28 06:49:27 -04:00
segger cmake: segger: linker_script: handle section rtt_buff_data 2025-02-21 18:03:29 +00:00
tflite-micro modules: tflite-micro: update cmakelists 2025-02-13 06:39:17 +01:00
thrift net: lib: tls_credentials: Rename TLS_CREDENTIAL_SERVER_CERTIFICATE 2025-03-21 14:18:52 +01:00
trusted-firmware-a
trusted-firmware-m boards: nordic: Add initial support for nRF54L10 with TF-M 2025-04-14 20:05:17 +02:00
uoscore-uedhoc modules: Update uoscore-uedhoc revision to the latest 2025-02-13 20:12:18 +01:00
zcbor zcbor: Improve kconfig help text 2025-01-25 20:06:05 +01:00
Kconfig west: Introduce hal bouffalo lab 2025-04-24 01:26:37 +02:00
Kconfig.altera
Kconfig.atmel hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.chre modules: define few undefined but referenced symbols 2023-07-05 09:11:02 +02:00
Kconfig.cypress
Kconfig.eos_s3
Kconfig.esp32 modules: Kconfig: Provide default definitions for modules with blobs 2024-09-16 10:07:13 +02:00
Kconfig.infineon drivers: rtc: Add RTC driver for Infineon XMC4xxx devices 2024-09-04 09:54:52 +02:00
Kconfig.intel ish: add module Kconfig for Intel HAL 2023-07-28 17:49:09 +02:00
Kconfig.libmetal modules: libmetal: Options only when module is available 2023-10-24 10:53:24 +02:00
Kconfig.mcuboot mcuboot: Kconfig options for single app slot RAM loading mode 2025-04-08 16:12:33 +02:00
Kconfig.microchip soc: microchip: mec: Add new HAL based MEC5 family chips 2024-05-21 16:45:30 -04:00
Kconfig.nuvoton drivers: usb_c: numaker: support Nuvoton's M2L31 series 2024-08-01 12:38:53 +02:00
Kconfig.open-amp modules: openamp: Options only when module is available 2023-10-24 10:53:24 +02:00
Kconfig.picolibc modules: define few undefined but referenced symbols 2023-07-05 09:11:02 +02:00
Kconfig.renesas_fsp drivers: timer: Add ULPT timer for power management on Renesas RA MCUs 2025-04-03 08:41:08 +02:00
Kconfig.rust modules: Add placeholder for CONFIG_RUST 2024-09-26 17:46:27 -04:00
Kconfig.simplelink modules: simplelink: Add support for cc23x0 SoC 2025-02-04 11:56:05 +01:00
Kconfig.sof modules: sof: Options only when module is available 2023-10-24 10:53:24 +02:00
Kconfig.stm32 modules: stm32: add stm32n6 cube modules 2025-01-28 18:14:45 +01:00
Kconfig.sysbuild sysbuild: support Zephyr modules 2023-03-09 09:25:00 +01:00
Kconfig.syst modules: mipi-syst: support minimal C library 2023-06-17 07:31:26 -04:00
Kconfig.telink
Kconfig.tinycrypt TinyCrypt: Deprecate the library 2024-12-12 11:05:59 +01:00
Kconfig.vega hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.wurthelektronik
Kconfig.xtensa
modules.cmake