From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0BE5C38A2A for ; Fri, 8 May 2020 14:42:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F1342083B for ; Fri, 8 May 2020 14:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727106AbgEHOmV (ORCPT ); Fri, 8 May 2020 10:42:21 -0400 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:54259 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbgEHOmV (ORCPT ); Fri, 8 May 2020 10:42:21 -0400 Received: from legolas.fritz.box (unknown [87.147.56.179]) (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 915B8580247; Fri, 8 May 2020 16:42:19 +0200 (CEST) From: Markus Theil To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Markus Theil Subject: [PATCH 0/3] nl80211/mac80211: add tx status for ctrl port Date: Fri, 8 May 2020 16:41:59 +0200 Message-Id: <20200508144202.7678-1-markus.theil@tu-ilmenau.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When sending EAPOL frames from an AP to a STA, SO_WIFI_STATUS can be used on raw/packet sockets to get notified of (un-)successful frame transmissions in order to trigger retransmits earlier. The nl80211 control port currently lacks such a feature, which therefore gets added in this series, in order to function as a drop in replacement for using dedicated AF_PACKET sockets for handling EAPOL messages. With this series it is finally possible to run hostapd in AP mode with mgmt and EAPOL control port frames solely over nl80211 and data frames on the kernel data path. The intended behaviour stems from tx notifications for mgmt frames over nl80211. A cookie is provided to match request and reply, furthermore the frame content is also included in status messages. This series has been tested with a modified hostapd version. Patches for hostapd will follow soon on its mailing list. Markus Theil (3): nl80211: cookie arg for tx control port nl80211: add control port tx status method nl80211: add feature flag for control port tx status capability include/net/cfg80211.h | 18 +++++++- include/uapi/linux/nl80211.h | 12 ++++++ net/mac80211/ieee80211_i.h | 8 +++- net/mac80211/main.c | 2 + net/mac80211/status.c | 7 ++- net/mac80211/tdls.c | 2 +- net/mac80211/tx.c | 83 +++++++++++++++++++++++++++--------- net/wireless/nl80211.c | 73 ++++++++++++++++++++++++++----- net/wireless/rdev-ops.h | 9 ++-- net/wireless/trace.h | 17 ++++++++ 10 files changed, 193 insertions(+), 38 deletions(-) -- 2.26.2