mbox series

[v5,00/17] mesh: enable DFS channels in mesh mode

Message ID cover.1527629631.git.peter.oh@bowerswilkins.com
Headers show
Series mesh: enable DFS channels in mesh mode | expand

Message

Peter Oh May 29, 2018, 9:39 p.m. UTC
From: Peter Oh <peter.oh@bowerswilkins.com>

This patchset enables DFS channels in mesh mode along with
CAC and channel switch.
It's been verified that works for non-dfs channels, dfs channels,
w/wo encryption (none and SAE), radar detection, channel switch,
and mesh re-association after channel switch.
Only left area to cover is in the case when multiple mesh points
detect radar at the same time, but they select different channels.
To cover the case I think we need a private patch for it,
because current 802.11s standard does not address it how to handle.

* v2: corrected wrong sender's email.
* v3: rebased on top of "mesh: Properly handle sae_password".
      fix compiler warnings on unused variables and parentheses.
* v4: updated "allow mesh to send channel switch request" patch
      based on "2dd5fbbff wpa_supplicant: Rename wpas_event_*".
      fix channel switch error during CAC.
* v5: some changes in "Allow DFS channels to be selected"
      moves to "consider mesh interface on dfs event handler" to
      group the similar changes together.

Peter Oh (17):
  mesh: factor out mesh join function
  mesh: factor out rsn initialization
  mesh: relocate RSN init function
  mesh: use setup completion callback to complete mesh join
  mesh: reflect country setting to mesh configuration
  mesh: inform kernel driver DFS handler in userspace
  mesh: apply channel attributes before running Mesh
  mesh: set interface type to mesh before setting interface
  mesh: set mesh center frequency
  mesh: consider mesh interface on dfs event handler
  mesh: Allow DFS channels to be selected if dfs is enabled
  mesh: allow mesh to send channel switch request
  mesh: do not allow pri/sec channel switch
  mesh: do not allow scan result to swap pri/sec
  mesh: do not use offchan mgmt tx on DFS
  mesh: fix channel switch error during CAC
  mesh: use right interface context to send DFS event messages

 src/ap/dfs.c                      |  27 ++--
 src/drivers/driver.h              |   1 +
 src/drivers/driver_nl80211.c      |  11 +-
 wpa_supplicant/ap.c               |  71 ++++++++---
 wpa_supplicant/events.c           |   7 +-
 wpa_supplicant/mesh.c             | 261 ++++++++++++++++++++++++--------------
 wpa_supplicant/mesh.h             |   2 +
 wpa_supplicant/wpa_supplicant.c   |  26 +++-
 wpa_supplicant/wpa_supplicant_i.h |   1 +
 9 files changed, 273 insertions(+), 134 deletions(-)