From patchwork Mon Apr 6 11:17:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 216095 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9960DC2BA2B for ; Mon, 6 Apr 2020 11:19:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67D0E2072A for ; Mon, 6 Apr 2020 11:19:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.b="LOuD2gmV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727948AbgDFLS5 (ORCPT ); Mon, 6 Apr 2020 07:18:57 -0400 Received: from mail-dm6nam11on2071.outbound.protection.outlook.com ([40.107.223.71]:6126 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727913AbgDFLS4 (ORCPT ); Mon, 6 Apr 2020 07:18:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C3aN1hmtQoIhqPsbAEedR1sawE3hJWmc1d/vdDTKf9aMzht/PDExYMC91ZzsgMkLvTjXeXtc+KoXGdh0TV7hj6m9B0QkAcTqxw2J/ZPsfDVvB9y0Zc9cTDfy07R+jMFnmp9KTdtJmJBJWZnMo6B+poyUGWlXb++07lOoRVghglhSBUqYpplROF1A2V4cK4np4nKzRnbOQNxXB1o24XGAalxAdSxJhXIRvENcAUdOB32ZVTbPCEEvfIv9BkdrpykVEDE3NzQUvE19L4iXtUr2luzSPS7oig+ledFUXmnbKV7kNZmRGDWDNz5o7uI0V2EofxP6pi7n6nPuYCYQpxbjAw== 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-SenderADCheck; bh=elWSuYBOgwonggNoaNuodrNnEMLkPTpW8aEoCYGVEdo=; b=R3zRWLvmTZL9eIrq0Ruv8OQNoWgSqARXOfTv0hQuqZNqw0+yBJSbzZIYflbnKAfFSH4YWXr9ujWG4NErco3achFArXwafOptAsslj8hOLMDckOdLd675avcGlhMI4IwHZYcEFSH3K6oBVyWXdQfvuMi7ExsMayjb8PHx1Vv0NF0L5pReDiyqIPJ/BuRxS7l8jLbUqxURpG2ctIMk1K1UXMhPH45bKJoVWCq7Yc279P8pV8LHM1o9RCqK0i5DkCJ80rGiy5BSRnXt0/Jk3Noo5Z3wsh2kZX2t4T+lQhh+oOlrGv8I00VcCj5h4i6lMYkEId055W8YGhSJx6svvIRf8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=elWSuYBOgwonggNoaNuodrNnEMLkPTpW8aEoCYGVEdo=; b=LOuD2gmVcfcVpGGlJD7imMn3cQYOFquySkS/rFbLG8qWitU63+PeSuUmZ6W2076K51kzcQz4ycKteIcWO9e/EONeIbG3368reKCzDFjeQQ4pK9XRmRcZ8p4EwbbTbP5eBvfjcWLPN45wbuPE3CbpmaN1rH4/c053QNUqigQiy00= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerome.Pouiller@silabs.com; Received: from BN6PR11MB4052.namprd11.prod.outlook.com (2603:10b6:405:7a::37) by BN6PR11MB3860.namprd11.prod.outlook.com (2603:10b6:405:77::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Mon, 6 Apr 2020 11:18:34 +0000 Received: from BN6PR11MB4052.namprd11.prod.outlook.com ([fe80::e0af:e9de:ffce:7376]) by BN6PR11MB4052.namprd11.prod.outlook.com ([fe80::e0af:e9de:ffce:7376%3]) with mapi id 15.20.2878.018; Mon, 6 Apr 2020 11:18:34 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 10/11] staging: wfx: make hif_ie_table_entry const Date: Mon, 6 Apr 2020 13:17:55 +0200 Message-Id: <20200406111756.154086-11-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200406111756.154086-1-Jerome.Pouiller@silabs.com> References: <20200406111756.154086-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: DM5PR05CA0010.namprd05.prod.outlook.com (2603:10b6:3:d4::20) To BN6PR11MB4052.namprd11.prod.outlook.com (2603:10b6:405:7a::37) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.silabs.com (2a01:e35:2435:66a0:544b:f17b:7ae8:fb7) by DM5PR05CA0010.namprd05.prod.outlook.com (2603:10b6:3:d4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.13 via Frontend Transport; Mon, 6 Apr 2020 11:18:32 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [2a01:e35:2435:66a0:544b:f17b:7ae8:fb7] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d13fdabe-3178-4e5b-de34-08d7da1c3ec0 X-MS-TrafficTypeDiagnostic: BN6PR11MB3860: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:449; X-Forefront-PRVS: 0365C0E14B X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB4052.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(396003)(39850400004)(346002)(366004)(136003)(376002)(186003)(16526019)(7696005)(52116002)(36756003)(5660300002)(107886003)(316002)(54906003)(66946007)(66476007)(4326008)(2616005)(66556008)(1076003)(66574012)(81166006)(6666004)(6486002)(8936002)(2906002)(86362001)(81156014)(8676002)(478600001); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: silabs.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 315xKUnHMHJOVze15UgM4RVO37eOddj2IaIeYoXlGcePTcsVvoB/8FLQlY2XgpDyE+eDhfGhtS82Ny9mJrs/lCFebjmkeqh/aEbHr3tLUAj1RWFmGXqVFjz/g9XYwuHhZucktOlU4iAfIgdpShOeHmoKcYJPStT5rTMYZXL3HpEIL4YGksgKUsmG4M9xGVdl6HSpNrncRgWpuhS/+CaaYmmyOd7RRzAoZvEOHUOCBOiBwzC4/801LZC5vdCP8FtxDOPal8ZJ8HxLgX0mbWO1VK7S1/8i8K5+P/WuRmb1FpguFBM3dO5Xc9xMTkFsF8isG1Bx0NWvGaFGFvoj3nK5ZzGfrhvlEyDFEI7ib++p9hbqtrzEs7CDqku+AmPqULUp8ZdXPBhCLBWaqybc94vV7hclcDyYljKchciC0h+/ina/ZVeon6wChgmlQCVZeupS X-MS-Exchange-AntiSpam-MessageData: zDQWJ+RLSxSo9LpogKEVPsFqh9FdNp5f5dqor+gTO2l+UreebpkE1QI2YIF+a2K6aGiwKITBkoX0vTZIgpsk9ohUK9SYCvWsf6HZyNUCn2/srgSqg6MoFAJZxTGDrGPr3WXY/D30Kk8I/pDeczV+6EDVbOSz0icA+P1KFaCmNHkKr3NZzDsPqSJIdvbVCVyRMO4VBxGfFtjx7lbjatsrcQ== X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d13fdabe-3178-4e5b-de34-08d7da1c3ec0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2020 11:18:34.5949 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fB35TiumVJRehIa9Miof3aCvUtWzt5hrYjnw1G3KIERx6xgnH8EE2Z4ESKPzJXzjXHwjFYUJc9MXCjTp0+RF0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB3860 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller In wfx_update_filtering(), filter_ies is never modified. So, make it constant. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx_mib.c | 4 ++-- drivers/staging/wfx/hif_tx_mib.h | 4 ++-- drivers/staging/wfx/sta.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index 5bca1e06995f..ac534406144c 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -102,8 +102,8 @@ int hif_set_rx_filter(struct wfx_vif *wvif, &val, sizeof(val)); } -int hif_set_beacon_filter_table(struct wfx_vif *wvif, - int tbl_len, struct hif_ie_table_entry *tbl) +int hif_set_beacon_filter_table(struct wfx_vif *wvif, int tbl_len, + const struct hif_ie_table_entry *tbl) { int ret; struct hif_mib_bcn_filter_table *val; diff --git a/drivers/staging/wfx/hif_tx_mib.h b/drivers/staging/wfx/hif_tx_mib.h index 77dedda0465e..0f8b3bd9f14e 100644 --- a/drivers/staging/wfx/hif_tx_mib.h +++ b/drivers/staging/wfx/hif_tx_mib.h @@ -25,8 +25,8 @@ int hif_get_counters_table(struct wfx_dev *wdev, int hif_set_macaddr(struct wfx_vif *wvif, u8 *mac); int hif_set_rx_filter(struct wfx_vif *wvif, bool filter_bssid, bool fwd_probe_req); -int hif_set_beacon_filter_table(struct wfx_vif *wvif, - int tbl_len, struct hif_ie_table_entry *tbl); +int hif_set_beacon_filter_table(struct wfx_vif *wvif, int tbl_len, + const struct hif_ie_table_entry *tbl); int hif_beacon_filter_control(struct wfx_vif *wvif, int enable, int beacon_count); int hif_set_operational_mode(struct wfx_dev *wdev, enum hif_op_power_mode mode); diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index c250b117a138..4d5dbfc24f52 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -148,7 +148,7 @@ void wfx_update_filtering(struct wfx_vif *wvif) int bf_enable; int bf_count; int n_filter_ies; - struct hif_ie_table_entry filter_ies[] = { + const struct hif_ie_table_entry filter_ies[] = { { .ie_id = WLAN_EID_VENDOR_SPECIFIC, .has_changed = 1,