]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: remove unused DBG_FIXED_CHAN code
authorAndrei Khomenkov <khomenkov@mailbox.org>
Sun, 10 May 2026 13:43:07 +0000 (16:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 08:13:23 +0000 (10:13 +0200)
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>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

index 67570b81034f275599d2337d09a9cc86a020ec26..c966527c0ca577b89ce0c0b329eb758492b3378e 100644 (file)
@@ -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);
                }
 
index 95769f90d196115808efa003ceacd6e382fb429c..b37d08bd5a592db0a845fa582b386c75562f4b8d 100644 (file)
@@ -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);