From patchwork Tue May 9 17:29:08 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: 681807 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 0678BC77B7C for ; Tue, 9 May 2023 17:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233108AbjEIR3S (ORCPT ); Tue, 9 May 2023 13:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234987AbjEIR3Q (ORCPT ); Tue, 9 May 2023 13:29:16 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 427403AA6 for ; Tue, 9 May 2023 10:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1683653353; x=1715189353; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=iGO/Ej1zfT5QGpXiwc1KKOxocG8E8DHbcaAd9f51dnU=; b=ICE8lgMlJ13Zn/V3Ovs/klM1/sGgBHxBgUKuUTP3uHuH4JrC/B/q94zi 5O/IjegEI5Nank+dfTJ8Z6ZhYL4YDxzkhogmjkOg0Y+YuvP9+H6WPMjU8 c0QAHGMCjn56H/P8MytZYGyVCpCSPGeEc7oPjcX5owRKs0xS6A4buXIdN CNhM+uVCvb7Zd14u9n1YdWd6/vz6vOy+AjZ4vQp1nXb9KkstU2tcN4noo 3wYmgCt1DHOpSLEzURup54h07C4cHPINWQkAEI5NIlYCrU8RIPvOSislW G8YfNispgg/FA/ARSWtvWtQG3rJax6R64O4rFLEuF20c7u+Hg5NnUedQt Q==; X-IronPort-AV: E=Sophos;i="5.99,262,1677567600"; d="scan'208";a="151161360" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 May 2023 10:29:11 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 9 May 2023 10:29:10 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Tue, 9 May 2023 10:29:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MjAMKiZgZtb2BuyQPw2/zp4s2ktuQBoGuxsnrlUSXYA4tCJ1UeB0bx8YA1T6qso38wW5O+FANwfdzb1tJFbSn2hUCe0TmfcmITazfjdaKYczh06Jk6/Epll8Mp0iaKN/ge+1ZOGhJyArvRw5Qhvvkv0ji2Q1kKhc3Iz3D3i4obegOk0DDcmMsi2uOyjGhj5Uk0bKqwLAti1O+5RAOrRXTDiSKSWwtGks5yZyhyZANsuZz3qKWKc/DTGc9ZUgwZgDIphM/ChU3md7NqDvcf1Ak1rh4Hee47CTFR+0OtYvvJnzt0wXdQeAtMAoT6peW/+bfR73hioAr07dxfyPh3fXlg== 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=pg6Sk+Z9xzLSMuOCKVj8bzWOgvKPuITyU2LM1h5/OWE=; b=hFUkNUPvkrhV0yrc4lXYXpN0tSlWpbZf11Pqtc4+6dw62s78Wy1BcdWpbNXkdzwQSchdG0HoxbYc2TTnwGb3Ry2ZLfkyjK2Jo5UeqCc789j8htvsF6gLAQxUXwcIwf067jhIOdc8Q4o7VQJ5iowacmJMy1AHRvfCq1HM9zlWNste+Vd/2NXghba73F6KASgfG5HHhLmEFmfnu0GiyjYa1ibTh91c9NoWeFXmHiGirIuj275/Myu0eBrsRCLXvcM3uDOlu5qUEyqZdtV6vHjhsgBA+x45FDjWYSvqTdOXH6xdZHA18c44dUEa/1t62efeaj8/SwStL4U5JpKiDPf16A== 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=pg6Sk+Z9xzLSMuOCKVj8bzWOgvKPuITyU2LM1h5/OWE=; b=Dbacm20D1Ms+tRFyfHu5fucq6PjryQHn0dQBzdI0zQVmCLQsnPxI1BoQFjLVBhffHBsZSNuPpK6D/wlSaR6s5L0sGx1qHr3azeCM6mOlhG53vacS9WFkKtw1JumuY2bfBzHWjvEQicmmZZQlc93uowywyH93nTixyqyNYDQDOvM= Received: from CY8PR11MB7393.namprd11.prod.outlook.com (2603:10b6:930:84::18) by SA0PR11MB7157.namprd11.prod.outlook.com (2603:10b6:806:24b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18; Tue, 9 May 2023 17:29:08 +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.033; Tue, 9 May 2023 17:29:08 +0000 From: To: CC: , , Subject: [PATCH v2] wifi: wilc1000: Increase ASSOC response buffer Thread-Topic: [PATCH v2] wifi: wilc1000: Increase ASSOC response buffer Thread-Index: AQHZgpvD4gHNzzslwUWj3ZZSN8BEeA== Date: Tue, 9 May 2023 17:29:08 +0000 Message-ID: <20230509172811.4953-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_|SA0PR11MB7157:EE_ x-ms-office365-filtering-correlation-id: 43807e82-fd5e-4114-b33c-08db50b2e584 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7nqRI2oLTEHTD4VtsrntYPt5QDFPrzFXTFfR/MyEa5JRU07ZHugBCIXdBl6Ak+2+DABeURJoytxNF++0E+oIV8SIQs9ER00ifkhL72IxmquiaKTWn+T3qJU4iSDKTPdLOlGajHbwk2TAe1HJhrYW0QQW3MfqVXFHDA/ix0oX5luRK6kwUJgZVNqpJYCvz4DIZhsHThzac4lUTx96ql3H/Pm7DCbeg55Mxo+oLZEDecqdNQMc0iWZWgs7Sk4K0xJrZK7bXRNF+OwiOVGsuQbiClgUqzOeBVZlhVwzSJQD7A2IIU1iJUwTPXXl4Qt30uiuztzdUINcFjgj7XMiN1LxUpow6klrxD5EFUIyMO6G4ZIwYje8PfNNSH01d6TLIL66Ha5Ob53umjUpSKb4kbeEbjD8qYd4kDeIebojd7KkbqnxtXEWZXo6nH7mOS0ZP0cRyIv7D5gHXvvlbwWLIps34Uu2UmQdT4fkLLqzgUHTZlJ5WO4O65nA3CPXUbbx+lNYXtrarqpp/oKDXC7TzjtuMXZ4w0pQA7u34cMu7h5Vd2sBPpd1xYEhxkXdWxUauQCwzzKldQMev5zve2u1ADp2b6zrCNqcWlkmuurPCQfOdkFYRgU1ASMooJadxR+xQVKz 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)(366004)(346002)(136003)(39860400002)(396003)(376002)(451199021)(122000001)(38100700002)(38070700005)(36756003)(86362001)(6486002)(8936002)(8676002)(5660300002)(478600001)(26005)(1076003)(107886003)(2616005)(83380400001)(2906002)(316002)(66446008)(64756008)(71200400001)(66946007)(54906003)(186003)(41300700001)(76116006)(66476007)(6916009)(66556008)(6512007)(6506007)(4326008)(91956017); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?DijIVptpely4w6l9nJLgES4?= =?iso-8859-1?q?CqjngEgd6nbriJqRABYSuRr3xocy35/GpsVVGoCEhsysNFvkr8opRy6d96Zn?= =?iso-8859-1?q?kloTNl49IqlXxEudd7q4/+5zuQwycsDnbj+GlmTRpI/rOHH5xgVDB6vemVjm?= =?iso-8859-1?q?5vXCLv+FHx0EIoa+0e+k6XdrkeeO+YOfTZ/c3Qakk3Jwbywt7DX69pWlNNvL?= =?iso-8859-1?q?cBQiPhkdHSk5RKFxfJRl/gb1IVRj607ghrTdXoeis8ncjvu5RWuBfSJhkc9W?= =?iso-8859-1?q?CdRtyPvVoqjxC8uLRYnFuWgnKy42g64EHD//eD4FfFsxY1cRS8Lc6/df742B?= =?iso-8859-1?q?BVXaNSpI5uO0q6OwtCETPfj8HNjKDAvMaXXL8UzGvRX+CZjj5SacQu1Wzcf9?= =?iso-8859-1?q?j2OCIFhNvQnYFwZ3IBy82BSNI+/XDAJ3V6Lqde8u6tYCF7d+HEkakue+z13c?= =?iso-8859-1?q?A3xzk5CQbySDN+Pu8WMASQOiLXFtE7gH0szzz9WRO4sjUIeDtyg0gOXblUzF?= =?iso-8859-1?q?60tk/NksMGeSVz7svFIoZLN/0bH9/7kuhwfjcUY7JZR9eEkBGgumXUAB0mNn?= =?iso-8859-1?q?Qx0qx5uesYqNuSETQbasPUwnOPZXYupKKQUVZf+9ukWAAQ0OZrjuJXPhwIxo?= =?iso-8859-1?q?5Q8L3JDPzHKCFIsbyhLNKTsLPE4iHPucZOlMVuSxho5zOxt+fvVxvDGwEPvW?= =?iso-8859-1?q?HYbkkKk1FR9QAAE9ufN3ktwpNteToaXtg8ncbySrUtXr/M+5LcXdYEqzYNRA?= =?iso-8859-1?q?9f9CeutqBbM3C6bNslULY2t9UEU5cxWacEMjjMpORpkVuJrngXMXz7M+e5n0?= =?iso-8859-1?q?/tYMk9gI2VLGOzX69yU2Z9Ylk3+bYbzQXubCMndgb4V5Kh27K21gzJnz4JTY?= =?iso-8859-1?q?K/nAn2a/nl7I6BASmOk6igVnYnuSgIlhJ0L3sw9920iKY1Byt4RHtHY/dC8n?= =?iso-8859-1?q?azCi1olMo0nnRkr9e48ed7z3ZTbayBaY6GuwPL4pxxoYuxuK+tkC2yLoIuPk?= =?iso-8859-1?q?+ar+KDnCNEoelowz3CrIhpbRQIDoRH5zJ06CZywXA9qyH3pf1BmzTUgJSt4v?= =?iso-8859-1?q?k/Hn2uQVV0VcixfN2roYQ6nJsPxKgiCqV48vs+hh40pkgRhqgAb2OkCAp1f5?= =?iso-8859-1?q?F4kjJ/RX0gWH+B+iaTmMPYLBbxff0nZu+QqxPp/0LdYW4OFJWn2CrGMy9Y2G?= =?iso-8859-1?q?hizFm8xn571BVA+d74StdnombXfeJ755o5IRmI9EodA6UnS/Au7xnzXnLSAN?= =?iso-8859-1?q?vedX2YS3sHYji6MsNQmUbOC3mjxw3mYI3v9sXmKlY3GRu8JuTQHnmvjrskdT?= =?iso-8859-1?q?7YT/Yx8ONb0vEbehVjygYCjKWtCiyMcdhbrF4ozryKNzgoy3PzvHvMNiYdpL?= =?iso-8859-1?q?xvZLoEcgpyh8JsN86xHfjjKT/WWiDfL9k2/c21FJCLjtgAc+oyBrjo8eoX0d?= =?iso-8859-1?q?BD/UGAhUiZllbh7PwF+okxMo28MVYsRKbOztvhsaTc9QdbHBWJA8lne8Vs6I?= =?iso-8859-1?q?BKRzvykCz26QBUkdk4URtA2M1zEFUjrkW/RSbpUN+keiJQ04nVzsdD9wHcu6?= =?iso-8859-1?q?3SLCcXZzW8/rPtcjEOhOQ+m7BiHCyBDadW2TakvjMZI677NsRUTQrvhgV3N8?= =?iso-8859-1?q?ahg0tUakXVXkFUHzcvja9Yxw2A6O9e34sKSDWFA=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: 43807e82-fd5e-4114-b33c-08db50b2e584 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2023 17:29:08.7834 (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: xTwePcOX2RdFK4jiFFXKFrke2pD36JVte0OZ0HBWFuPGe2a77sJELGvh9k+surqKLPW1CbVYmridr8v02sAJog+kusNsz6r8uG7FtTy5kTg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB7157 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Amisha Patel 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 Patel --- v1 -> v2: Fixed From field and Signed-off by field. --- 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