mbox series

[v3,0/4] Fix and unify wpa_supplicant AP/mesh frequency setup

Message ID 20200619123317.92081-1-markus.theil@tu-ilmenau.de
Headers show
Series Fix and unify wpa_supplicant AP/mesh frequency setup | expand

Message

Markus Theil June 19, 2020, 12:33 p.m. UTC
This series removes partially duplicated frequency setup code from mesh.c
and enhances wpa_supplicant_conf_ap_ht to perform at least the same config
settings.

wpa_supplicant_conf_ap_ht's call position in mesh.c is changed in order to have
effect before interface initialization.

20/40 coexistence for mesh networks is disabled, because it can not be decided
in a larger distributed setup, which is not booted at the same time, but with
some delay (network partitions will remain and not unify, see also longer comment
in the code of "mesh: fix channel init order, disable pri/sec channel switch").
Some form of partition detection and dynamic channel switching or distributed
consensus algorithm would be needed to resolve this issue, which IEEE 802.11
at this time not includes.

v3: fix non p2p builds and secondary idx setting

v2: call wpa_supplicant_conf_ap_ht in the right place for mesh

Markus Theil (4):
  HE/VHT: fix frequency setup with HE enabled
  mesh: fix channel init order, disable pri/sec channel switch
  wpa_supplicant: handle HT40 and mode downgrade in AP mode
  wpa_supplicant: fix frequency config for non p2p vht/he cases

 src/ap/dfs.c                  |  8 +--
 tests/hwsim/test_wpas_mesh.py | 50 ------------------
 wpa_supplicant/ap.c           | 98 +++++++++++++++++++++++++----------
 wpa_supplicant/mesh.c         | 49 ++++++++----------
 4 files changed, 97 insertions(+), 108 deletions(-)