From patchwork Tue Mar 27 08:42:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasanthakumar Thiagarajan X-Patchwork-Id: 10309547 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 945006037D for ; Tue, 27 Mar 2018 08:44:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72E4329C14 for ; Tue, 27 Mar 2018 08:44:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66FEC29C16; Tue, 27 Mar 2018 08:44:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E77629C14 for ; Tue, 27 Mar 2018 08:44:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbeC0Io3 (ORCPT ); Tue, 27 Mar 2018 04:44:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40962 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbeC0IoW (ORCPT ); Tue, 27 Mar 2018 04:44:22 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 538FF601EA; Tue, 27 Mar 2018 08:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522140261; bh=Guvexxsq/iNUkGg4WTrIM4pEl92L2rpUWadDKCEjxLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ii5jyyL7qTDgUgIPn1HM+0oIBilUJRglrNlxrdPzte/wPiXRTe11dNLWe6vKsoI1G thlmdTAA9TQhM5wM6Eo6FI5XiFdsJnZm6jX7QQaKGsK6N7eQawXvVohXk/CjOM2joe co7E7Dp6NPnSr5nlxfUA6wh6j8bnw7AjxnT2X3uM= Received: from vasanth-lnx.qca.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vthiagar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0B3A260AE0; Tue, 27 Mar 2018 08:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522140261; bh=Guvexxsq/iNUkGg4WTrIM4pEl92L2rpUWadDKCEjxLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ii5jyyL7qTDgUgIPn1HM+0oIBilUJRglrNlxrdPzte/wPiXRTe11dNLWe6vKsoI1G thlmdTAA9TQhM5wM6Eo6FI5XiFdsJnZm6jX7QQaKGsK6N7eQawXvVohXk/CjOM2joe co7E7Dp6NPnSr5nlxfUA6wh6j8bnw7AjxnT2X3uM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0B3A260AE0 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vthiagar@codeaurora.org From: Vasanthakumar Thiagarajan To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Vasanthakumar Thiagarajan Subject: [RFC 4/4] mac80211: Advertise per-peer NoAck policy support Date: Tue, 27 Mar 2018 14:12:51 +0530 Message-Id: <1522140171-10926-5-git-send-email-vthiagar@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522140171-10926-1-git-send-email-vthiagar@codeaurora.org> References: <1522140171-10926-1-git-send-email-vthiagar@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This enables per-peer NoAck handling in mac80211 when the functionality is not offloaded to the drivers. Signed-off-by: Vasanthakumar Thiagarajan --- net/mac80211/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 78f2574..2b136fb 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -565,6 +565,10 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len, wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_RRM); + if (!ops->set_noack_tid_bitmap) + wiphy_ext_feature_set(wiphy, + NL80211_EXT_FEATURE_PER_STA_NOACK_MAP); + wiphy->bss_priv_size = sizeof(struct ieee80211_bss); local = wiphy_priv(wiphy);