staging: rtl8192e: rename members of struct chnl_txpow_triple - style

Rename following members of chnl_txpow_triple to fix checkpatch
warning: Avoid CamelCase
	FirstChnl -> first_channel
	NumChnls -> num_channels
	MaxTxPowerInDbm -> max_tx_power

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Himadri Pandya 2019-02-06 21:04:14 +05:30 committed by Greg Kroah-Hartman
parent edce68b969
commit cc7834fb5d
2 changed files with 11 additions and 11 deletions

View File

@ -127,25 +127,25 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
NumTriples = (CoutryIeLen - 3) / 3; NumTriples = (CoutryIeLen - 3) / 3;
pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3); pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
for (i = 0; i < NumTriples; i++) { for (i = 0; i < NumTriples; i++) {
if (MaxChnlNum >= pTriple->FirstChnl) { if (MaxChnlNum >= pTriple->first_channel) {
netdev_info(dev->dev, netdev_info(dev->dev,
"%s: Invalid country IE, skip it......1\n", "%s: Invalid country IE, skip it......1\n",
__func__); __func__);
return; return;
} }
if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl + if (MAX_CHANNEL_NUMBER < (pTriple->first_channel +
pTriple->NumChnls)) { pTriple->num_channels)) {
netdev_info(dev->dev, netdev_info(dev->dev,
"%s: Invalid country IE, skip it......2\n", "%s: Invalid country IE, skip it......2\n",
__func__); __func__);
return; return;
} }
for (j = 0; j < pTriple->NumChnls; j++) { for (j = 0; j < pTriple->num_channels; j++) {
pDot11dInfo->channel_map[pTriple->FirstChnl + j] = 1; pDot11dInfo->channel_map[pTriple->first_channel + j] = 1;
pDot11dInfo->MaxTxPwrDbmList[pTriple->FirstChnl + j] = pDot11dInfo->MaxTxPwrDbmList[pTriple->first_channel + j] =
pTriple->MaxTxPowerInDbm; pTriple->max_tx_power;
MaxChnlNum = pTriple->FirstChnl + j; MaxChnlNum = pTriple->first_channel + j;
} }
pTriple = (struct chnl_txpow_triple *)((u8 *)pTriple + 3); pTriple = (struct chnl_txpow_triple *)((u8 *)pTriple + 3);

View File

@ -18,9 +18,9 @@
#include "rtllib.h" #include "rtllib.h"
struct chnl_txpow_triple { struct chnl_txpow_triple {
u8 FirstChnl; u8 first_channel;
u8 NumChnls; u8 num_channels;
u8 MaxTxPowerInDbm; u8 max_tx_power;
}; };
enum dot11d_state { enum dot11d_state {