mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
Staging: rtl8192e: Rename variable NumRxOkInPeriod
Rename variable NumRxOkInPeriod to num_rx_ok_in_period to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20231225202314.31869-4-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a24e0197f3
commit
5fa882a8ad
@ -971,14 +971,14 @@ static void _rtl92e_watchdog_wq_cb(void *data)
|
||||
}
|
||||
}
|
||||
if ((ieee->link_state == MAC80211_LINKED) && (ieee->iw_mode == IW_MODE_INFRA)) {
|
||||
if (ieee->link_detect_info.NumRxOkInPeriod > 100 ||
|
||||
if (ieee->link_detect_info.num_rx_ok_in_period > 100 ||
|
||||
ieee->link_detect_info.num_tx_ok_in_period > 100)
|
||||
bBusyTraffic = true;
|
||||
|
||||
if (ieee->link_detect_info.NumRxOkInPeriod > 4000 ||
|
||||
if (ieee->link_detect_info.num_rx_ok_in_period > 4000 ||
|
||||
ieee->link_detect_info.num_tx_ok_in_period > 4000) {
|
||||
bHigherBusyTraffic = true;
|
||||
if (ieee->link_detect_info.NumRxOkInPeriod > 5000)
|
||||
if (ieee->link_detect_info.num_rx_ok_in_period > 5000)
|
||||
bHigherBusyRxTraffic = true;
|
||||
else
|
||||
bHigherBusyRxTraffic = false;
|
||||
@ -1003,7 +1003,7 @@ static void _rtl92e_watchdog_wq_cb(void *data)
|
||||
rtl92e_leisure_ps_leave(dev);
|
||||
}
|
||||
|
||||
ieee->link_detect_info.NumRxOkInPeriod = 0;
|
||||
ieee->link_detect_info.num_rx_ok_in_period = 0;
|
||||
ieee->link_detect_info.num_tx_ok_in_period = 0;
|
||||
ieee->link_detect_info.NumRxUnicastOkInPeriod = 0;
|
||||
ieee->link_detect_info.bBusyTraffic = bBusyTraffic;
|
||||
|
@ -1119,7 +1119,7 @@ struct rt_link_detect {
|
||||
u16 SlotIndex;
|
||||
|
||||
u32 num_tx_ok_in_period;
|
||||
u32 NumRxOkInPeriod;
|
||||
u32 num_rx_ok_in_period;
|
||||
u32 NumRxUnicastOkInPeriod;
|
||||
bool bBusyTraffic;
|
||||
bool bHigherBusyTraffic;
|
||||
|
@ -1285,7 +1285,7 @@ static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
|
||||
|
||||
/* Update statstics for AP roaming */
|
||||
ieee->link_detect_info.NumRecvDataInPeriod++;
|
||||
ieee->link_detect_info.NumRxOkInPeriod++;
|
||||
ieee->link_detect_info.num_rx_ok_in_period++;
|
||||
|
||||
/* Data frame - extract src/dst addresses */
|
||||
rtllib_rx_extract_addr(ieee, hdr, dst, src, bssid);
|
||||
|
@ -2077,7 +2077,7 @@ int rtllib_softmac_init(struct rtllib_device *ieee)
|
||||
ieee->link_detect_info.NumRecvBcnInPeriod = 0;
|
||||
ieee->link_detect_info.NumRecvDataInPeriod = 0;
|
||||
ieee->link_detect_info.num_tx_ok_in_period = 0;
|
||||
ieee->link_detect_info.NumRxOkInPeriod = 0;
|
||||
ieee->link_detect_info.num_rx_ok_in_period = 0;
|
||||
ieee->link_detect_info.NumRxUnicastOkInPeriod = 0;
|
||||
ieee->bIsAggregateFrame = false;
|
||||
ieee->assoc_id = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user