[PATCH 00/18] Various bugfixes and small improvements for debugging

Benjamin Berg benjamin at sipsolutions.net
Thu Oct 30 01:24:31 PDT 2025


From: Benjamin Berg <benjamin.berg at intel.com>

Hi,

We are finally updating our internal hostap tree to the latest upstream
version. These patches address the issues that I ran into which seem to
be applicable to upstream. Note that with some of the patches in the
series I have taken the approach of just fixing the immediate issue. In
those cases, I have added comments into the patch as we may want to
solve the underlying issues differently.

Benjamin

Benjamin Berg (18):
  AP: fix use after free in link reconfiguration
  nl80211: put nl_cb in error paths
  eloop: remove references before destroying socket table
  WNM: Clear the target BSS on reset
  int_array: Only iterate existing elements in equality check
  wpa_supplicant: define last_scan_freqs as int array
  tests: Fetch BSS from P2P device interface
  utils: Provide hexdump stubs as inline functions
  wpa_debug: use separate buffer for path and improve error checking
  tests: check for WPA_TRACE messages in hostapd log
  utils: Keep the last NOTE message as context for backtraces
  wpa_supplicant: Accept NOTE command on global socket
  tests: Issue TEST-START NOTE to hostapd instance
  tests: Issue TEST-START NOTE to extra wpa_suplicant instances
  P2P2: Handle identity ID consistently within files
  tests: add network to P2P device
  common: Fix definition of EHT_ML_EML_CAPA_RESERVED
  common: Use signed return value for ieee802_11_defrag_mle_subelem

 hostapd/ctrl_iface.c                 |  2 ++
 src/ap/ieee802_11_eht.c              |  2 +-
 src/common/ieee802_11_common.c       |  6 ++---
 src/common/ieee802_11_common.h       |  6 ++---
 src/common/ieee802_11_defs.h         |  2 +-
 src/drivers/driver_nl80211.c         |  2 ++
 src/utils/common.c                   |  2 +-
 src/utils/eloop.c                    |  1 +
 src/utils/trace.c                    | 34 +++++++++++++++++++++++++-
 src/utils/trace.h                    | 25 +++++++++++++++----
 src/utils/wpa_debug.c                | 23 ++++++++++--------
 src/utils/wpa_debug.h                | 36 +++++++++++++++++++++++-----
 tests/hwsim/run-tests.py             | 16 +++++++++++++
 tests/hwsim/test_eht.py              | 10 ++++++--
 tests/hwsim/test_p2p2.py             | 10 ++++----
 tests/hwsim/test_p2p_wifi_display.py |  3 ++-
 tests/hwsim/wpasupplicant.py         |  6 ++---
 wpa_supplicant/config_file.c         | 28 ++++++++++++++++++----
 wpa_supplicant/ctrl_iface.c          |  5 ++++
 wpa_supplicant/dpp_supplicant.c      |  9 +++----
 wpa_supplicant/events.c              |  7 +++---
 wpa_supplicant/wnm_sta.c             |  2 ++
 wpa_supplicant/wpa_supplicant_i.h    |  1 -
 23 files changed, 181 insertions(+), 57 deletions(-)

-- 
2.51.0




More information about the Hostap mailing list