mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 10:11:38 -04:00
staging: rtl8723bs: remove stale commented code
Drop unused commented code left from older versions Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com> Link: https://patch.msgid.link/20260212142131.28131-5-khushalchitturi@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ed8382fb4f
commit
d357fe8446
@@ -1178,7 +1178,7 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
|
||||
|
||||
pmlmepriv->link_detect_info.traffic_transition_count++;
|
||||
|
||||
if (pmlmepriv->link_detect_info.traffic_transition_count > 30/*TrafficTransitionLevel*/)
|
||||
if (pmlmepriv->link_detect_info.traffic_transition_count > 30)
|
||||
pmlmepriv->link_detect_info.traffic_transition_count = 30;
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -2504,7 +2504,6 @@ void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
s32 bmcst = is_multicast_ether_addr(pattrib->ra);
|
||||
|
||||
/* if (bmcst || (padapter->mlmepriv.link_detect_info.tx_busy_traffic == false)) */
|
||||
if (bmcst || (padapter->mlmepriv.link_detect_info.num_tx_ok_in_period < 100))
|
||||
return;
|
||||
|
||||
|
||||
@@ -4758,7 +4758,6 @@ static void rtw_mlmeext_disconnect(struct adapter *padapter)
|
||||
|
||||
timer_delete_sync(&pmlmeext->link_timer);
|
||||
|
||||
/* pmlmepriv->link_detect_info.TrafficBusyState = false; */
|
||||
pmlmepriv->link_detect_info.traffic_transition_count = 0;
|
||||
pmlmepriv->link_detect_info.low_power_transition_count = 0;
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ void traffic_check_for_leave_lps(struct adapter *padapter, u8 tx, u32 tx_packets
|
||||
}
|
||||
|
||||
} else { /* from rx path */
|
||||
if (pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period > 4/*2*/) {
|
||||
if (pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period > 4) {
|
||||
if (adapter_to_pwrctl(padapter)->bLeisurePs
|
||||
&& (adapter_to_pwrctl(padapter)->pwr_mode != PS_MODE_ACTIVE)
|
||||
&& !(hal_btcoex_IsBtControlLps(padapter)))
|
||||
|
||||
@@ -102,7 +102,6 @@ struct rt_link_detect_t {
|
||||
bool higher_busy_traffic; /* For interrupt migration purpose. */
|
||||
bool higher_busy_rx_traffic; /* We may disable Tx interrupt according as Rx traffic. */
|
||||
bool higher_busy_tx_traffic; /* We may disable Tx interrupt according as Tx traffic. */
|
||||
/* u8 TrafficBusyState; */
|
||||
u8 traffic_transition_count;
|
||||
u32 low_power_transition_count;
|
||||
};
|
||||
|
||||
@@ -620,7 +620,6 @@ void rtw_reset_drv_sw(struct adapter *padapter)
|
||||
|
||||
pmlmepriv->link_detect_info.busy_traffic = false;
|
||||
|
||||
/* pmlmepriv->link_detect_info.TrafficBusyState = false; */
|
||||
pmlmepriv->link_detect_info.traffic_transition_count = 0;
|
||||
pmlmepriv->link_detect_info.low_power_transition_count = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user