[PATCH 05/61] staging: rtl8723bs: remove unused OnAtim stub function

From: Arsenii Pashchenko

Date: Wed Jul 15 2026 - 08:51:23 EST


The OnAtim() function is an empty stub that merely returns _SUCCESS
without performing any actual work. Since ATIM frame processing is
not required for this driver, remove the redundant function definition,
its prototype, and replace its reference in mlme_sta_tbl[] with NULL.

The internal _mgt_dispatcher() already safely checks if ptable->func is
not NULL before dereferencing, making this change completely safe.

Signed-off-by: Arsenii Pashchenko <ulijg308@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 7 +------
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h | 1 -
2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index a86d6f97c..774fa9e32 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -23,7 +23,7 @@ static struct mlme_handler mlme_sta_tbl[] = {
{0, "DoReserved", &DoReserved},
{0, "DoReserved", &DoReserved},
{WIFI_BEACON, "OnBeacon", &OnBeacon},
- {WIFI_ATIM, "OnATIM", &OnAtim},
+ {WIFI_ATIM, "OnATIM", NULL},
{WIFI_DISASSOC, "OnDisassoc", &OnDisassoc},
{WIFI_AUTH, "OnAuth", &OnAuthClient},
{WIFI_DEAUTH, "OnDeAuth", &OnDeAuth},
@@ -1531,11 +1531,6 @@ unsigned int OnDisassoc(struct adapter *padapter, union recv_frame *precv_frame)
return _SUCCESS;
}

-unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame)
-{
- return _SUCCESS;
-}
-
unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_frame)
{
struct sta_info *psta = NULL;
diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
index cb23c6939..332411ead 100644
--- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
+++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
@@ -564,7 +564,6 @@ unsigned int OnProbeReq(struct adapter *padapter, union recv_frame *precv_frame)
unsigned int OnProbeRsp(struct adapter *padapter, union recv_frame *precv_frame);
unsigned int DoReserved(struct adapter *padapter, union recv_frame *precv_frame);
unsigned int OnBeacon(struct adapter *padapter, union recv_frame *precv_frame);
-unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame);
unsigned int OnDisassoc(struct adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame);
unsigned int OnAuthClient(struct adapter *padapter, union recv_frame *precv_frame);
--
2.55.0