mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 21:45:08 -04:00
Staging: rtl8192e: Rename variable LPSDelayCnt
Rename variable LPSDelayCnt to lps_delay_cnt to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20240126223106.986093-5-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
808f35c4e6
commit
6b7a8b468b
@@ -705,7 +705,7 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
|
||||
priv->hw_rf_off_action = 0;
|
||||
priv->set_rf_pwr_state_in_progress = false;
|
||||
priv->rtllib->pwr_save_ctrl.bLeisurePs = true;
|
||||
priv->rtllib->LPSDelayCnt = 0;
|
||||
priv->rtllib->lps_delay_cnt = 0;
|
||||
priv->rtllib->sta_sleep = LPS_IS_WAKE;
|
||||
priv->rtllib->rf_power_state = rf_on;
|
||||
|
||||
|
||||
@@ -1375,7 +1375,7 @@ struct rtllib_device {
|
||||
/* for PS mode */
|
||||
unsigned long last_rx_ps_time;
|
||||
bool awake_pkt_sent;
|
||||
u8 LPSDelayCnt;
|
||||
u8 lps_delay_cnt;
|
||||
|
||||
/* used if IEEE_SOFTMAC_SINGLE_QUEUE is set */
|
||||
struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM];
|
||||
|
||||
@@ -1351,8 +1351,8 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
|
||||
u8 dtim;
|
||||
struct rt_pwr_save_ctrl *psc = &ieee->pwr_save_ctrl;
|
||||
|
||||
if (ieee->LPSDelayCnt) {
|
||||
ieee->LPSDelayCnt--;
|
||||
if (ieee->lps_delay_cnt) {
|
||||
ieee->lps_delay_cnt--;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -595,14 +595,14 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
|
||||
((((u8 *)udp)[1] == 67) &&
|
||||
(((u8 *)udp)[3] == 68))) {
|
||||
bdhcp = true;
|
||||
ieee->LPSDelayCnt = 200;
|
||||
ieee->lps_delay_cnt = 200;
|
||||
}
|
||||
}
|
||||
} else if (ether_type == ETH_P_ARP) {
|
||||
netdev_info(ieee->dev,
|
||||
"=================>DHCP Protocol start tx ARP pkt!!\n");
|
||||
bdhcp = true;
|
||||
ieee->LPSDelayCnt =
|
||||
ieee->lps_delay_cnt =
|
||||
ieee->current_network.tim.tim_count;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user