summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Khomenkov <khomenkov@mailbox.org>2026-05-10 16:43:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-11 10:13:23 +0200
commit6caa63431a2a2dcab3256148c88ab893eb7ccf0d (patch)
treea226378d22cadeed9a45a1938f7d64aea5c90693
parent8ba61dec20e56883bc782c8f062b2362432a5774 (diff)
downloadlinux-6caa63431a2a2dcab3256148c88ab893eb7ccf0d.tar.gz
linux-6caa63431a2a2dcab3256148c88ab893eb7ccf0d.zip
staging: rtl8723bs: remove unused DBG_FIXED_CHAN code
Remove the DBG_FIXED_CHAN code since it is not used as the macro is not defined anywhere. Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org> Link: https://patch.msgid.link/20260510134315.64295-2-khomenkov@mailbox.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_mlme_ext.c14
-rw-r--r--drivers/staging/rtl8723bs/include/rtw_mlme_ext.h4
2 files changed, 0 insertions, 18 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index 67570b81034f..c966527c0ca5 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -398,10 +398,6 @@ void init_mlme_ext_priv(struct adapter *padapter)
pmlmeext->chan_scan_time = SURVEY_TO;
pmlmeext->mlmeext_init = true;
pmlmeext->active_keep_alive_check = true;
-
-#ifdef DBG_FIXED_CHAN
- pmlmeext->fixed_chan = 0xFF;
-#endif
}
void free_mlme_ext_priv(struct mlme_ext_priv *pmlmeext)
@@ -3750,18 +3746,8 @@ void site_survey(struct adapter *padapter)
/* val8 |= 0x0f; */
/* rtw_hal_set_hwreg(padapter, HW_VAR_TXPAUSE, (u8 *)(&val8)); */
if (pmlmeext->sitesurvey_res.channel_idx == 0) {
-#ifdef DBG_FIXED_CHAN
- if (pmlmeext->fixed_chan != 0xff)
- set_channel_bwmode(padapter, pmlmeext->fixed_chan, HAL_PRIME_CHNL_OFFSET_DONT_CARE, CHANNEL_WIDTH_20);
- else
-#endif
set_channel_bwmode(padapter, survey_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, CHANNEL_WIDTH_20);
} else {
-#ifdef DBG_FIXED_CHAN
- if (pmlmeext->fixed_chan != 0xff)
- r8723bs_select_channel(padapter, pmlmeext->fixed_chan);
- else
-#endif
r8723bs_select_channel(padapter, survey_channel);
}
diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
index 95769f90d196..b37d08bd5a59 100644
--- a/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
+++ b/drivers/staging/rtl8723bs/include/rtw_mlme_ext.h
@@ -416,10 +416,6 @@ struct mlme_ext_priv {
u16 action_public_rxseq;
u8 active_keep_alive_check;
-#ifdef DBG_FIXED_CHAN
- u8 fixed_chan;
-#endif
-
};
void init_mlme_default_rate_set(struct adapter *padapter);