From patchwork Tue Oct 16 18:41:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamizh chelvam X-Patchwork-Id: 10644141 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E7743157A for ; Tue, 16 Oct 2018 18:43:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8D6D288F1 for ; Tue, 16 Oct 2018 18:43:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCE4B287A2; Tue, 16 Oct 2018 18:43:32 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F549287A2 for ; Tue, 16 Oct 2018 18:43:32 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=cLkey/EbFQG1ymOamJaky9yGLI/iE5/rh7uM1ILcunc=; b=Fz7eRwIdoZh+MWHOKNupckHU+d jqkK3C1AMuEMgsq2J3XTYfadTaiKRag4ZT1qRR3tzVSqhlAG31+zKf17tIMSUJYkxpscJbsasIE6K D+EV+SJfgJOMKC1DKj8FhlprjQMaavVNkjqaB7MHkKGyfhLma7kDpL0Yusc5iOX5V3ak+1kYyUpwG NthlobNbBiG8xYBS6Z4DPGyzOjf1A9x/0aeFhBvXJjt2+kX3k5dMheBADxomTDGq4WAfN/0fCUEpH Xf6IV/MyQETkm3VfZHYDhuAQDftYNBRdA/atvDynH+XHHK1Bh1BqHlwx/Oz6mjNskbK3tqMosW5ze Gbxtc3fw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCUJU-00013n-Pt; Tue, 16 Oct 2018 18:43:28 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCUJ5-0000rn-9M for ath10k@lists.infradead.org; Tue, 16 Oct 2018 18:43:06 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2DAC761325; Tue, 16 Oct 2018 18:43:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539715380; bh=CYEYBNcn/sBlpt1MycMnFGEJ2cN1njvKHe/uBmtiU2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Is/vWkzbfbLk1wcjV6Fs6CfhpFDw7Vl1zRx3dKDN+XFi1GpANQKY6xXXmzLkPMddq h7Y1Eqb7a43hyAHovfKncUW15vRJqlh757xDhmPAgnu4bAaMaouP5UeGFbqineWG71 s96hYJGaLbwxRXBuzY6I54/+6658fhxBSp3stDpc= Received: from cheath10p342229-lin.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: tamizhr@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 522BB60558; Tue, 16 Oct 2018 18:42:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539715379; bh=CYEYBNcn/sBlpt1MycMnFGEJ2cN1njvKHe/uBmtiU2U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gcoTMYZaSJP6MRZtgkHhJR1rxhNBFAmXVNlD9OCJiG3K72AyvRLHpbgxsAWTcfaH6 wBt8D5h/v93HAdE8EMpJFk3qONN66nZ995kWdJVxBEB7sgVWR4P/6HLm5R1AWbvFOa m+CC99bdNuCHn01IY9L4fNSLQUibYofzzWjxEPbE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 522BB60558 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=tamizhr@codeaurora.org From: Tamizh chelvam To: ath10k@lists.infradead.org, johannes@sipsolutions.net Subject: [PATCH 4/6] mac80211: Advertise per-peer NoAck policy support Date: Wed, 17 Oct 2018 00:11:09 +0530 Message-Id: <1539715271-14325-5-git-send-email-tamizhr@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1539715271-14325-1-git-send-email-tamizhr@codeaurora.org> References: <1539715271-14325-1-git-send-email-tamizhr@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181016_114303_373097_B5CF7AD8 X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vasanthakumar Thiagarajan , linux-wireless@vger.kernel.org, Tamizh chelvam MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vasanthakumar Thiagarajan This enables per-peer NoAck handling in mac80211 when the functionality is not offloaded to the drivers. Signed-off-by: Vasanthakumar Thiagarajan Signed-off-by: Tamizh chelvam --- net/mac80211/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 83e71e6..698cf56 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -597,6 +597,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);