Commit 0edd0fb7 authored by Tree Davies's avatar Tree Davies Committed by Greg Kroah-Hartman

Staging: rtl8192e: Rename variable BasicRate

Rename variable BasicRate to basic_rate to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231223015942.418263-18-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 66dda5e3
......@@ -142,23 +142,23 @@ u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee)
{
u16 i;
u8 query_rate = 0;
u8 BasicRate;
u8 basic_rate;
for (i = 0; i < ieee->current_network.rates_len; i++) {
BasicRate = ieee->current_network.rates[i] & 0x7F;
if (!rtllib_is_cck_rate(BasicRate)) {
basic_rate = ieee->current_network.rates[i] & 0x7F;
if (!rtllib_is_cck_rate(basic_rate)) {
if (query_rate == 0) {
query_rate = BasicRate;
query_rate = basic_rate;
} else {
if (BasicRate < query_rate)
query_rate = BasicRate;
if (basic_rate < query_rate)
query_rate = basic_rate;
}
}
}
if (query_rate == 0) {
query_rate = 12;
netdev_info(ieee->dev, "No BasicRate found!!\n");
netdev_info(ieee->dev, "No basic_rate found!!\n");
}
return query_rate;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment