From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 02/14] staging: rtl8192e: Remove unused function dot11d_update_country()
Date: Sun, 19 Nov 2023 23:14:42 +0100 [thread overview]
Message-ID: <364462eae2271f3925b362a439ec27d50dd899ef.1700431464.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1700431464.git.philipp.g.hortmann@gmail.com>
Remove unused function dot11d_update_country().
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/dot11d.c | 44 -------------------------------
drivers/staging/rtl8192e/dot11d.h | 2 --
2 files changed, 46 deletions(-)
diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c
index fdc39e6e7abb..fc65a63a4de6 100644
--- a/drivers/staging/rtl8192e/dot11d.c
+++ b/drivers/staging/rtl8192e/dot11d.c
@@ -61,50 +61,6 @@ void dot11d_reset(struct rtllib_device *ieee)
RESET_CIE_WATCHDOG(ieee);
}
-void dot11d_update_country(struct rtllib_device *dev, u8 *address,
- u16 country_len, u8 *country)
-{
- struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(dev);
- u8 i, j, number_of_triples, max_channel_number;
- struct chnl_txpow_triple *triple;
-
- memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1);
- memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1);
- max_channel_number = 0;
- number_of_triples = (country_len - 3) / 3;
- triple = (struct chnl_txpow_triple *)(country + 3);
- for (i = 0; i < number_of_triples; i++) {
- if (max_channel_number >= triple->first_channel) {
- netdev_info(dev->dev,
- "%s: Invalid country IE, skip it......1\n",
- __func__);
- return;
- }
- if (MAX_CHANNEL_NUMBER < (triple->first_channel +
- triple->num_channels)) {
- netdev_info(dev->dev,
- "%s: Invalid country IE, skip it......2\n",
- __func__);
- return;
- }
-
- for (j = 0; j < triple->num_channels; j++) {
- dot11d_info->channel_map[triple->first_channel + j] = 1;
- dot11d_info->max_tx_power_list[triple->first_channel + j] =
- triple->max_tx_power;
- max_channel_number = triple->first_channel + j;
- }
-
- triple = (struct chnl_txpow_triple *)((u8 *)triple + 3);
- }
-
- UPDATE_CIE_SRC(dev, address);
-
- dot11d_info->country_len = country_len;
- memcpy(dot11d_info->country_buffer, country, country_len);
- dot11d_info->state = DOT11D_STATE_LEARNED;
-}
-
void dot11d_scan_complete(struct rtllib_device *dev)
{
struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(dev);
diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h
index 78d1ca1e7743..39bda2f94eed 100644
--- a/drivers/staging/rtl8192e/dot11d.h
+++ b/drivers/staging/rtl8192e/dot11d.h
@@ -77,8 +77,6 @@ static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__ieee_dev)
void dot11d_init(struct rtllib_device *dev);
void dot11d_channel_map(struct rtllib_device *ieee);
void dot11d_reset(struct rtllib_device *dev);
-void dot11d_update_country(struct rtllib_device *dev, u8 *address,
- u16 country_len, u8 *country);
void dot11d_scan_complete(struct rtllib_device *dev);
#endif
--
2.42.0
next prev parent reply other threads:[~2023-11-19 22:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-19 22:14 [PATCH 00/14] staging: rtl8192e: IS_DOT11D_ENABLE() returns always false Philipp Hortmann
2023-11-19 22:14 ` [PATCH 01/14] staging: rtl8192e: Remove unexecuted rtllib_extract_country_ie() Philipp Hortmann
2023-11-19 22:14 ` Philipp Hortmann [this message]
2023-11-19 22:14 ` [PATCH 03/14] staging: rtl8192e: Remove IS_DOT11D_ENABLE(ieee) Philipp Hortmann
2023-11-19 22:14 ` [PATCH 04/14] staging: rtl8192e: Remove unused function dot11d_scan_complete() Philipp Hortmann
2023-11-19 22:15 ` [PATCH 05/14] staging: rtl8192e: Remove unused function dot11d_reset() Philipp Hortmann
2023-11-19 22:15 ` [PATCH 06/14] staging: rtl8192e: Remove unused macros IS_EQUAL_CIE_SRC and friends Philipp Hortmann
2023-11-19 22:15 ` [PATCH 07/14] staging: rtl8192e: Remove unused function copy_mac_addr() Philipp Hortmann
2023-11-19 22:15 ` [PATCH 08/14] staging: rtl8192e: Remove unused variable dot11d_info->state Philipp Hortmann
2023-11-19 22:15 ` [PATCH 09/14] staging: rtl8192e: Remove unused variables from struct rt_dot11d_info Philipp Hortmann
2023-11-19 22:15 ` [PATCH 10/14] staging: rtl8192e: Remove unused variable country_watchdog Philipp Hortmann
2023-11-19 22:15 ` [PATCH 11/14] staging: rtl8192e: Remove unused variable global_domain Philipp Hortmann
2023-11-19 22:15 ` [PATCH 12/14] staging: rtl8192e: Remove unused function dot11d_init() Philipp Hortmann
2023-11-19 22:15 ` [PATCH 13/14] staging: rtl8192e: Remove unused struct chnl_txpow_triple Philipp Hortmann
2023-11-19 22:16 ` [PATCH 14/14] staging: rtl8192e: Remove unused variable bss_start_channel Philipp Hortmann
2023-11-21 7:31 ` [PATCH 00/14] staging: rtl8192e: IS_DOT11D_ENABLE() returns always false Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=364462eae2271f3925b362a439ec27d50dd899ef.1700431464.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®