Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5730294ybf; Thu, 5 Mar 2020 06:05:29 -0800 (PST) X-Google-Smtp-Source: ADFU+vtt4cFEKUsqQFcsy3hItsWUIcT8K48eoZZnDzw4euEFNEnlKvkK4E1ftlcpDVuN2TF+KV4a X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr6860632otp.5.1583417129646; Thu, 05 Mar 2020 06:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583417129; cv=none; d=google.com; s=arc-20160816; b=X8a/2lSmTDr7m9mDdMVI/JgzmoZ3VI+xiVyoGR10jVkILaTiXsrjxKbd9eVq1rujql GnXv1Xz5XpXSwiSovoiwJ7Ks9Szr3y8BnoG+Sfy4H28Y3mHuWOsQNLUVT5Ib1zSSkuZO rCoqtTs3Y/oGv0ZZ1xfyIrDuBoPuLD7l0ceNQvtQSNRs6/ErtWhqPzv82FnlPB2qLKmU Wj+gh7+vEYzTTJKs6C421oegyrmtFWVyF13b+2koJjJC/CGnGefVxpO4f6IRQ2mj5rVO c6vS2LQzNKDN0fOeKR8oAEx8xjQUrJf3Gri/iyMedHkcQgcAckuFp2C8pOJmMFuFLR9Y ID8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ADukNkTqHH5RAV32vDMzuVSt73MDSEmFkeG/R3XM0Ec=; b=DeZ+QHXXngQ5iJnBLF/A6guu9LYQNPN+K2gzH2qpNk8bOSira4KvBOCXM49841PZ5Z rO0whDrrTLYLvi0wUno3quvj3F/KoQBych7n/+Ij/4++YXNtI3zIKnbcW6bJi4H54DRi be3tVd3rSJWiUhjV97KDBBvdhKyBXgNwYygxIiq9rkt0eyYHkWiKQ9nOLzhr4HDXZrOA WVWXZucnD+nD4fPoawP12ucTn77UB9OBUFyEFmP/Iv0LWCu6Aw/qLFQrjzwfimRl2f1A 9SYjS8PCVZ+GsNt43ls/IWehiCaVmazSWXXd6ospv41Gq09ZVqepH+VPdCpq5NOTYLv6 dReQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y184si3427330oia.22.2020.03.05.06.04.58; Thu, 05 Mar 2020 06:05:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbgCEOEl (ORCPT + 99 others); Thu, 5 Mar 2020 09:04:41 -0500 Received: from mailext.lri.fr ([129.175.15.10]:48416 "HELO mailext.lri.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726222AbgCEOEl (ORCPT ); Thu, 5 Mar 2020 09:04:41 -0500 Received: from [129.175.15.10] (mailext.lri.fr [129.175.15.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailext.lri.fr (Postfix) with ESMTPSA id B782FC0F9E; Thu, 5 Mar 2020 14:58:02 +0100 (CET) From: Nicolas Cavallari To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH v3 2/2] mac80211: Allow deleting stations in ibss mode to reset their state Date: Thu, 5 Mar 2020 14:57:54 +0100 Message-Id: <20200305135754.12094-2-cavallar@lri.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200305135754.12094-1-cavallar@lri.fr> References: <20200305135754.12094-1-cavallar@lri.fr> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Nicolas Cavallari Set the NL80211_EXT_FEATURE_DEL_IBSS_STA if the interface support IBSS mode, so that stations can be reset from user space. mac80211 already deletes stations by itself, so mac80211 drivers must already support this. This has been successfully tested with ath9k. Signed-off-by: Nicolas Cavallari --- v3: spelling fixes in commit message. --- net/mac80211/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 944e86da5c65..bc7fd67dc987 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -1081,6 +1081,10 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) NL80211_EXT_FEATURE_EXT_KEY_ID); } =20 + if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_ADHOC)) + wiphy_ext_feature_set(local->hw.wiphy, + NL80211_EXT_FEATURE_DEL_IBSS_STA); + /* * Calculate scan IE length -- we need this to alloc * memory and to subtract from the driver limit. It --=20 2.25.1