[PATCH v5 00/25] Allow to use CTRL UDP for tests

Janusz Dziedzic janusz.dziedzic at tieto.com
Fri Mar 4 01:20:16 PST 2016


Allow to use CTRL UDP connections for tests purpose.
This part seems to be stable now.

Please review.

Janusz Dziedzic (25):
  wpa_supplicant: ctrl udp allow to set port
  wpa_supplicant: change attach/detach/send ctrl UDP functions
  wpa_supplicant: add monitor support for global ctrl UDP iface
  wpa_supplicant: add common ctrl iface files
  wpa_supplicant: ctrl unix use common functions
  hostapd: ctrl unix use common ctrl code
  ctrl unix: use sockaddr_storage
  hostap: add UDP support for ctrl iface
  hostapd: ctrl udp allow to set port
  wpa_supplicant: udp ctrl setup ctrl_interface
  wpa_supplicant: udp ctrl show when ITERFACES ctrl cmd
  hostapd: setup real ctrl_interface for UDP
  hostapd: add INTERFACES ctrl command
  hostapd: add global TERMINATE command
  wpa_cli: handle IFNAME correctly for global iface
  wpaspy: add support for UDP connection
  wpaspy: add debug support for Ctrl UDP class
  tests: wpasupplicant.py allow to use remote host
  tests: hostapd.py allow to use remote host
  wpaspy: add Host class
  tests: hostapd.py/wpasupplicant.py use host when execute
  tests: hostapd.py add get_ctrl_iface_port
  wpaspy: add terminate support
  tests: add terminate support for hostapd/wpa_supplicant
  tests: hostapd.py add params for required configurations

 hostapd/Makefile                 |  24 +-
 hostapd/ctrl_iface.c             | 529 ++++++++++++++++++++++++++++-----------
 hostapd/hostapd_cli.c            |   5 +
 hostapd/main.c                   |   7 +-
 src/ap/hostapd.c                 |   1 +
 src/ap/hostapd.h                 |   4 +-
 src/common/ctrl_iface_common.c   | 141 +++++++++++
 src/common/ctrl_iface_common.h   |  36 +++
 src/common/wpa_ctrl.c            |   2 +
 tests/hwsim/hostapd.py           | 138 ++++++++--
 tests/hwsim/wpasupplicant.py     |  82 ++++--
 wpa_supplicant/Makefile          |   1 +
 wpa_supplicant/ctrl_iface.c      |  21 +-
 wpa_supplicant/ctrl_iface_udp.c  | 146 ++++++++---
 wpa_supplicant/ctrl_iface_unix.c |  96 +------
 wpaspy/test.py                   |  23 +-
 wpaspy/wpaspy.py                 | 163 ++++++++++--
 17 files changed, 1091 insertions(+), 328 deletions(-)
 create mode 100644 src/common/ctrl_iface_common.c
 create mode 100644 src/common/ctrl_iface_common.h

-- 
1.9.1




More information about the Hostap mailing list