]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: convert traffic_status_watchdog() local variables to snake_case
authorKhushal Chitturi <khushalchitturi@gmail.com>
Thu, 12 Feb 2026 14:21:27 +0000 (19:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 15:19:19 +0000 (16:19 +0100)
Convert the local variable names in traffic_status_watchdog()
to snake_case to follow naming conventions.

Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com>
Link: https://patch.msgid.link/20260212142131.28131-4-khushalchitturi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/core/rtw_mlme.c

index 6fcff33afdd501507581deea52b56c011a47337e..e35b3cca584cdfd4f39696bd78f02b5aee634883 100644 (file)
@@ -1127,12 +1127,12 @@ static void collect_traffic_statistics(struct adapter *padapter)
 
 u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
 {
-       u8 bEnterPS = false;
-       u16 BusyThresholdHigh = 25;
-       u16 BusyThresholdLow = 10;
-       u16 BusyThreshold = BusyThresholdHigh;
-       u8 bBusyTraffic = false, bTxBusyTraffic = false, bRxBusyTraffic = false;
-       u8 bHigherBusyTraffic = false, bHigherBusyRxTraffic = false, bHigherBusyTxTraffic = false;
+       u8 should_enter_ps = false;
+       u16 busy_threshold_high = 25;
+       u16 busy_threshold_low = 10;
+       u16 busy_threshold = busy_threshold_high;
+       u8 busy_traffic = false, tx_busy_traffic = false, rx_busy_traffic = false;
+       u8 higher_busy_traffic = false, higher_busy_rx_traffic = false, higher_busy_tx_traffic = false;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
 
        collect_traffic_statistics(padapter);
@@ -1142,37 +1142,37 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
        /*  */
        if ((check_fwstate(pmlmepriv, _FW_LINKED))
                /*&& !MgntInitAdapterInProgress(pMgntInfo)*/) {
-               /*  if we raise bBusyTraffic in last watchdog, using lower threshold. */
+               /*  if we raise busy_traffic in last watchdog, using lower threshold. */
                if (pmlmepriv->link_detect_info.busy_traffic)
-                       BusyThreshold = BusyThresholdLow;
+                       busy_threshold = busy_threshold_low;
 
-               if (pmlmepriv->link_detect_info.num_rx_ok_in_period > BusyThreshold ||
-                   pmlmepriv->link_detect_info.num_tx_ok_in_period > BusyThreshold) {
-                       bBusyTraffic = true;
+               if (pmlmepriv->link_detect_info.num_rx_ok_in_period > busy_threshold ||
+                   pmlmepriv->link_detect_info.num_tx_ok_in_period > busy_threshold) {
+                       busy_traffic = true;
 
                        if (pmlmepriv->link_detect_info.num_rx_ok_in_period > pmlmepriv->link_detect_info.num_tx_ok_in_period)
-                               bRxBusyTraffic = true;
+                               rx_busy_traffic = true;
                        else
-                               bTxBusyTraffic = true;
+                               tx_busy_traffic = true;
                }
 
                /*  Higher Tx/Rx data. */
                if (pmlmepriv->link_detect_info.num_rx_ok_in_period > 4000 ||
                    pmlmepriv->link_detect_info.num_tx_ok_in_period > 4000) {
-                       bHigherBusyTraffic = true;
+                       higher_busy_traffic = true;
 
                        if (pmlmepriv->link_detect_info.num_rx_ok_in_period > pmlmepriv->link_detect_info.num_tx_ok_in_period)
-                               bHigherBusyRxTraffic = true;
+                               higher_busy_rx_traffic = true;
                        else
-                               bHigherBusyTxTraffic = true;
+                               higher_busy_tx_traffic = true;
                }
 
                /*  check traffic for  powersaving. */
                if (((pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period + pmlmepriv->link_detect_info.num_tx_ok_in_period) > 8) ||
                    (pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period > 2)) {
-                       bEnterPS = false;
+                       should_enter_ps = false;
 
-                       if (bBusyTraffic) {
+                       if (busy_traffic) {
                                if (pmlmepriv->link_detect_info.traffic_transition_count <= 4)
                                        pmlmepriv->link_detect_info.traffic_transition_count = 4;
 
@@ -1188,11 +1188,11 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
                                pmlmepriv->link_detect_info.traffic_transition_count = 0;
 
                        if (pmlmepriv->link_detect_info.traffic_transition_count == 0)
-                               bEnterPS = true;
+                               should_enter_ps = true;
                }
 
                /*  LeisurePS only work in infra mode. */
-               if (bEnterPS) {
+               if (should_enter_ps) {
                        if (!from_timer)
                                LPS_Enter(padapter, "TRAFFIC_IDLE");
                } else {
@@ -1215,14 +1215,14 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
        pmlmepriv->link_detect_info.num_rx_ok_in_period = 0;
        pmlmepriv->link_detect_info.num_tx_ok_in_period = 0;
        pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period = 0;
-       pmlmepriv->link_detect_info.busy_traffic = bBusyTraffic;
-       pmlmepriv->link_detect_info.tx_busy_traffic = bTxBusyTraffic;
-       pmlmepriv->link_detect_info.rx_busy_traffic = bRxBusyTraffic;
-       pmlmepriv->link_detect_info.higher_busy_traffic = bHigherBusyTraffic;
-       pmlmepriv->link_detect_info.higher_busy_rx_traffic = bHigherBusyRxTraffic;
-       pmlmepriv->link_detect_info.higher_busy_tx_traffic = bHigherBusyTxTraffic;
-
-       return bEnterPS;
+       pmlmepriv->link_detect_info.busy_traffic = busy_traffic;
+       pmlmepriv->link_detect_info.tx_busy_traffic = tx_busy_traffic;
+       pmlmepriv->link_detect_info.rx_busy_traffic = rx_busy_traffic;
+       pmlmepriv->link_detect_info.higher_busy_traffic = higher_busy_traffic;
+       pmlmepriv->link_detect_info.higher_busy_rx_traffic = higher_busy_rx_traffic;
+       pmlmepriv->link_detect_info.higher_busy_tx_traffic = higher_busy_tx_traffic;
+
+       return should_enter_ps;
 }
 
 static void dynamic_chk_wk_hdl(struct adapter *padapter)
index 193e5fea0619279422325a6e0f805929941fccf7..3e266f68cbfd8133f0a1535a5b2275ab0b87e731 100644 (file)
@@ -1643,12 +1643,12 @@ void rtw_dynamic_check_timer_handler(struct adapter *adapter)
        if ((adapter_to_pwrctl(adapter)->fw_current_in_ps_mode)
                && !(hal_btcoex_IsBtControlLps(adapter))
                ) {
-               u8 bEnterPS;
+               u8 should_enter_ps;
 
                linked_status_chk(adapter);
 
-               bEnterPS = traffic_status_watchdog(adapter, 1);
-               if (bEnterPS) {
+               should_enter_ps = traffic_status_watchdog(adapter, 1);
+               if (should_enter_ps) {
                        /* rtw_lps_ctrl_wk_cmd(adapter, LPS_CTRL_ENTER, 1); */
                        rtw_hal_dm_watchdog_in_lps(adapter);
                } else {