[PATCH] staging: rtl8723bs: remove unused enumerations
From: Nikolay Kulikov
Date: Mon Jul 27 2026 - 10:05:15 EST
These enumerations and their values are never used anywhere else; remove
them.
Signed-off-by: Nikolay Kulikov <nikolayof23@xxxxxxxxx>
---
drivers/staging/rtl8723bs/hal/odm.h | 7 -----
drivers/staging/rtl8723bs/hal/odm_DIG.h | 5 ----
drivers/staging/rtl8723bs/include/hal_intf.h | 5 ----
drivers/staging/rtl8723bs/include/wifi.h | 41 ----------------------------
4 files changed, 58 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/odm.h b/drivers/staging/rtl8723bs/hal/odm.h
index ee263790b32b..a20b48660e63 100644
--- a/drivers/staging/rtl8723bs/hal/odm.h
+++ b/drivers/staging/rtl8723bs/hal/odm.h
@@ -942,13 +942,6 @@ struct dm_odm_t { /* DM_Out_Source_Dynamic_Mechanism_Structure */
#endif
};
-enum odm_rf_content {
- odm_radioa_txt = 0x1000,
- odm_radiob_txt = 0x1001,
- odm_radioc_txt = 0x1002,
- odm_radiod_txt = 0x1003
-};
-
enum ODM_BB_Config_Type {
CONFIG_BB_PHY_REG,
CONFIG_BB_AGC_TAB,
diff --git a/drivers/staging/rtl8723bs/hal/odm_DIG.h b/drivers/staging/rtl8723bs/hal/odm_DIG.h
index 032c4abae49b..5517ef79bdf5 100644
--- a/drivers/staging/rtl8723bs/hal/odm_DIG.h
+++ b/drivers/staging/rtl8723bs/hal/odm_DIG.h
@@ -77,11 +77,6 @@ struct false_ALARM_STATISTICS {
u32 Cnt_BW_LSC; /* Gary */
};
-enum ODM_Pause_DIG_TYPE {
- ODM_PAUSE_DIG = BIT(0),
- ODM_RESUME_DIG = BIT(1)
-};
-
#define DM_DIG_THRESH_HIGH 40
#define DM_DIG_THRESH_LOW 35
diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging/rtl8723bs/include/hal_intf.h
index 8a85e8419e47..d72fc4326a19 100644
--- a/drivers/staging/rtl8723bs/include/hal_intf.h
+++ b/drivers/staging/rtl8723bs/include/hal_intf.h
@@ -153,11 +153,6 @@ enum hal_odm_variable {
HAL_ODM_NOISE_MONITOR,
};
-enum hal_intf_ps_func {
- HAL_USB_SELECT_SUSPEND,
- HAL_MAX_ID,
-};
-
typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
#define RF_CHANGE_BY_INIT 0
diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wifi.h
index d5132bc4280a..48cc31c9125a 100644
--- a/drivers/staging/rtl8723bs/include/wifi.h
+++ b/drivers/staging/rtl8723bs/include/wifi.h
@@ -397,47 +397,6 @@ struct ADDBA_request {
/* WPS attribute ID */
#define WPS_ATTR_SELECTED_REGISTRAR 0x1041
-/* =====================P2P Section ===================== */
-enum p2p_role {
- P2P_ROLE_DISABLE = 0,
- P2P_ROLE_DEVICE = 1,
- P2P_ROLE_CLIENT = 2,
- P2P_ROLE_GO = 3
-};
-
-enum p2p_state {
- P2P_STATE_NONE = 0, /* P2P disable */
- P2P_STATE_IDLE = 1, /* P2P had enabled and do nothing */
- P2P_STATE_LISTEN = 2, /* In pure listen state */
- P2P_STATE_SCAN = 3, /* In scan phase */
- P2P_STATE_FIND_PHASE_LISTEN = 4, /* In the listen state of find phase */
- P2P_STATE_FIND_PHASE_SEARCH = 5, /* In the search state of find phase */
- P2P_STATE_TX_PROVISION_DIS_REQ = 6, /* In P2P provisioning discovery */
- P2P_STATE_RX_PROVISION_DIS_RSP = 7,
- P2P_STATE_RX_PROVISION_DIS_REQ = 8,
- P2P_STATE_GONEGO_ING = 9, /* Doing the group owner negotiation handshake */
- P2P_STATE_GONEGO_OK = 10, /* finish the group negotiation handshake with success */
- P2P_STATE_GONEGO_FAIL = 11, /* finish the group negotiation handshake with failure */
- P2P_STATE_RECV_INVITE_REQ_MATCH = 12, /* receiving the P2P Invitation request and match with the profile. */
- P2P_STATE_PROVISIONING_ING = 13, /* Doing the P2P WPS */
- P2P_STATE_PROVISIONING_DONE = 14, /* Finish the P2P WPS */
- P2P_STATE_TX_INVITE_REQ = 15, /* Transmit the P2P Invitation request */
- P2P_STATE_RX_INVITE_RESP_OK = 16, /* Receiving the P2P Invitation response */
- P2P_STATE_RECV_INVITE_REQ_DISMATCH = 17, /* receiving the P2P Invitation request and mismatch with the profile. */
- P2P_STATE_RECV_INVITE_REQ_GO = 18, /* receiving the P2P Invitation request and this wifi is GO. */
- P2P_STATE_RECV_INVITE_REQ_JOIN = 19, /* receiving the P2P Invitation request to join an existing P2P Group. */
- P2P_STATE_RX_INVITE_RESP_FAIL = 20, /* recveing the P2P Invitation response with failure */
- P2P_STATE_RX_INFOR_NOREADY = 21, /* receiving p2p negotiation response with information is not available */
- P2P_STATE_TX_INFOR_NOREADY = 22, /* sending p2p negotiation response with information is not available */
-};
-
-enum p2p_wpsinfo {
- P2P_NO_WPSINFO = 0,
- P2P_GOT_WPSINFO_PEER_DISPLAY_PIN = 1,
- P2P_GOT_WPSINFO_SELF_DISPLAY_PIN = 2,
- P2P_GOT_WPSINFO_PBC = 3,
-};
-
#define IP_MCAST_MAC(mac) ((mac[0] == 0x01) && (mac[1] == 0x00) && (mac[2] == 0x5e))
#define ICMPV6_MCAST_MAC(mac) ((mac[0] == 0x33) && (mac[1] == 0x33) && (mac[2] != 0xff))
---
base-commit: cb08dcd0a896c3ac8073a57296f2377b106c35b4
change-id: 20260727-rtl8723bs_rmove_enums-a41bdd486cd9
Best regards,
--
Nikolay Kulikov <nikolayof23@xxxxxxxxx>