mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
Staging: rtl8192e: Rename variable QueryRate
Rename variable QueryRate to query_rate to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20231223015942.418263-17-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8867af6775
commit
66dda5e3e0
@ -141,26 +141,26 @@ static void init_mgmt_queue(struct rtllib_device *ieee)
|
||||
u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee)
|
||||
{
|
||||
u16 i;
|
||||
u8 QueryRate = 0;
|
||||
u8 query_rate = 0;
|
||||
u8 BasicRate;
|
||||
|
||||
for (i = 0; i < ieee->current_network.rates_len; i++) {
|
||||
BasicRate = ieee->current_network.rates[i] & 0x7F;
|
||||
if (!rtllib_is_cck_rate(BasicRate)) {
|
||||
if (QueryRate == 0) {
|
||||
QueryRate = BasicRate;
|
||||
if (query_rate == 0) {
|
||||
query_rate = BasicRate;
|
||||
} else {
|
||||
if (BasicRate < QueryRate)
|
||||
QueryRate = BasicRate;
|
||||
if (BasicRate < query_rate)
|
||||
query_rate = BasicRate;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (QueryRate == 0) {
|
||||
QueryRate = 12;
|
||||
if (query_rate == 0) {
|
||||
query_rate = 12;
|
||||
netdev_info(ieee->dev, "No BasicRate found!!\n");
|
||||
}
|
||||
return QueryRate;
|
||||
return query_rate;
|
||||
}
|
||||
|
||||
static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)
|
||||
|
Loading…
Reference in New Issue
Block a user