From patchwork Mon May 8 16:19:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amisha.Patel@microchip.com X-Patchwork-Id: 680198 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 AFE6BC77B7F for ; Mon, 8 May 2023 16:19:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233557AbjEHQTr (ORCPT ); Mon, 8 May 2023 12:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233993AbjEHQTn (ORCPT ); Mon, 8 May 2023 12:19:43 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F67C7 for ; Mon, 8 May 2023 09:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1683562781; x=1715098781; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=Lw8uX8WgJToYx9dkDK5V3atibH8n+3TYF43BdT/FRKY=; b=Ai8pG6mwSYhjclIysAP8ovaET+Z9MNLxvqqlVYIA0idLM+enI5agtv0X DKoL4hqMHtB2ac/K6s5eHICDmhVGxGG/cCdTKhAuYhtNkL0r8BVc4ro9v P7vVevDb0cGWzIwp1jtGtyy0AvBTwMpSTTh2fHvW07uHT7XokWjCI3WHU f1wKiwVdYwlBb3DsANkT6kMJ9Jg+ZDWjEN3QhnPFGOoTQSXR3nbW95fgR b/ijb0pBp4o2Y3PuMESw0GwBrml77JTP+wIhI77GS5K2iTegxoMtpI59D M4j0eHHs6T3K62FF1LOjXSOD5p9a6u4MPQGQxf+KtwBwOvSfSXjJi6tHe w==; X-IronPort-AV: E=Sophos;i="5.99,259,1677567600"; d="scan'208";a="212416193" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 May 2023 09:19:41 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 8 May 2023 09:19:40 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 8 May 2023 09:19:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jxu+WbI3OweU6aGer2ADcd9Xnajgl/w4622nv6XFVRpkMYvlZFi11msygv8gBzUWiIznzWcgsIYRJ7HFEK/kZWaq1TPOL7gG/QJK/mK3Aj//b3wSR0XX0kYrIFaEgydxNWiFJc7Nf7d51GO+tmiKqeqDKWfyvJjxdeHg1CbRAoGnqIwJT3H0KtPlXgtHsKJ3Y/A3b0cmU+cRH9g0urSnrhEssxvpa6Etkae3lnXDOv3EBB8Qs0lYtpjKb1BntILlueezf1eX0Ri/IyCf26irj3SA3V0Xgmpa27qyJokzP93+dP9t5xF7RmLYsMZSWvpW50F+VLxzS+z5y9fhB3YEfA== 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=asCF4RzinGPaKQncVg8qRD0t+sE3UUwLxIYlHtmpRCM=; b=M72jzkzmMIMh7YGOuYveKaktRKg8tZjh5vRvuk06zYMXkbunmnf8Rr7pwP8ZVrB1Mch0RbPRpYQfG+h25JXikkiuRkeqtlZwo9S0YpD6vGIkuRr3C7IZEdCLdMI3OIZ1lOcrv/qYKgLtFxGG3fcDJCixMB2cWkaB3NhzqbzN7t0jiwkhHrtXkC83DeKETD2BlH/hVoffpKsfARTRv9xFDmzT0KpQiy83zHU2LYJufXuulwaVUAvaNtsBD4X7G5+5AZvxc0P1ExgRYdRtOYFnAotrw3lptgAzkGHIAj+OB6+uqw3PBXfzS1r+QQOmzMXUUmMtAk5tNgb0e1CHTuCg3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=asCF4RzinGPaKQncVg8qRD0t+sE3UUwLxIYlHtmpRCM=; b=W571RubV2GKdo815QcPGgFPrP1jJYVRUecEJq2VqvIXHUHcKRga4urWJWVA/yUDoUInzjRg8ag7aT56w5iwDqoTPHDtus6wzXhFNzgPRzCwkbOlrt5YjGmpSqsofo+Nq0rbfajSko1imSkylvvbHsr31vzz60S3LxeCnaHNJu+U= Received: from CY8PR11MB7393.namprd11.prod.outlook.com (2603:10b6:930:84::18) by IA0PR11MB7953.namprd11.prod.outlook.com (2603:10b6:208:40d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Mon, 8 May 2023 16:19:37 +0000 Received: from CY8PR11MB7393.namprd11.prod.outlook.com ([fe80::120a:e19e:e1d9:4711]) by CY8PR11MB7393.namprd11.prod.outlook.com ([fe80::120a:e19e:e1d9:4711%7]) with mapi id 15.20.6363.029; Mon, 8 May 2023 16:19:36 +0000 From: To: CC: , , Subject: [PATCH] wifi: wilc1000: Increase ASSOC response buffer Thread-Topic: [PATCH] wifi: wilc1000: Increase ASSOC response buffer Thread-Index: AQHZgcjhXtj+hIJCrU+IfaMyxwn9bg== Date: Mon, 8 May 2023 16:19:36 +0000 Message-ID: <20230508161848.3509-1-amisha.patel@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY8PR11MB7393:EE_|IA0PR11MB7953:EE_ x-ms-office365-filtering-correlation-id: 78acd668-6be8-4493-3632-08db4fe00471 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qI0ilod3sTssTC+Iu0q3/Zk3XhT9D0tGv5XsoDROIvHUZD4w23CF0/VJtXGxRlCb69lmSfrs2esJqqtax2iPO23+HCABtiNcoOgHe4CA3oUYNIL8cHJYp60PEmbDGw7CxomvPJF6qdfUjhm+0lFJlpAcn5g/0WRRUqxBDWBelTcXU2pXW9t31PcpmHk0ORRupv86N+F6N9PKlFwg4vwNMZv5Tbg7kiOBh17dhArlkSQu1Uvxvyp8TdPZ22rc7rZDEunX4Y0jrOLJC1ld0DsHtND1Hh2VxFheA55pdhErjugWW52/lok03lb5uQ4ZCAcb2Vy90Z2ZI3O8cZZz8U6vp3O/dPWiFY0HBIKM7UqD0HaFYETzZjASgR9mtaE5jkG6A84+G9w4oHEIJN6TFzP/S/cpIRu8aKxfpTLb6ltHGxj/wBqHOYEz7QPJz6Rvpp/NAO1ewYn/Y80gO0tf2Zy+nbmvsY77npdUNAhZ2Qn7CbWJP/QmJib8QRcHMc3uSL2Ro1HS1kqSH3LMPo/CJgzh5jy89QmHHDqPYE5AqvhbE3T8Z6uG+ra+MNE/672aw3xSbFm1K0mNlTLESO07VdDZWm2fEhIFq8EC0I+1BF7NiBnI34/6S1Y/yXpJx09EyJmh x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY8PR11MB7393.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(366004)(346002)(136003)(39860400002)(376002)(451199021)(107886003)(26005)(6506007)(1076003)(6512007)(6486002)(83380400001)(2616005)(36756003)(38100700002)(122000001)(86362001)(38070700005)(186003)(71200400001)(54906003)(2906002)(8936002)(8676002)(316002)(41300700001)(478600001)(91956017)(6916009)(4326008)(66476007)(66946007)(66446008)(5660300002)(66556008)(64756008)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?mxxIKOCCyQr1pXvavhSY1IN?= =?iso-8859-1?q?Wi9Qa6g0QJVOUUYmnG30hB4OFVKHNtToYkV6NXrpMIV8gdEq2LCMLL8eG6H/?= =?iso-8859-1?q?7aDw5oBPVYc2cXJMNSS2aFYvCOG7ss87OEcekWfV1i4GIVuCR9DBxhW4Jv9Y?= =?iso-8859-1?q?qNtSgDPRspZ4LbSYdf5X0u0FAY5Rk9KYFPPjYt8GhxdbHt4fam33GDWWuCP+?= =?iso-8859-1?q?8VpFTn12nB4zh2RPL8cLAsKXM4QF/HDUau5Nagoe71vk2TrJs2sluQJGZrsS?= =?iso-8859-1?q?4zkZL4MJVUdtvJF4p7OsJGNGk3XbfXpPunPhap0QIiYfElQLf9+CijauF3wF?= =?iso-8859-1?q?dn+PT4+SWln1aEfBXWFV2PFn4/02YLEbccDEJGAVELvudwK4/vVCD1ydeib8?= =?iso-8859-1?q?kdEql/fW8INFzuj0HkPUBDhebLw1WA1A38uiVg3rQzVQ9XLt/rFtM8djYLfx?= =?iso-8859-1?q?gxY7itNgHHStXEAP+8fqaF9eR8qsrrELIk5EaWCiD+4uy2Bk/T22cIILfRXO?= =?iso-8859-1?q?QorX1W4FASxtYQ/T23L0/uxpETytRc4uT3drqbXXOuGPdjrYw01RIqvrT9wU?= =?iso-8859-1?q?4vpLRz6HlJnLNxwXFchKz207+LTvSXRPuubWwN/HA0GXV1CuV0r0HazHXTYA?= =?iso-8859-1?q?MXU62xDil2u1JJziRzsGCdItFsyb819ZVyX61/5SEInyJ2ceRgHLzOWrM70n?= =?iso-8859-1?q?axbnGT30rRKREipjNiNIWyTwl6uiu90ENuY1bNxcseN9/Gl/8RjE1gQUZcsx?= =?iso-8859-1?q?lbS+ZRGvC65bU1ZDna85Co0ih0CXeKmXueoCttCh+qxLmt4hRFxwTmo9Tl3/?= =?iso-8859-1?q?nTPSAl13B8AMveiIN912iEDoz3b/95jAFvtObbm15Hq5sII3OHGuv5nZcFTT?= =?iso-8859-1?q?X82Cv/C2AR7ud0cC4q85kScBSfmGJArWxzo8AwfK/rxYYHYrdChqnnsuo6Qv?= =?iso-8859-1?q?jzZLT4+ZIQNotKRaVmWVV2aymBO89kfx419y1N9RVJPWKwdnR1Xz+T6TsXKH?= =?iso-8859-1?q?OIjX5CcEb3ItEVtTM3MGslF16dxe4my12ehNsSwOawZsWkAXrP+Ul0UVixEa?= =?iso-8859-1?q?pUKujZkJj0CoAMaXyklQECOOUkM8gJmc1e1UnLFOJ1wrZ2KbNHeoK13FKM1p?= =?iso-8859-1?q?MBT1qxDYw8Hyc83mBtm2UstZRvMA2qtlWfcpZ/y12HgY9+ICcQTEA4vqjSNW?= =?iso-8859-1?q?+DLtB/F9WvHZjmizx92/hsJEnU42M7syGjH7UeyjRlbuSqS+uyi34hUP0Z2t?= =?iso-8859-1?q?0RFheY8/tpmFapubkwfBrIOtyHQZPV1udWdZ+lV1e0MZpDqi1RnEqYcLCV6B?= =?iso-8859-1?q?TqAkmUF4wI3mrm3oNqK66QN7w9h3R3Owads4qfsY6HZCWnwdxfQEKYVPAZzT?= =?iso-8859-1?q?3+0mnE6U5YSvQoZ0gvBLL5kohj4cYBbnpa1InBFPZ5dyt5nEooXTyuT7PuGV?= =?iso-8859-1?q?PbyjyDPejEqqyxCVKehpVEYidewrOZfP4kVax7gIGlLCC1jURmmC6vQ8DhF6?= =?iso-8859-1?q?HuQzgCLtR4+CXhOzYJn8bBIPvDjBWP+VFHGogYMmBa0A9iIedsMoSfiUo1a6?= =?iso-8859-1?q?D6E/rA2RiK+BX0TVG/GZX+zuhGYrra9cSWvzGcTgCpLI0to/njE0KrzHVebm?= =?iso-8859-1?q?9b3mqAG673YAX1aL84LlVx+Jpp7y7247FTv99xg=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY8PR11MB7393.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78acd668-6be8-4493-3632-08db4fe00471 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2023 16:19:36.8712 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: m9RnFK4MSSNc00PXzgw+JZxnvDet6SZsVnRPjLy1z0RvxLl3dW+eAeVpVHf1dA6lzFOxlGJvPTiGaN0v0brIb3hZ/NEafM2td7l9irYi5Lw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR11MB7953 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org In recent access points, information element is longer as they include additional data which exceeds 256 bytes. To accommodate longer association response, increase the ASSOC response buffer. Signed-off-by: Amisha --- drivers/net/wireless/microchip/wilc1000/hif.h | 2 -- drivers/net/wireless/microchip/wilc1000/wlan_cfg.h | 2 +- drivers/net/wireless/microchip/wilc1000/wlan_if.h | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/hif.h b/drivers/net/wireless/microchip/wilc1000/hif.h index baa2881f4465..8e386db72e45 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.h +++ b/drivers/net/wireless/microchip/wilc1000/hif.h @@ -30,8 +30,6 @@ enum { WILC_GET_CFG }; -#define WILC_MAX_ASSOC_RESP_FRAME_SIZE 256 - struct rf_info { u8 link_speed; s8 rssi; diff --git a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h index 614c5673f232..7038b74f8e8f 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h +++ b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h @@ -30,7 +30,7 @@ struct wilc_cfg_str { struct wilc_cfg_str_vals { u8 mac_address[7]; u8 firmware_version[129]; - u8 assoc_rsp[256]; + u8 assoc_rsp[WILC_MAX_ASSOC_RESP_FRAME_SIZE]; }; struct wilc_cfg { diff --git a/drivers/net/wireless/microchip/wilc1000/wlan_if.h b/drivers/net/wireless/microchip/wilc1000/wlan_if.h index df2f5a63bdf6..254a046e3b1b 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan_if.h +++ b/drivers/net/wireless/microchip/wilc1000/wlan_if.h @@ -10,6 +10,8 @@ #include #include "fw.h" +#define WILC_MAX_ASSOC_RESP_FRAME_SIZE 512 + /******************************************** * * Wlan Configuration ID