[PATCH 0/6] hostapd: add support for reconfiguring single BSSes

Raphaël Mélotte raphael.melotte at mind.be
Mon Aug 1 04:08:20 PDT 2022


Hello,

In some contexts (e.g. multi-ap) it can be needed to reconfigure some
BSSes, without disconnecting clients connected to other BSSes on the
same radio.

This series adds two ways to do that:

* The first one is when using a configuration file and using SIGHUP to
reload it. In that case, a new config_id parameter can be used to
decide whether to reload a BSS or not. If set (for example, to a hash
of all the BSS parameters, as it's done in OpenWrt), only the BSSes
that have a different config_id than in the previous configuration
will be reloaded. This change is adapted from an existing patch
authored by John Crispin in the OpenWrt repository ([1]).

* The second one is when using the SET and RELOAD commands to
reconfigure BSSes. For that case, a new RELOAD_BSS command is added to
reload only the current BSS.

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/services/hostapd/patches/700-wifi-reload.patch;h=c5ba631a0fc02f70714cb081b42fcf6cb9694450;hb=60fb4c92b6b0d1582d31e02167b90b424185f3a2

Raphaël Mélotte (6):
  hostapd: split hostapd_clear_old with hostapd_clear_old_bss
  hostapd: add config_id parameter
  tests: hwsim: write_hostapd_config: add iface_params and bss_params
  tests: hwsim: add test_ap_config_reload_on_sighup_config_id
  hostapd: add reload_bss
  tests: hwsim: add test_ap_reload_bss_only

 hostapd/config_file.c          |  3 +++
 hostapd/ctrl_iface.c           | 13 +++++++++
 hostapd/hostapd_cli.c          |  9 +++++++
 src/ap/ap_config.c             |  1 +
 src/ap/ap_config.h             |  1 +
 src/ap/hostapd.c               | 48 +++++++++++++++++++++++++---------
 src/ap/hostapd.h               |  1 +
 tests/hwsim/test_ap_config.py  | 46 +++++++++++++++++++++++++++++++-
 tests/hwsim/test_ap_dynamic.py | 23 ++++++++++++++++
 9 files changed, 131 insertions(+), 14 deletions(-)

-- 
2.37.1




More information about the Hostap mailing list