From patchwork Sat Feb 12 18:04:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chad Monroe X-Patchwork-Id: 542391 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32DB2C433F5 for ; Sat, 12 Feb 2022 18:05:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230259AbiBLSFD (ORCPT ); Sat, 12 Feb 2022 13:05:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbiBLSFC (ORCPT ); Sat, 12 Feb 2022 13:05:02 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2101.outbound.protection.outlook.com [40.107.236.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 972642FFE2 for ; Sat, 12 Feb 2022 10:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E57EZh8onl6wirKzIkLKGEHpQUJ+mbcMu2rUOR9oeHXWYMtwx/w/09fEJxSY2KMve5hImS6XVp5iE1kKw66Zxd0L9Fevtpuzs8LbbVCwc1AiDP4sw64AVv7sFpcqFicwXry2VCvPaQJXOMfnDqJsXHk74eb0f1zvTpehhUpQqvKeOzc91LGsK13qDRfwV09ifodvQW+nzx8qdK0CgocnSyNt7uw7YJU59zF9hUVL2Be/G1NBw4S9Mpq4CS2eumEaNQY09OH3UAQckkjNrYJNfeTp/Q1+ppzqnAT2H4b294epoTjsRh0eaOMcpcuzo8dfeyejycnJI39+Elf/AgH0HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c4vvXwEd8D8X6Unvuet9MM/gePNekHbHRQv963hRnP8=; b=ofBQDVFxxGB2UhQuhP+4rbJ33Z8lLvag8ITTScvvpkQngbnKkgkxouhYVrySJ1gagLo/HL2+uKGgTV+YACInjHtZCkiz6ivvcu/4Fpb0jjCOG5vom2Fn8+njle+poI2RBmhwj4XcWssRSsOWBsQZ/5hh6Jc7+JmmLMfGFPshOaoNKLiac1vYCIm4bSLa/McSKXGKcZsFhi5nCCu41UMxsfECopEA2EJAWrsMz3ITjBWfQf45HuU80hqFpkfWgLYRSY2BFW9HwzoUNY/Rx4wUP3Vf8+rnUuasAEZgA2E+jOihyPm3yXsU4DgrtRzmSJxKiVAnOZ7J94rQ0wsXcDkgzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ADTRAN.onmicrosoft.com; s=selector2-ADTRAN-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c4vvXwEd8D8X6Unvuet9MM/gePNekHbHRQv963hRnP8=; b=XzTUMKgV7wrEH29q5Ca1WslLE5d8yjB8tGx1pwX+1SZ2g2Z1kU5T7sdaywUu1I0eye4CJw4urnKTQP9Ej7PU1iuEsHIDeS/l5kWTX9aybvh1Xzz8C5mT0wj0p/k8A3QUBnjN4rfyG7Nl4EzMNNfgu3WCYDpnkCFbRcW1UzLzgBb0lcXridZvXoCrpcfp7VHX1AXcFWRCoeOLlJ/XjRkE/9BdizTusYSrlsb0BGntZ0RNdNX0syXTOY9WYVI+vZYEqiYrpEV8/aE/Vh8oUEfLsXHrN02YBFm3stsX00OIVYvOd1LbXEE+KCwwIMyCOHnfWpvuCK0xEYRWl2mrFt6LCA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=smartrg.com; Received: from BY3PR19MB4915.namprd19.prod.outlook.com (2603:10b6:a03:362::19) by BYAPR19MB2918.namprd19.prod.outlook.com (2603:10b6:a03:b0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.15; Sat, 12 Feb 2022 18:04:51 +0000 Received: from BY3PR19MB4915.namprd19.prod.outlook.com ([fe80::c4b6:39e6:4e2a:4206]) by BY3PR19MB4915.namprd19.prod.outlook.com ([fe80::c4b6:39e6:4e2a:4206%4]) with mapi id 15.20.4975.011; Sat, 12 Feb 2022 18:04:50 +0000 From: Chad Monroe To: Felix Fietkau , Johannes Berg Cc: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , Ryder Lee , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Chad Monroe Subject: [PATCH] mt76: connac: adjust wlan_idx size from u8 to u16 Date: Sat, 12 Feb 2022 10:04:26 -0800 Message-Id: X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: SJ0PR03CA0116.namprd03.prod.outlook.com (2603:10b6:a03:333::31) To BY3PR19MB4915.namprd19.prod.outlook.com (2603:10b6:a03:362::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f6b8644-ac5c-4de5-9f3d-08d9ee5229ac X-MS-TrafficTypeDiagnostic: BYAPR19MB2918:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2276; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YGWuPdh7lNvxLzMXOqVgu6647lvzb4DpREXD5IQ2rOBrcR4SaDClnv5OwETHEvfuQktiCnFPDa97LSV+19rkApQP73Fqi7ihHG8dhVhcyXlHvKuDmtOaqR22YV8a860zOajzp/ENhodIEJNg5m0mDWL2yOs2E0qL1XiC2xg5xM93yL2NOFY6mjHmv7iw4RCuYVLVfvV59WuswwIrWPnnnDSmqpZHYf7m6uBvNT6NbQrHLqN94n4AIJ92JyNNG+48iFJE43DnrxIq+UvZJPjQJnpGtr33iEuKwOWLMeGfmorTY3p5fwadt2YUsmwKwBdk4LkxqPslC+RVNbPCqGQL3JK2C0fT8NrE+0zyJRQh+vHunmdoSz1U+ydQqqVGJIIqgj71WNVEQrqygp66OJALDvCsoqjOdE0B3Ez5hQ41/QpCpS+44S0bdjz2nuw+EDIVJ5hgA753zUZayunlyVhE9w+xet+aA8BieXWkRZ6m4v5KsDOKEqPa4gOl9COa8+moajE73i7A82QHY9rsYR7qv4H+b1wefvRRHAytH3jIUmsMrSs4bxKGuNZmCEGmjlqPg0dbV+FtIG7tbBLOWV7jWb4WGx3J+utVc118wkhwCaNSZLJjGugKz1OqRrOQcvXTYnVPUVwgRQq4pfc15KmrbHbw2c8GRb0qckVoWWjO3cLwnVfi1/XIXBDB51wCYGD9A82mqssn5aCffJz3/bI2fw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR19MB4915.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(4326008)(107886003)(66946007)(6512007)(42882007)(186003)(66556008)(8936002)(6666004)(2616005)(508600001)(83380400001)(8676002)(66476007)(2906002)(26005)(6506007)(38100700002)(5660300002)(38350700002)(6486002)(36756003)(316002)(52116002)(44832011)(83170400001)(54906003)(110136005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3tHpt8d/NLUZQ0cokYRH1gwAomCZ+FPmhLPWK7qFlqNDUbSMBfexERj7OGTpGwOtP7NYpNHqFa9jUY8IIWxNx/BetFPq20S5Oxr1Mzy2yt08BNr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qTf4u6B0H+MpKpEtdOrF/e7hOcV8gl54Nk53WHi1agDGXL/jCv4ucCj6kG7b5QPfHsfruI9TGrAOqRieu0um4T6D9LIqZTePmtKUFlsbuB6h2ktoR0O7Voss80+T/8xch6DGpnOXePPP9HYN2iFQc2RPOFoYllc/ul0djGL5+1tHd5pTAWu8ZPa5OhdDslXxJSrHoPgDt9K3UtUhMOX0hj7KTvf0UXTay15+JpMpcfCFUEZ4rgL0TDy+KHeHn3LdVgJ4zArVNZd1vIj7EmyFh7xFlTeIYIkbwHmGRhyPusn9iJm9KBLYN0ZGkoHKnm0N7NcmKSV4n+qiM2v5UADry+7r2YGgeLb/XzVKhEqoXvdFJJbz4yuG+zKP5dsxrOLr8ZUTXfqRyddZkjTu50zrz5OJijMvjFrUY8CRB3jDjX4d6sOdECvsLHzZjHM88= X-OriginatorOrg: smartrg.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f6b8644-ac5c-4de5-9f3d-08d9ee5229ac X-MS-Exchange-CrossTenant-AuthSource: BY3PR19MB4915.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2022 18:04:50.6980 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 423946e4-28c0-4deb-904c-a4a4b174fb3f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tRUNA6CG4DwYpaa/vmXiSaXYYSIN8pmoYX5iqMIpJIr8iyUV7W9I3Q5uw4OslB9T36S56gxcngvVtYuWEnJ5jQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR19MB2918 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Newer chips such as MT7915 require up to 16-bits for this field. Signed-off-by: Chad Monroe Acked-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c index cdd82a62eeb1..f3fdd755a3bb 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c @@ -2656,7 +2656,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_bss_ext_tlv); int mt76_connac_mcu_bss_basic_tlv(struct sk_buff *skb, struct ieee80211_vif *vif, struct ieee80211_sta *sta, - struct mt76_phy *phy, u8 wlan_idx, + struct mt76_phy *phy, u16 wlan_idx, bool enable) { struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv; diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h index 7b9d82dd3f9d..384c3eab1c8a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h @@ -1642,7 +1642,7 @@ void mt76_connac_mcu_bss_omac_tlv(struct sk_buff *skb, int mt76_connac_mcu_bss_basic_tlv(struct sk_buff *skb, struct ieee80211_vif *vif, struct ieee80211_sta *sta, - struct mt76_phy *phy, u8 wlan_idx, + struct mt76_phy *phy, u16 wlan_idx, bool enable); void mt76_connac_mcu_sta_uapsd(struct sk_buff *skb, struct ieee80211_vif *vif, struct ieee80211_sta *sta);