From patchwork Thu May 28 08:46:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Theil X-Patchwork-Id: 1299564 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=tu-ilmenau.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=btJP+WsM; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49XhC30PnFz9sSJ for ; Thu, 28 May 2020 18:46:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RJp0jLcXHtSatqScSg9EFMa1gxoqhyqVoJx/nWNFABw=; b=btJP+WsMuhTQh1 Z0O8B3OVaudA+YSzM/CdbVthJbOd0xBV9Xu1PRTCmYcntK8uIxj7xhgpfoQsBNr5X5qGrC6mIfCXo C/+Kv3MQZhoVOBgEdU8jFOUIpPxmAcTPnPt8Mf2vJmhRC37b+91o4hpIHlKmHYHeWsMNBnpDj3DTX +H9lYGjZ/QfeaFUr+8lszjPvsrgmyLNUrV/gxXuSHrGboPUJvz1+q5GQwJ4+JuvDA10vQr4Hs+RCB +yvh3owcK4b/skZAKrOivZR3feXrnS8VG9qrXFj6jslNrewqrV5n36qoVU/+GppvAJZbKFcVoAMg6 suqRsviY3BjMYT229oBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeEBV-0007G1-Mu; Thu, 28 May 2020 08:46:41 +0000 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeEBR-0007CG-EF for hostap@lists.infradead.org; Thu, 28 May 2020 08:46:39 +0000 Received: from legolas.fritz.box (unknown [87.147.49.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id 3B152580063; Thu, 28 May 2020 10:46:26 +0200 (CEST) From: Markus Theil To: hostap@lists.infradead.org Subject: [PATCH 0/6] nl80211: add support for control port tx status Date: Thu, 28 May 2020 10:46:06 +0200 Message-Id: <20200528084612.6530-1-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200528_014637_635216_507F9326 X-CRM114-Status: GOOD ( 10.32 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [141.24.186.67 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Markus Theil Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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. Markus Theil (6): Sync with mac80210-next.git include/uapi/linux/nl80211.h 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 custom ack handler to send_and_recv nl80211: add ack handler for extack cookies src/drivers/driver.h | 4 +- src/drivers/driver_nl80211.c | 336 ++++++++++++++++++----------- 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 ++- src/drivers/nl80211_copy.h | 93 +++++--- 7 files changed, 351 insertions(+), 164 deletions(-)