From patchwork Tue Mar 26 09:29:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamizh chelvam X-Patchwork-Id: 10870755 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 8C36F139A for ; Tue, 26 Mar 2019 09:29:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 748172867C for ; Tue, 26 Mar 2019 09:29:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6855428E74; Tue, 26 Mar 2019 09:29:55 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable 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 A11042867C for ; Tue, 26 Mar 2019 09:29:54 +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: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=j0lsFYW+0CBVk6cSaa7+dgZvWK+XIUxoEQR9Zs2+woM=; b=RuA sDwH3qdRu5lLh6cuvmgkBKSuvMlwrkZs2XHzDNzYAkl8KGNdnboRwC/CmoVOgPYRoU0tKQX6I1/0F /42APuIePHpdx0dgxUaE4YVZU8ue6fqD+s/lkVd9LXi5hbk1YwVcUX3dEDP3Eq7Yv0fnLFXmiMzga IphXT4OxQFVtjSScXKDFxdhjlNB5Y4wMoFp+8hjIPYnLA1l82YEkcjXKZ0MRUCdPKADLipRenGRC1 D5zTfF6UIoqjQ0vtm5XA7TzhBDIbW7u+Do9oZHa2CpiKfvM1XPEtoOh99rSpZfaVHQdfyw4RlFbUP FPqogSRzOTRfp0LSlQy+lolBgbd8RTQ==; 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 1h8iP2-0004M8-Di; Tue, 26 Mar 2019 09:29:52 +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 1h8iOs-0004H7-0g for ath10k@lists.infradead.org; Tue, 26 Mar 2019 09:29:49 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 40BFD60E75; Tue, 26 Mar 2019 09:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553592575; bh=tpBuU6whDg2telYLOYWJEYV1iGUHcDQvYHesYkPQyu8=; h=From:To:Cc:Subject:Date:From; b=GIWrZIAxBCoHMEEHEeV25XByRVIdu3nBmJgYc/m8lSTQ6Yswr8zFUPK/eohX5dRnh QNUFN21Yd4MDr4F9c09I9eb7b0d5Hsb2mP/Zw4Cgy8dr/vL5uFbDAyhJ9m5bfM/JkC cFDw7K6qk85UcNC4qJrdz2dZZfQy5fEArTzFb6jU= 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 4F3CA60A60; Tue, 26 Mar 2019 09:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553592574; bh=tpBuU6whDg2telYLOYWJEYV1iGUHcDQvYHesYkPQyu8=; h=From:To:Cc:Subject:Date:From; b=CbQZyQ2/+FuEg/YP6bId1UhKihlBxIPCBIUUj4YSAj3dORrt7SltHlQWZK0HW4fZY NawDzAWhoifIuPPDQHrLGywDUldp+QQI0VKbnggqbj9JrK9KDrKCwKXO9TTvwSCKmi kR90EwVIZu1XGFaUtNPbx/nX6ZnVkSWWLman2GB8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4F3CA60A60 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: johannes@sipsolutions.net, ath10k@lists.infradead.org Subject: [PATCHv5 0/9] cfg80211/mac80211: Add support for TID specific configuration Date: Tue, 26 Mar 2019 14:59:01 +0530 Message-Id: <1553592550-15282-1-git-send-email-tamizhr@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190326_022943_820370_261370D7 X-CRM114-Status: UNSURE ( 8.16 ) 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: 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 Add infrastructure to support per TID configurations like noack policy, retry count, AMPDU control(disable/enable), RTSCTS control(enable/disable) and TX rate mask configurations. This will be useful for the driver which can supports data TID specific configuration rather than phy level configurations. Here NL80211_CMD_SET_TID_CONFIG added to support this operation by accepting TID configuration. This command can accept STA mac addreess to make the configuration station specific rather than applying to all the connected stations to the netdev. And this nested command configuration can accept multiple number of data TID specific configuration in a single command, enum ieee80211_tid_conf_mask used to notify the driver that which configuration got modified for the TID. Tamizh chelvam (9): nl80211: New netlink command for TID specific configuration nl80211: Add new netlink attribute for TID speicific retry count nl80211: Add netlink attribute for AMPDU aggregation enable/disable nl80211: Add netlink attribute to enable/disable RTS_CTS nl80211: Add netlink attribute to configure TID specific tx rate mac80211: Add api to support configuring TID specific configuration ath10k: Add wmi command support for station specific TID config ath10k: Add new api to support TID specific configuration ath10k: Add extended TID configuration support v5: * Fixed possible memleak of 'tid_conf' in nl80211_set_tid_config. v4: * Fixed kbuild warnings. v3: * Modified "nl80211: Add netlink attribute to configure TID specific tx rate" patch to accept multiple TX rate configuration at a time. * Modified noack and ampdu variable data type to int in "mac80211: Add api to support configuring TID specific configuration" patch to store default configuration. * Modified "ath10k: Add new api to support TID specific configuration" patch to handle default values for noack and ampdu. And added sta pointer sanity check in ath10k_mac_tid_bitrate_config function. * Fixed "ath10k: Add extended TID configuration support" wmi command parameters assigned part. v2: * Added support to accept multiple TID configuration * Added support to configure TX rate and RTSCTS control drivers/net/wireless/ath/ath10k/core.c | 4 + drivers/net/wireless/ath/ath10k/core.h | 6 + drivers/net/wireless/ath/ath10k/mac.c | 679 +++++++++++++++++++++++++---- drivers/net/wireless/ath/ath10k/wmi-ops.h | 19 + drivers/net/wireless/ath/ath10k/wmi.c | 35 ++ drivers/net/wireless/ath/ath10k/wmi.h | 72 +++ include/net/cfg80211.h | 57 +++ include/net/mac80211.h | 38 ++ include/uapi/linux/nl80211.h | 182 ++++++++ net/mac80211/cfg.c | 28 ++ net/mac80211/driver-ops.h | 15 + net/wireless/nl80211.c | 255 ++++++++++- net/wireless/rdev-ops.h | 11 + net/wireless/trace.h | 18 + 14 files changed, 1321 insertions(+), 98 deletions(-)