Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5693643pxv; Wed, 21 Jul 2021 11:29:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHmiSfL9sA2tbV1Gc2vravwxOduyB64bQH4OCh+XDVnkEIZqOOLu+cvkQpNwLr+IIXIsyo X-Received: by 2002:a6b:b287:: with SMTP id b129mr27460838iof.209.1626892149799; Wed, 21 Jul 2021 11:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626892149; cv=none; d=google.com; s=arc-20160816; b=c41py/kW53zO+XbDi7yj1W8gTzn7KWGJpbgYNYJqWjyO8ilXPQuzWS5ln5S9UPFdKT hB5i1KvgKm/Y5rWLoApkXtOBM16gaMkRaXy5myrh5szEKebb+g0HgX9sokj23peaZMA2 zVA6BF/eIl4yvcfBUeihT7GhdxbM0zjIIKz+L119AuYDbpP7nsQV4wlRBpptkLnH01Iz fgU8M9F+mMfxF66Q6axOKOB+1A79fmDTyDb5cOWfSD9BGEZ0fO3pnet5kofqow0q+fTL lCZv1ZyByl4Pvw066Wxw/qz+7EGQ0rlO/D1v21uRsAkI2aGkt27SZj15EzE/6+xJGVxj +WiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bwBHs/wfdbbTP/xDyWCdRqI3v9B7SnfqEe4JLN+8zlc=; b=mRvsUTUxErar8CWp6DJ9xzhTA98wbQKlaU/AB2c2mxljmHewp6e182UwI6L4eJUR7y ZZJxrI9JEMOUSPBAgWUh9sN41xnDNtCzla2iKO+27vK9AT1H1k+lm4nTi+rtQXtDmatL /UxAS1GgrC8cToc3J2VD9sdRvhv/QYdSWiRX1imtCsYQbBDCVVbrh0noYrW992XmPuTq Dmp8QLZV9TvhprEG9f4OgXHAgrxfPhm6vG2YHRs7PI8WVLUgZKk/tf47Eqd+00NY0sxD b8RVtZThrXCsvHSMQVVNkOccRa94spKQGmBxeNsB1MwQRsoBE8ldBXWcFaiCO70P3Lq/ bGHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iduWjB3A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si26515178ilo.83.2021.07.21.11.28.57; Wed, 21 Jul 2021 11:29:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iduWjB3A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238301AbhGUNAJ (ORCPT + 99 others); Wed, 21 Jul 2021 09:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238290AbhGUM5I (ORCPT ); Wed, 21 Jul 2021 08:57:08 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1EBC0613E0 for ; Wed, 21 Jul 2021 06:37:40 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id t3so2422944edc.7 for ; Wed, 21 Jul 2021 06:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bwBHs/wfdbbTP/xDyWCdRqI3v9B7SnfqEe4JLN+8zlc=; b=iduWjB3ArSnnkWf/hyXF1SKw/bskl7XG6bKFKXEvVyxzVOtgj2T4nxbWNngdsarN4X M6veU/xTEVI5pmxzFUAUtuzDHXrgVQUopwpVKJqPIAAP63erLgjuhEZpFPmLnTOxNxg7 3HDHUXtNmro/LlX1kMIcrn0tsRy3CpDAU64799iyDvz8nV9zk3Il4pe9uBeHooP09NpB X5sHAM+86aCylEOIlXxpn7J1G9zQ71+gOqcIaD0jfNlIqUvnQcOqruI/kC3DZNp37p17 /kF4a9hQblc45QnggoAl2FM0CufmRu2E50XJ8GLzI0CbxD3PItG86JyxUcDBE+oxxqO4 urQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bwBHs/wfdbbTP/xDyWCdRqI3v9B7SnfqEe4JLN+8zlc=; b=HENLqmAN9yqn0HY68bGBuFBEwMJfHeb1XEDb5kKLSK9Jo9Aro0KjxhmxoMCWSA1m5Z OLehRFn3ET8UBwG+QqyKlQ08AquDedPljQ5cxUHRLTaRolQGj2KVnhUsNYzdGmuUQOuC sPN7YEzVg8prdEWxQztIBH579WZ+SVL/84dKa2GKRlTiKcLnZ7LdgQSqz0Fcm6iBZAMG Zw+QAl9GccViaMwrxxfs8hYoFK8BON81iejH4wRVGQXgqJRj4orF39fjl9WbddU1VFq7 PucUmFywa6LGZfXnrnXlR6lEW9OLf4KJOTr/M7EtII23GTWHwnI5xcu2wWXwccysROLq xkSA== X-Gm-Message-State: AOAM530VKJ0KWefXU9GXRWRXt1tKzAdJa8cGqrTZzL/IGboGuMcfTphK qnR9ipZ6QMJS33lrpKidxKXj7yTq60c= X-Received: by 2002:aa7:d84a:: with SMTP id f10mr48652181eds.45.1626874658944; Wed, 21 Jul 2021 06:37:38 -0700 (PDT) Received: from agape ([5.171.73.45]) by smtp.gmail.com with ESMTPSA id d2sm8318931ejy.108.2021.07.21.06.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 06:37:38 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 09/16] staging: rtl8723bs: remove struct ndis_802_11_conf_fh Date: Wed, 21 Jul 2021 15:37:16 +0200 Message-Id: <9c203ab5fe8a36b96f1f24e1fbf1a08ea0fa82af.1626874164.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org all members of struct ndis_802_11_conf_fh fh_config in struct ndis_802_11_conf are set to zero and their values are never used. So remove struct ndis_802_11_conf_fh. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ---- drivers/staging/rtl8723bs/include/wlan_bssdef.h | 8 -------- 2 files changed, 12 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index f189cd6c11ac..624bafd44ceb 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -2154,10 +2154,6 @@ void rtw_init_registrypriv_dev_network(struct adapter *adapter) pdev_network->configuration.length = sizeof(struct ndis_802_11_conf); pdev_network->configuration.beacon_period = 100; - pdev_network->configuration.fh_config.Length = 0; - pdev_network->configuration.fh_config.HopPattern = 0; - pdev_network->configuration.fh_config.HopSet = 0; - pdev_network->configuration.fh_config.DwellTime = 0; } void rtw_update_registrypriv_dev_network(struct adapter *adapter) diff --git a/drivers/staging/rtl8723bs/include/wlan_bssdef.h b/drivers/staging/rtl8723bs/include/wlan_bssdef.h index 6bdda580cef5..e5ab3cacfa91 100644 --- a/drivers/staging/rtl8723bs/include/wlan_bssdef.h +++ b/drivers/staging/rtl8723bs/include/wlan_bssdef.h @@ -32,13 +32,6 @@ enum ndis_802_11_network_type { Ndis802_11NetworkTypeMax /* not a real type, defined as an upper bound */ }; -struct ndis_802_11_conf_fh { - u32 Length; /* Length of structure */ - u32 HopPattern; /* As defined by 802.11, MSB set */ - u32 HopSet; /* to one if non-802.11 */ - u32 DwellTime; /* units are Kusec */ -}; - /* FW will only save the channel number in DSConfig. ODI Handler will convert the channel number to freq. number. @@ -48,7 +41,6 @@ struct ndis_802_11_conf { u32 beacon_period; /* units are Kusec */ u32 atim_window; /* units are Kusec */ u32 ds_config; /* Frequency, units are kHz */ - struct ndis_802_11_conf_fh fh_config; }; enum ndis_802_11_network_infrastructure { -- 2.20.1