mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: remove unused defines in odm.h
@ 2026-10-13  9:57 Wang Yibo
  0 siblings, 0 replies; only message in thread
From: Wang Yibo @ 2026-10-13  9:57 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-staging, linux-kernel, Bera Yüzlü,
	Jennifer Guo, Ethan Tidmore, Adriano Cordova, Azamat Rakhim,
	Nikolay Kulikov, Michael Steinmötzger

hal/odm.h still defines several constants that no code in the driver
ever references:

  BAND_NUM, AFH_PSD, Adaptive_SIR
  ANTTESTALL, ANTTESTA, ANTTESTB
  AUX_ANT

They come from the PSD and antenna-diversity sections of the vendor ODM
code and were never wired up for the RTL8723BS.  The "/* ANT Test */"
comment is removed together with the defines it introduced.

No functional change intended.

Signed-off-by: Wang Yibo <szwyb123@gmail.com>
---
 drivers/staging/rtl8723bs/hal/odm.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/odm.h b/drivers/staging/rtl8723bs/hal/odm.h
index 3532f0d79363..8a357658fdb5 100644
--- a/drivers/staging/rtl8723bs/hal/odm.h
+++ b/drivers/staging/rtl8723bs/hal/odm.h
@@ -29,12 +29,10 @@
 #define TXSCALE_TABLE_SIZE		37
 #define TXPWR_TRACK_TABLE_SIZE	30
 #define DELTA_SWINGIDX_SIZE     30
-#define BAND_NUM				4
 
 /* 3 PSD Handler */
 /* 3 ============================================================ */
 
-#define	AFH_PSD		1	/* 0:normal PSD scan, 1: only do 20 pts PSD */
 #define	MODE_40M		0	/* 0:20M, 1:40M */
 #define	PSD_TH2		3
 #define	PSD_CHMIN		20   /*  Minimum channel number for BT AFH */
@@ -46,7 +44,6 @@
 #define   Smooth_Size_3		20
 #define	Smooth_TH_3	4
 #define   Smooth_Step_Size 5
-#define	Adaptive_SIR	1
 #define	PSD_RESCAN		4
 #define	PSD_SCAN_INTERVAL	700 /* ms */
 
@@ -56,16 +53,10 @@
 #define		DM_DIG_HIGH_PWR_THRESHOLD	0x3a
 #define		DM_DIG_LOW_PWR_THRESHOLD	0x14
 
-/* ANT Test */
-#define			ANTTESTALL		0x00		/* Ant A or B will be Testing */
-#define		ANTTESTA		0x01		/* Ant A will be Testing */
-#define		ANTTESTB		0x02		/* Ant B will be testing */
-
 #define	PS_MODE_ACTIVE 0x01
 
 /* for 8723A Ant Definition--2012--06--07 due to different IC may be different ANT define */
 #define		MAIN_ANT		1		/* Ant A or Ant Main */
-#define		AUX_ANT		2		/* AntB or Ant Aux */
 #define		MAX_ANT		3		/*  3 for AP using */
 
 /* Antenna Diversity Type */
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13  9:57 [PATCH] staging: rtl8723bs: remove unused defines in odm.h Wang Yibo

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®