From patchwork Mon Nov 5 14:30:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 10668347 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-2.web.codeaurora.org (Postfix) with ESMTP id 7896215A6 for ; Mon, 5 Nov 2018 14:30:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67BAD28E96 for ; Mon, 5 Nov 2018 14:30:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BE01298B1; Mon, 5 Nov 2018 14:30:43 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 9774E28E96 for ; Mon, 5 Nov 2018 14:30:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729587AbeKEXuk (ORCPT ); Mon, 5 Nov 2018 18:50:40 -0500 Received: from mail-dm3nam03on0043.outbound.protection.outlook.com ([104.47.41.43]:12752 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726774AbeKEXuj (ORCPT ); Mon, 5 Nov 2018 18:50:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=apo12a22KIma6l5iFRtASuYNWMwrZi2UaKYhjOuUjAo=; b=BnLPW1K40XZ8nIScwbfiGC6QQ4gxi0bqFonSsVooqWqnA9CG2ymkrgxJ6Qbdf4UK1Z/WHClTicXsYaJ6vWHMwaYNNFmC/LnQ0IjM56lEpiqboyQw7UnKMIQRLttmj+M9tC5NINgV2AtpDjn3QZf1SvfXvPiewOra3QXwb2KHJHI= Received: from BL0SPR01MB0020.namprd05.prod.outlook.com (20.177.146.138) by BL0SPR01MB0022.namprd05.prod.outlook.com (20.177.146.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.12; Mon, 5 Nov 2018 14:30:37 +0000 Received: from BL0SPR01MB0020.namprd05.prod.outlook.com ([fe80::fce8:69f:f659:27d8]) by BL0SPR01MB0020.namprd05.prod.outlook.com ([fe80::fce8:69f:f659:27d8%3]) with mapi id 15.20.1294.028; Mon, 5 Nov 2018 14:30:37 +0000 From: Sergey Matyukevich To: "linux-wireless@vger.kernel.org" , Johannes Berg CC: Jouni Malinen , Igor Mitsyanko , Sergey Matyukevich Subject: [RFC 1/3] cfg80211/nl80211: add wiphy flags to control aggregation Thread-Topic: [RFC 1/3] cfg80211/nl80211: add wiphy flags to control aggregation Thread-Index: AQHUdRQezeKXmhfygk2dUrkbNZGWyQ== Date: Mon, 5 Nov 2018 14:30:37 +0000 Message-ID: <20181105143027.17570-2-sergey.matyukevich.os@quantenna.com> References: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> In-Reply-To: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6P194CA0090.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::31) To BL0SPR01MB0020.namprd05.prod.outlook.com (2603:10b6:208:72::10) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [195.182.157.78] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0SPR01MB0022;6:qtylVwMZadsIK8wnWupJXkLTrPExclfb3902v7ZV94NOCUPgmZK8U7ikkuW4Mrqc9GgP+4+CHNY4fuD62yfrymd1HNYcPyZ2NGiE9ZPI/proLwl5HGna8tvLNFUJF8PNKMr/KYPS4/YB6PGNKHguFGWqnqBwkmpjcPcn54mV1bBaQIK7wC+DatUWNInlelXhyj//u+7NpeCzIfrxTC/Wkbj7QnrDHmkLgff70/845rmbg4aMD5yg7dqNMomltkEmyqmNoPH5FMQreznhgNTguMfYz+Gi93Jju/B+4QOsOXmcGW4G2THc1mzKG7koNEhZ0+ZKXRpcUxzaS7eyijIA3xfOOs9X0fq6S1X2XOg2+wI1iO1ahyBMeRV09x+GIZXwBEKI2GbB46b3h6DmquDMI+jwcdcL7wlYuF8C2RQfIEMEdCfjN19u8cDsGkBhaWV8Hu3MzlgSDmN8fFVmXmkvbQ==;5:zDqFAwC2K8IxvvD1Znjf9QrITQh1XYEp1hjdykWLXRdRRYorTfHA+qu70KkT+FEpw4YGkWGcPvJvb6at7BNXWxdDS8HpAv+9yzJIBKJ8FgRiHl/SfEfEj0R4vYMgosfs1IROYivvdRWwmOYOSK4nJ0gvFL6+iD3KWGfXPeu9pik=;7:heWrWM14Pz2HeqYQmvIcr69AE+7Cw08wEXJV8Jj7tTb6h/hYCr0yzcWoPO8uXn1V2A7sV/HT/J192JdwnA54Cqf9bczCMli9kvsjjLTvTJ0Ib3U+X+W1U+tVKDYA4fAeGwqwHCxl6GdVnm/RMZsfCg== x-ms-office365-filtering-correlation-id: 7e5a8a1e-bfd2-47a1-aafc-08d6432b410a x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:BL0SPR01MB0022; x-ms-traffictypediagnostic: BL0SPR01MB0022: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(148016)(149066)(150057)(6041310)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:BL0SPR01MB0022;BCL:0;PCL:0;RULEID:;SRVR:BL0SPR01MB0022; x-forefront-prvs: 08476BC6EF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(366004)(39840400004)(396003)(376002)(136003)(199004)(189003)(1076002)(99286004)(4326008)(68736007)(6116002)(3846002)(7736002)(76176011)(305945005)(53936002)(256004)(6486002)(14444005)(52116002)(478600001)(25786009)(71200400001)(2900100001)(66066001)(71190400001)(107886003)(86362001)(316002)(2501003)(110136005)(103116003)(8936002)(54906003)(6506007)(386003)(5660300001)(36756003)(14454004)(186003)(102836004)(2906002)(11346002)(106356001)(105586002)(446003)(97736004)(6436002)(6512007)(26005)(81166006)(476003)(81156014)(8676002)(2616005)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0SPR01MB0022;H:BL0SPR01MB0020.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jmgvIn7rV2IHqaC/TGS7UaLChLTZeKu5SWv8XcRcNLHlr9VNZMlIuTBzsoxFxifbtYb/76nZ4EwqgxWioDb4dUfvMtObg9j8wLaUeINPJ1FXCUqxzk/3a6K5MyqeliE2cRQLqRmDFXGy1GfSmiE9pcUIGkCqQxcKQ663g1AwCsmJhT2PKg4QWG0Ye1SdpbRszb7rIyUdn8o4oc9hsLzKcw+AsDD9IQmzJRGOUgLdRVN00ueGbmt/cVCyrSY56kv9X6LtDUJTrR/F3lT/H3SSAY1gn70oYeSU/xPSPE8DqInZ94aV/N5zmf3aa2EVXITcXCUDDZjXxFPK4Zj2muyLhBXNJwqZQTdk5az5vaHtFA4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e5a8a1e-bfd2-47a1-aafc-08d6432b410a X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2018 14:30:37.7329 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0SPR01MB0022 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 Add two top-level switches to wiphy structure to control AMSDU and AMPDU aggregation. Enable read/update of AMSDU and AMPDU aggregation from the userspace using set_wiphy/get_wiphy commands. Signed-off-by: Sergey Matyukevich --- include/net/cfg80211.h | 7 +++++++ include/uapi/linux/nl80211.h | 6 ++++++ net/wireless/core.c | 3 +++ net/wireless/nl80211.c | 31 +++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 1fa41b7a1be3..fbf01d156069 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -2368,6 +2368,8 @@ enum cfg80211_connect_params_changed { * @WIPHY_PARAM_TXQ_LIMIT: TXQ packet limit has been changed * @WIPHY_PARAM_TXQ_MEMORY_LIMIT: TXQ memory limit has been changed * @WIPHY_PARAM_TXQ_QUANTUM: TXQ scheduler quantum + * @WIPHY_PARAM_AMPDU_ENABLED: wiphy->ampdu_enabled has changed + * @WIPHY_PARAM_AMSDU_ENABLED: wiphy->amsdu_enabled has changed */ enum wiphy_params_flags { WIPHY_PARAM_RETRY_SHORT = 1 << 0, @@ -2379,6 +2381,8 @@ enum wiphy_params_flags { WIPHY_PARAM_TXQ_LIMIT = 1 << 6, WIPHY_PARAM_TXQ_MEMORY_LIMIT = 1 << 7, WIPHY_PARAM_TXQ_QUANTUM = 1 << 8, + WIPHY_PARAM_AMPDU_ENABLED = 1 << 9, + WIPHY_PARAM_AMSDU_ENABLED = 1 << 10, }; /** @@ -4163,6 +4167,9 @@ struct wiphy { u32 txq_memory_limit; u32 txq_quantum; + u8 ampdu_enabled; + u8 amsdu_enabled; + char priv[0] __aligned(NETDEV_ALIGN); }; diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 6d610bae30a9..a9f8fa814ecd 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -2254,6 +2254,9 @@ enum nl80211_commands { * @NL80211_ATTR_FTM_RESPONDER_STATS: Nested attribute with FTM responder * statistics, see &enum nl80211_ftm_responder_stats. * + * @NL80211_ATTR_WIPHY_AMPDU_ENABLED: enable/disable AMPDU aggregation. + * @NL80211_ATTR_WIPHY_AMSDU_ENABLED: enable/disable AMSDU aggregation. + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -2699,6 +2702,9 @@ enum nl80211_attrs { NL80211_ATTR_FTM_RESPONDER_STATS, + NL80211_ATTR_WIPHY_AMPDU_ENABLED, + NL80211_ATTR_WIPHY_AMSDU_ENABLED, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, diff --git a/net/wireless/core.c b/net/wireless/core.c index 5bd01058b9e6..182f8f04166d 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -524,6 +524,9 @@ struct wiphy *wiphy_new_nm(const struct cfg80211_ops *ops, int sizeof_priv, rdev->wiphy.max_sched_scan_plans = 1; rdev->wiphy.max_sched_scan_plan_interval = U32_MAX; + rdev->wiphy.ampdu_enabled = 1; + rdev->wiphy.amsdu_enabled = 1; + return &rdev->wiphy; } EXPORT_SYMBOL(wiphy_new_nm); diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 744b5851bbf9..5c04b6996e64 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -497,6 +497,9 @@ static const struct nla_policy nl80211_policy[NUM_NL80211_ATTR] = { .type = NLA_NESTED, .validation_data = nl80211_ftm_responder_policy, }, + + [NL80211_ATTR_WIPHY_AMPDU_ENABLED] = { .type = NLA_U8 }, + [NL80211_ATTR_WIPHY_AMSDU_ENABLED] = { .type = NLA_U8 }, }; /* policy for the key attributes */ @@ -2118,6 +2121,14 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev, goto nla_put_failure; } + if (nla_put_u8(msg, NL80211_ATTR_WIPHY_AMPDU_ENABLED, + rdev->wiphy.ampdu_enabled)) + goto nla_put_failure; + + if (nla_put_u8(msg, NL80211_ATTR_WIPHY_AMSDU_ENABLED, + rdev->wiphy.amsdu_enabled)) + goto nla_put_failure; + /* done */ state->split_start = 0; break; @@ -2514,6 +2525,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) u32 frag_threshold = 0, rts_threshold = 0; u8 coverage_class = 0; u32 txq_limit = 0, txq_memory_limit = 0, txq_quantum = 0; + u8 amsdu = 0, ampdu = 0; ASSERT_RTNL(); @@ -2743,11 +2755,22 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) changed |= WIPHY_PARAM_TXQ_QUANTUM; } + if (info->attrs[NL80211_ATTR_WIPHY_AMPDU_ENABLED]) { + ampdu = nla_get_u8(info->attrs[NL80211_ATTR_WIPHY_AMPDU_ENABLED]); + changed |= WIPHY_PARAM_AMPDU_ENABLED; + } + + if (info->attrs[NL80211_ATTR_WIPHY_AMSDU_ENABLED]) { + amsdu = nla_get_u8(info->attrs[NL80211_ATTR_WIPHY_AMSDU_ENABLED]); + changed |= WIPHY_PARAM_AMSDU_ENABLED; + } + if (changed) { u8 old_retry_short, old_retry_long; u32 old_frag_threshold, old_rts_threshold; u8 old_coverage_class; u32 old_txq_limit, old_txq_memory_limit, old_txq_quantum; + u8 old_amsdu, old_ampdu; if (!rdev->ops->set_wiphy_params) return -EOPNOTSUPP; @@ -2760,6 +2783,8 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) old_txq_limit = rdev->wiphy.txq_limit; old_txq_memory_limit = rdev->wiphy.txq_memory_limit; old_txq_quantum = rdev->wiphy.txq_quantum; + old_ampdu = rdev->wiphy.ampdu_enabled; + old_amsdu = rdev->wiphy.amsdu_enabled; if (changed & WIPHY_PARAM_RETRY_SHORT) rdev->wiphy.retry_short = retry_short; @@ -2777,6 +2802,10 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) rdev->wiphy.txq_memory_limit = txq_memory_limit; if (changed & WIPHY_PARAM_TXQ_QUANTUM) rdev->wiphy.txq_quantum = txq_quantum; + if (changed & WIPHY_PARAM_AMPDU_ENABLED) + rdev->wiphy.ampdu_enabled = ampdu; + if (changed & WIPHY_PARAM_AMSDU_ENABLED) + rdev->wiphy.amsdu_enabled = amsdu; result = rdev_set_wiphy_params(rdev, changed); if (result) { @@ -2788,6 +2817,8 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) rdev->wiphy.txq_limit = old_txq_limit; rdev->wiphy.txq_memory_limit = old_txq_memory_limit; rdev->wiphy.txq_quantum = old_txq_quantum; + rdev->wiphy.ampdu_enabled = old_ampdu; + rdev->wiphy.amsdu_enabled = old_amsdu; return result; } } From patchwork Mon Nov 5 14:30:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 10668353 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-2.web.codeaurora.org (Postfix) with ESMTP id 9A26115A6 for ; Mon, 5 Nov 2018 14:31:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88D43298D5 for ; Mon, 5 Nov 2018 14:31:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7ABD4298DB; Mon, 5 Nov 2018 14:31:23 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 10DB0298D5 for ; Mon, 5 Nov 2018 14:31:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729720AbeKEXvV (ORCPT ); Mon, 5 Nov 2018 18:51:21 -0500 Received: from mail-eopbgr720089.outbound.protection.outlook.com ([40.107.72.89]:63104 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729072AbeKEXvU (ORCPT ); Mon, 5 Nov 2018 18:51:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ouRIuH0Qk1GlofU9A1cKcGXntw31SVwyNx1Ximyiv48=; b=eyghkq3hBvPmSIEfgmnBklbWnK5lt/U9AMr+b5WpmnSRbP35DPPcehkd3IqxSZ/V3SkTYQKzKdjYJF3q2dDub+DNqZz/KffJk/VyTW4nClHTX9aOLgCdkUrsSNSipAK9WDdb3n+pEVn4EC6CzdVR3bX7OKZvvRnOEVBX9IE/BYE= Received: from BL0SPR01MB0020.namprd05.prod.outlook.com (20.177.146.138) by BL0PR05MB5364.namprd05.prod.outlook.com (10.167.233.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.9; Mon, 5 Nov 2018 14:30:39 +0000 Received: from BL0SPR01MB0020.namprd05.prod.outlook.com ([fe80::fce8:69f:f659:27d8]) by BL0SPR01MB0020.namprd05.prod.outlook.com ([fe80::fce8:69f:f659:27d8%3]) with mapi id 15.20.1294.028; Mon, 5 Nov 2018 14:30:39 +0000 From: Sergey Matyukevich To: "linux-wireless@vger.kernel.org" , Johannes Berg CC: Jouni Malinen , Igor Mitsyanko , Sergey Matyukevich Subject: [RFC 2/3] iw: add phy subcommands to configure aggregation Thread-Topic: [RFC 2/3] iw: add phy subcommands to configure aggregation Thread-Index: AQHUdRQfn//pssnBGkemKzXFUo2h1Q== Date: Mon, 5 Nov 2018 14:30:39 +0000 Message-ID: <20181105143027.17570-3-sergey.matyukevich.os@quantenna.com> References: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> In-Reply-To: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6P194CA0090.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::31) To BL0SPR01MB0020.namprd05.prod.outlook.com (2603:10b6:208:72::10) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [195.182.157.78] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR05MB5364;6:pLre6wUv2ettZ3mEhrc9sedrPThpPZKf232e3Eo3Do2R4y2I/w2YOYJtzUwBoP9QdTRgwakiTOa0J5qi/syKfxaPp8RWmL0zKM1M+mLfnFIyvwlBaYncNON1RzkODprltfJrtjdHOStKpQSFbw6QukVAjIEjt70pFI/nMkta1B8BIALOaDAffjyog4YUmJwPAErBwx5rO/K0Fhfbs2ho6VHCnExSqDldCxEckyJSfK54NCjjBbrcYo7FkyUFZzLyFcyElrCfMUeFIQIRIBdoFxXp1YruYUuBLisEt8tZpZ4myTPeAl0UizwTh+7jviUX/jiozLTYKphHuvxT1iWovfs1ASbYfIv4OqwJ2rfMEqeLBzVuXeXBKGlV9fmgHxMdphX3PPdLNEnltT47nNtR3ZpoyugSAdS2SAKtmFdft7AC65/edflm2wxWOxKMop3g6w+4AWERr3Oe379OWCCYmw==;5:CrBxTVvp9vD2UvLbOsARhaSj8ctYlFkFQat5HAvLbPESkvTA5gcMZXUPGqhBaeqfWyG54X4e3t8R46WISmnHTN4lBw01+wfGAfANgvYgiAn+/cJHVrGPccxM2IfzvuNDQK7SXFtN6+t1ZBX/+1KPuo1Krj2z/5Ky0vWkqPYtaSk=;7:WOKKdFJ/ogYBg/x0jvsngT7WKC3gL450ppFFkdYQn+1syPmM4GR4qH22ibqpXujWohXVbgVbWItvAJDd55alVHiHTxQwqDSjkMyk6xV//LwuEQ//6c0jXPHAnpnQ3FZfNkOni1gSom8xkZaabMqEkw== x-ms-office365-filtering-correlation-id: d35a411f-c660-4ac3-8205-08d6432b41ec x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BL0PR05MB5364; x-ms-traffictypediagnostic: BL0PR05MB5364: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:BL0PR05MB5364;BCL:0;PCL:0;RULEID:;SRVR:BL0PR05MB5364; x-forefront-prvs: 08476BC6EF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(396003)(39840400004)(366004)(346002)(189003)(199004)(14454004)(386003)(6506007)(36756003)(5660300001)(102836004)(186003)(2906002)(8936002)(54906003)(110136005)(103116003)(476003)(26005)(81156014)(8676002)(486006)(2616005)(105586002)(446003)(97736004)(11346002)(81166006)(106356001)(6436002)(6512007)(1076002)(6486002)(256004)(14444005)(68736007)(7736002)(6116002)(3846002)(99286004)(4326008)(53936002)(76176011)(305945005)(66066001)(86362001)(316002)(2501003)(107886003)(71190400001)(71200400001)(478600001)(25786009)(52116002)(2900100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR05MB5364;H:BL0SPR01MB0020.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: FY6TjrmI81e290lTgNI3IM20uqnVmPMWacsu/x4xGBtcYlS52xekhEecra739G2BnHPwPRI0b8lpF1RQfCNRb9Y/8NqAQIPvfYhRzZ58fnOabvOddvJE2R0cIkxeL+GHmlMUfVVPSyQwrC8nj4ToVqrsAMAWxLmh3XzGgMHyLY9PyBYV1c3ZYBluSeGQQ0hyuxeVMqybfELJ3mCnfu77jyh0W/7Z8HqnPMCleyDldaTmzjAEx26OvFeCmlmpPAg5DcPZMUXH2JyO9RziQcpXInlOV7H5YdDlb3EKgg8ApPCHG1fAed+ACuy79qpcJgz8LRHCj+quft3vHadjEDkt3eLqaL4/MlZd8SgmivFrWh4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-Network-Message-Id: d35a411f-c660-4ac3-8205-08d6432b41ec X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2018 14:30:39.0979 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR05MB5364 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 Add phy subcommands to enable/disable AMPDU/AMSDU aggregation. Signed-off-by: Sergey Matyukevich --- nl80211.h | 6 ++++++ phy.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/nl80211.h b/nl80211.h index 1766a12..41eec4a 100644 --- a/nl80211.h +++ b/nl80211.h @@ -2241,6 +2241,9 @@ enum nl80211_commands { * association request when used with NL80211_CMD_NEW_STATION). Can be set * only if %NL80211_STA_FLAG_WME is set. * + * @NL80211_ATTR_WIPHY_AMPDU_ENABLED: enable/disable AMPDU aggregation. + * @NL80211_ATTR_WIPHY_AMSDU_ENABLED: enable/disable AMSDU aggregation. + * * @NUM_NL80211_ATTR: total number of nl80211_attrs available * @NL80211_ATTR_MAX: highest attribute number currently defined * @__NL80211_ATTR_AFTER_LAST: internal use @@ -2682,6 +2685,9 @@ enum nl80211_attrs { NL80211_ATTR_HE_CAPABILITY, + NL80211_ATTR_WIPHY_AMPDU_ENABLED, + NL80211_ATTR_WIPHY_AMSDU_ENABLED, + /* add attributes here, update the policy in nl80211.c */ __NL80211_ATTR_AFTER_LAST, diff --git a/phy.c b/phy.c index 77df7a7..be949e7 100644 --- a/phy.c +++ b/phy.c @@ -843,3 +843,63 @@ static int handle_get_txq(struct nl80211_state *state, COMMAND(get, txq, "", NL80211_CMD_GET_WIPHY, 0, CIB_PHY, handle_get_txq, "Get TXQ parameters."); + +static int handle_ampdu(struct nl80211_state *state, + struct nl_msg *msg, + int argc, char **argv, + enum id_input id) +{ + unsigned int ampdu; + + if (argc != 1) + return 1; + + if (strcmp(argv[0], "on") == 0) + ampdu = 1; + else if (strcmp(argv[0], "off") == 0) + ampdu = 0; + else { + printf("Invalid parameter: %s\n", argv[0]); + return 2; + } + + NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_AMPDU_ENABLED, ampdu); + + return 0; + + nla_put_failure: + return -ENOBUFS; +} +COMMAND(set, ampdu, "", + NL80211_CMD_SET_WIPHY, 0, CIB_PHY, handle_ampdu, + "Enable/disable AMPDU aggregation."); + +static int handle_amsdu(struct nl80211_state *state, + struct nl_msg *msg, + int argc, char **argv, + enum id_input id) +{ + unsigned int amsdu; + + if (argc != 1) + return 1; + + if (strcmp(argv[0], "on") == 0) + amsdu = 1; + else if (strcmp(argv[0], "off") == 0) + amsdu = 0; + else { + printf("Invalid parameter: %s\n", argv[0]); + return 2; + } + + NLA_PUT_U8(msg, NL80211_ATTR_WIPHY_AMSDU_ENABLED, amsdu); + + return 0; + + nla_put_failure: + return -ENOBUFS; +} +COMMAND(set, amsdu, "", + NL80211_CMD_SET_WIPHY, 0, CIB_PHY, handle_amsdu, + "Enable/disable AMSDU aggregation."); From patchwork Mon Nov 5 14:30:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 10668351 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-2.web.codeaurora.org (Postfix) with ESMTP id 1A64E15A6 for ; Mon, 5 Nov 2018 14:31:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07948298D5 for ; Mon, 5 Nov 2018 14:31:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFFFA298DB; Mon, 5 Nov 2018 14:31:17 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 72D42298D5 for ; Mon, 5 Nov 2018 14:31:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729703AbeKEXvP (ORCPT ); Mon, 5 Nov 2018 18:51:15 -0500 Received: from mail-eopbgr720050.outbound.protection.outlook.com ([40.107.72.50]:31870 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726255AbeKEXvP (ORCPT ); Mon, 5 Nov 2018 18:51:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Po/52WKOMBlUayrKF3x6lyf06FuUfL45LPo6WJ0MURw=; b=Mjwa2F8ESKcSmz8vmw56eadh22O8kha8VDZVtoqnq+56+z6mT2b5U1n5zBGmkwIUi+sakK2OoT3IQXJjL3sZCijUfkwAWOh77Pz+6hjN6TJN7q3v8B9AAz1BmVo7jJiPQ8AQCZp/FY0arwdZKcC2hQ7RsM13GDbFLFLLQaOYL3c= Received: from BL0SPR01MB0020.namprd05.prod.outlook.com (20.177.146.138) by BL0PR05MB5364.namprd05.prod.outlook.com (10.167.233.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.9; Mon, 5 Nov 2018 14:30:40 +0000 Received: from BL0SPR01MB0020.namprd05.prod.outlook.com ([fe80::fce8:69f:f659:27d8]) by BL0SPR01MB0020.namprd05.prod.outlook.com ([fe80::fce8:69f:f659:27d8%3]) with mapi id 15.20.1294.028; Mon, 5 Nov 2018 14:30:40 +0000 From: Sergey Matyukevich To: "linux-wireless@vger.kernel.org" , Johannes Berg CC: Jouni Malinen , Igor Mitsyanko , Sergey Matyukevich Subject: [RFC 3/3] qtnfmac: add support for basic aggregation control Thread-Topic: [RFC 3/3] qtnfmac: add support for basic aggregation control Thread-Index: AQHUdRQgXc5hPkh5qEWDRDb/jMQ85w== Date: Mon, 5 Nov 2018 14:30:40 +0000 Message-ID: <20181105143027.17570-4-sergey.matyukevich.os@quantenna.com> References: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> In-Reply-To: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM6P194CA0090.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::31) To BL0SPR01MB0020.namprd05.prod.outlook.com (2603:10b6:208:72::10) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [195.182.157.78] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BL0PR05MB5364;6:k49rChojMfkKWQPbPqNx823+lAgXBVTIAmqTZanV8fzRE0H/GOZUrj1nWW9AI3XS29GIvlBAWYCzMgVLkrgW5qaZTyloc+p0Chg7ift9HqDpFIQbQOb7R6Vevv1XCgnyIu2wZs95IrWZH+mVCV+wXh/Ff5eJEIVb4TAqvZsxkjxqW95SAea47m/PP8vjb/p0AiDCRKX5926v90yR+bcCUOYavFlqBZ3YSr8cBuhdsq7X2+mcv3ze6FZCwgRmlm7+MmiI47dwhTadBMNS958mzhpjtwhLn/EH2LL8nLl66ptx0+RcgFTVt0CxVimjd8iuYFM1rpFJHWx/+dlf4PQwsYLmjL4yj2Cj7zfZYnQ8EKcZf3TnzghDgNoxQnogpjG1duOaDh6mmxbWjTNczroMnErpJKsSGn5r7FGNo+tdYkgsqj7ClkZLxYqwmoA18qqs4N6qicLR1mpg9XK9MT8pow==;5:2hCa6at2ozhBwCTDpGeycQLt506v4vQf0udtwi+g3DMnMHHvO9CHySRGBuI0tY9uGLtWuMbsbCvHOHVQbcAgN+N8QhNtu+PwL23Ow6Dt0FvqFjRSnc72uicsBirhOeY1DbZnPcwq6Lqil5xiseBC3K0HWS+qVHIgRUSQ+nBIDQw=;7:1DKSOGa0uyQwVvaUcmbvzhRVg7klRsKoTcJAGLsTZSy/VNLAlmwNBngpK3LPb4s7zWdGC2BbRjMmUAeLIvAjB/mjHQVaHS+QHJKzUKWd9lkfXdA+rQ1qPU1wAjz7qS9wDCMoY08nnicR9LR9lkqeow== x-ms-office365-filtering-correlation-id: b3948216-ab4a-464d-c99f-08d6432b42bc x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:BL0PR05MB5364; x-ms-traffictypediagnostic: BL0PR05MB5364: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:BL0PR05MB5364;BCL:0;PCL:0;RULEID:;SRVR:BL0PR05MB5364; x-forefront-prvs: 08476BC6EF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(136003)(396003)(39840400004)(366004)(346002)(189003)(199004)(14454004)(386003)(6506007)(36756003)(5660300001)(102836004)(186003)(2906002)(8936002)(54906003)(110136005)(103116003)(476003)(26005)(81156014)(8676002)(486006)(2616005)(105586002)(446003)(97736004)(11346002)(81166006)(106356001)(6436002)(6512007)(1076002)(6486002)(256004)(14444005)(68736007)(7736002)(6116002)(3846002)(99286004)(4326008)(53936002)(76176011)(305945005)(66066001)(86362001)(316002)(2501003)(575784001)(107886003)(71190400001)(71200400001)(478600001)(25786009)(52116002)(2900100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR05MB5364;H:BL0SPR01MB0020.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: M9+Cxh4Rh2rchpcIdiCtejGo3VYOmFgBergaN0JnK4GAKx4zJTTiikOXeLcTHoFAoucTODhPzApHCv12DTj5TdEcOAA1AeaFID9khOz4qFYHL6grh6XeDcaTEK3Um41i0FVxll8XvQM8bQj05W8CUFNneJE5Y//WYcxgtmAlzyqOuo7Cy6FwPqceXyHPaz2OX3BNsmQz3DaHGP4r0hUTnXfV3FVkg5tpbeqgKHIkzD3AM977oqdACrUEcnOcCIPVRQVD0fhliUWUrH+1VNb37lEfYa/6WM0uf5FLiGnEx7cY9ksnKXW+AnMwJAs87rtXiEP2vWZhI1CizwwxfcWHLKWHX/0yzycY5aoiN4RPehw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3948216-ab4a-464d-c99f-08d6432b42bc X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2018 14:30:40.4979 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR05MB5364 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 Add support for basic AMPDU/AMSDU aggregation control: - report initial aggregation configuration to cfg80211 core - pass AMPDU/AMSDU aggregation changes to wireless card using set_wiphy_params cfg80211 callback Signed-off-by: Sergey Matyukevich --- drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 2 ++ drivers/net/wireless/quantenna/qtnfmac/commands.c | 17 +++++++++++++++++ drivers/net/wireless/quantenna/qtnfmac/core.h | 2 ++ drivers/net/wireless/quantenna/qtnfmac/qlink.h | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index 51b33ec78fac..98bd0a3d29db 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -1087,6 +1087,8 @@ int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) wiphy->retry_short = macinfo->sretry_limit; wiphy->retry_long = macinfo->lretry_limit; wiphy->coverage_class = macinfo->coverage_class; + wiphy->ampdu_enabled = macinfo->ampdu_enabled; + wiphy->amsdu_enabled = macinfo->amsdu_enabled; wiphy->max_scan_ssids = (hw_info->max_scan_ssids) ? hw_info->max_scan_ssids : 1; diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index bfdc1ad30c13..6ab0a25b917f 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -1531,6 +1531,7 @@ static int qtnf_cmd_resp_proc_phy_params(struct qtnf_wmac *mac, struct qlink_tlv_frag_rts_thr *phy_thr; struct qlink_tlv_rlimit *limit; struct qlink_tlv_cclass *class; + struct qlink_tlv_aggr *aggr; u16 tlv_type; u16 tlv_value_len; size_t tlv_full_len; @@ -1571,6 +1572,14 @@ static int qtnf_cmd_resp_proc_phy_params(struct qtnf_wmac *mac, class = (void *)tlv; mac_info->coverage_class = class->cclass; break; + case QTN_TLV_ID_AMPDU_ENABLED: + aggr = (void *)tlv; + mac_info->ampdu_enabled = aggr->aggr; + break; + case QTN_TLV_ID_AMSDU_ENABLED: + aggr = (void *)tlv; + mac_info->amsdu_enabled = aggr->aggr; + break; default: pr_err("MAC%u: Unknown TLV type: %#x\n", mac->macid, le16_to_cpu(tlv->type)); @@ -1814,6 +1823,14 @@ int qtnf_cmd_send_update_phy_params(struct qtnf_wmac *mac, u32 changed) qtnf_cmd_skb_put_tlv_u8(cmd_skb, QTN_TLV_ID_COVERAGE_CLASS, wiphy->coverage_class); + if (changed & WIPHY_PARAM_AMPDU_ENABLED) + qtnf_cmd_skb_put_tlv_u8(cmd_skb, QTN_TLV_ID_AMPDU_ENABLED, + wiphy->ampdu_enabled); + + if (changed & WIPHY_PARAM_AMSDU_ENABLED) + qtnf_cmd_skb_put_tlv_u8(cmd_skb, QTN_TLV_ID_AMSDU_ENABLED, + wiphy->amsdu_enabled); + ret = qtnf_cmd_send(mac->bus, cmd_skb); if (ret) goto out; diff --git a/drivers/net/wireless/quantenna/qtnfmac/core.h b/drivers/net/wireless/quantenna/qtnfmac/core.h index 293055049caa..e6752faf0f50 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/core.h +++ b/drivers/net/wireless/quantenna/qtnfmac/core.h @@ -94,6 +94,8 @@ struct qtnf_mac_info { u8 lretry_limit; u8 sretry_limit; u8 coverage_class; + u8 amsdu_enabled; + u8 ampdu_enabled; u8 radar_detect_widths; u32 max_acl_mac_addrs; struct ieee80211_ht_cap ht_cap_mod_mask; diff --git a/drivers/net/wireless/quantenna/qtnfmac/qlink.h b/drivers/net/wireless/quantenna/qtnfmac/qlink.h index 8d62addea895..7dede44c75d7 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/qlink.h +++ b/drivers/net/wireless/quantenna/qtnfmac/qlink.h @@ -1154,6 +1154,8 @@ enum qlink_tlv_id { QTN_TLV_ID_WOWLAN_PATTERN = 0x0411, QTN_TLV_ID_SCAN_FLUSH = 0x0412, QTN_TLV_ID_SCAN_DWELL = 0x0413, + QTN_TLV_ID_AMPDU_ENABLED = 0x0414, + QTN_TLV_ID_AMSDU_ENABLED = 0x0415, }; struct qlink_tlv_hdr { @@ -1195,6 +1197,11 @@ struct qlink_tlv_cclass { u8 cclass; } __packed; +struct qlink_tlv_aggr { + struct qlink_tlv_hdr hdr; + u8 aggr; +} __packed; + /** * enum qlink_reg_rule_flags - regulatory rule flags *