mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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 10/13] staging: rtl8723bs: Remove unused macros in rtw_mlme.h
Date: Sun, 7 Jul 2024 08:54:26 +0200	[thread overview]
Message-ID: <e04836b646ccd0a97ee0658dc61db7ac748bcb40.1720245061.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1720245061.git.philipp.g.hortmann@gmail.com>

Remove unused macros.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
 drivers/staging/rtl8723bs/include/rtw_mlme.h | 26 --------------------
 1 file changed, 26 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme.h b/drivers/staging/rtl8723bs/include/rtw_mlme.h
index f939d267b0c7..e103c4a15d1a 100644
--- a/drivers/staging/rtl8723bs/include/rtw_mlme.h
+++ b/drivers/staging/rtl8723bs/include/rtw_mlme.h
@@ -39,11 +39,6 @@
 
 /* ifdef UNDER_MPTEST */
 #define	WIFI_MP_STATE							0x00010000
-#define	WIFI_MP_CTX_BACKGROUND				0x00020000	/*  in continuous tx background */
-#define	WIFI_MP_CTX_ST						0x00040000	/*  in continuous tx with single-tone */
-#define	WIFI_MP_CTX_BACKGROUND_PENDING	0x00080000	/*  pending in continuous tx background due to out of skb */
-#define	WIFI_MP_CTX_CCK_HW					0x00100000	/*  in continuous tx */
-#define	WIFI_MP_CTX_CCK_CS					0x00200000	/*  in continuous tx with carrier suppression */
 /* endif */
 
 /* define _FW_UNDER_CMD		WIFI_UNDER_CMD */
@@ -75,8 +70,6 @@ enum {
 	GHZ_MAX,
 };
 
-#define rtw_band_valid(band) ((band) >= GHZ24_50 && (band) < GHZ_MAX)
-
 /*
 
 there are several "locks" in mlme_priv,
@@ -252,11 +245,6 @@ struct mlme_priv {
 	unsigned long	timeBcnInfoChkStart;
 };
 
-#define rtw_mlme_set_auto_scan_int(adapter, ms) \
-	do { \
-		adapter->mlmepriv.auto_scan_int_ms = ms; \
-	while (0)
-
 void rtw_mlme_reset_auto_scan_int(struct adapter *adapter);
 
 struct hostapd_priv {
@@ -400,20 +388,6 @@ int is_same_network(struct wlan_bssid_ex *src, struct wlan_bssid_ex *dst, u8 fea
 
 #define rtw_roam_flags(adapter) ((adapter)->mlmepriv.roam_flags)
 #define rtw_chk_roam_flags(adapter, flags) ((adapter)->mlmepriv.roam_flags & flags)
-#define rtw_clr_roam_flags(adapter, flags) \
-	do { \
-		((adapter)->mlmepriv.roam_flags &= ~flags); \
-	} while (0)
-
-#define rtw_set_roam_flags(adapter, flags) \
-	do { \
-		((adapter)->mlmepriv.roam_flags |= flags); \
-	} while (0)
-
-#define rtw_assign_roam_flags(adapter, flags) \
-	do { \
-		((adapter)->mlmepriv.roam_flags = flags); \
-	} while (0)
 
 void _rtw_roaming(struct adapter *adapter, struct wlan_network *tgt_network);
 void rtw_roaming(struct adapter *adapter, struct wlan_network *tgt_network);
-- 
2.45.2


  parent reply	other threads:[~2024-07-07  6:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07  6:51 [PATCH 00/13] staging: rtl8723bs: Remove unused macros starting with hal_com_h2c.h Philipp Hortmann
2024-07-07  6:52 ` [PATCH 01/13] staging: rtl8723bs: Remove unused macros in hal_com_h2c.h Philipp Hortmann
2024-07-07  6:52 ` [PATCH 02/13] staging: rtl8723bs: Remove unused macros in rtw_ht.h Philipp Hortmann
2024-07-07  6:52 ` [PATCH 03/13] staging: rtl8723bs: Remove unused macros in hal_com_reg.h Philipp Hortmann
2024-07-07  6:52 ` [PATCH 04/13] staging: rtl8723bs: Remove unused macros in hal_phy_reg_8723b.h Philipp Hortmann
2024-07-07  6:52 ` [PATCH 05/13] staging: rtl8723bs: Move last macro from hal_phy_reg_8723b.h Philipp Hortmann
2024-07-07  6:52 ` [PATCH 06/13] staging: rtl8723bs: Delete file hal_phy_reg_8723b.h Philipp Hortmann
2024-07-07  6:53 ` [PATCH 07/13] staging: rtl8723bs: Remove unused macros in Hal8192CPhyReg.h Philipp Hortmann
2024-07-07  6:53 ` [PATCH 08/13] staging: rtl8723bs: Remove unused macros in Hal8723BReg.h Philipp Hortmann
2024-07-07  6:54 ` [PATCH 09/13] staging: rtl8723bs: Remove unused macros in HalPwrSeqCmd.h Philipp Hortmann
2024-07-07  6:54 ` Philipp Hortmann [this message]
2024-07-07  6:54 ` [PATCH 11/13] staging: rtl8723bs: Remove unused macros in rtw_efuse.h Philipp Hortmann
2024-07-07  6:54 ` [PATCH 12/13] staging: rtl8723bs: Remove unused macros in hal_pwr_seq.h Philipp Hortmann
2024-07-07  6:54 ` [PATCH 13/13] staging: rtl8723bs: Remove unused macros in rtw_mlme_ext.h Philipp Hortmann
2024-07-10 12:52 ` [PATCH 00/13] staging: rtl8723bs: Remove unused macros starting with hal_com_h2c.h Greg Kroah-Hartman

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=e04836b646ccd0a97ee0658dc61db7ac748bcb40.1720245061.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®