[PATCH v2 0/6] nl80211: add support for control port tx status

Markus Theil <[email protected]> Wed, 10 Jun 2020 10:32:55 +0200
Newsgroups gmane.linux.drivers.hostap
Message-ID <[email protected]>
This patch series adds support for ctrl port tx status over nl80211.
With this series, a clean separation between mgmt+ctrl (over nl80211)
and in-kernel data path is possible for the first time.

For each send control port frame, a cookie is returned in extended ack
data. Therefore, a custom ack handler argument for send_and_recv is introduced.
Afterwards, this is used by tx control port to plug in a cookie handler for
netlink acks.

When the kernel returns a tx status notification, the same event, as with
socket tx status support is triggered. In the future, it is possible to
compare only cookies on send/tx report if desired so.

v2: mostly incorporated feedback from Johannes Berg
* reorder patches
* split ext ack handler and ack handler usage

Markus Theil (6):
  nl80211: add custom ack handler to send_and_recv
  nl80211: handle control port tx status events over nl80211
  nl80211: use control port tx (status) in AP mode if possible
  nl80211: print tx cookie value for ctrl port tx
  nl80211: add ack handler for extack cookies
  nl80211: use ext ack handler for tx ctrl port

 src/drivers/driver.h               |   4 +-
 src/drivers/driver_nl80211.c       | 342 +++++++++++++++++++----------
 src/drivers/driver_nl80211.h       |   4 +-
 src/drivers/driver_nl80211_capa.c  |  25 ++-
 src/drivers/driver_nl80211_event.c |  29 +++
 src/drivers/driver_nl80211_scan.c  |  24 +-
 6 files changed, 288 insertions(+), 140 deletions(-)

-- 
2.27.0