mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
staging: rtl8192e: Addition of prefered spacing - Coding style
Added spaces around various operators, as preferred by coding style. Signed-off-by: John Whitmore <johnfwhitmore@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7695ff3084
commit
4c53614f39
|
|
@ -264,7 +264,7 @@ u16 HTHalfMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate)
|
|||
is40MHz = (IsHTHalfNmode40Bandwidth(ieee)) ? 1 : 0;
|
||||
isShortGI = (IsHTHalfNmodeSGI(ieee, is40MHz)) ? 1 : 0;
|
||||
|
||||
return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate&0x7f)];
|
||||
return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate & 0x7f)];
|
||||
}
|
||||
|
||||
u16 HTMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate)
|
||||
|
|
@ -275,7 +275,7 @@ u16 HTMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate)
|
|||
u8 isShortGI = (pHTInfo->bCurBW40MHz) ?
|
||||
((pHTInfo->bCurShortGI40MHz) ? 1 : 0) :
|
||||
((pHTInfo->bCurShortGI20MHz) ? 1 : 0);
|
||||
return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate&0x7f)];
|
||||
return MCS_DATA_RATE[is40MHz][isShortGI][(nMcsRate & 0x7f)];
|
||||
}
|
||||
|
||||
/********************************************************************************************************************
|
||||
|
|
@ -317,7 +317,7 @@ u16 TxCountToDataRate(struct ieee80211_device *ieee, u8 nDataRate)
|
|||
|
||||
//nDataRate = nDataRate - 60;
|
||||
}
|
||||
return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate&0xf];
|
||||
return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate & 0xf];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -823,15 +823,15 @@ u8 HTGetHighestMCSRate(struct ieee80211_device *ieee, u8 *pMCSRateSet, u8 *pMCSF
|
|||
if (availableMcsRate[i] != 0) {
|
||||
bitMap = availableMcsRate[i];
|
||||
for (j = 0; j < 8; j++) {
|
||||
if ((bitMap%2) != 0) {
|
||||
if (HTMcsToDataRate(ieee, (8*i+j)) > HTMcsToDataRate(ieee, mcsRate))
|
||||
mcsRate = (8*i+j);
|
||||
if ((bitMap % 2) != 0) {
|
||||
if (HTMcsToDataRate(ieee, (8 * i + j)) > HTMcsToDataRate(ieee, mcsRate))
|
||||
mcsRate = (8 * i + j);
|
||||
}
|
||||
bitMap >>= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return (mcsRate|0x80);
|
||||
return (mcsRate | 0x80);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -850,7 +850,7 @@ static u8 HTFilterMCSRate(struct ieee80211_device *ieee, u8 *pSupportMCS,
|
|||
|
||||
// filter out operational rate set not supported by AP, the length of it is 16
|
||||
for (i = 0; i <= 15; i++) {
|
||||
pOperateMCS[i] = ieee->Regdot11HTOperationalRateSet[i]&pSupportMCS[i];
|
||||
pOperateMCS[i] = ieee->Regdot11HTOperationalRateSet[i] & pSupportMCS[i];
|
||||
}
|
||||
|
||||
// TODO: adjust our operational rate set according to our channel bandwidth, STBC and Antenna number
|
||||
|
|
@ -909,7 +909,7 @@ void HTOnAssocRsp(struct ieee80211_device *ieee)
|
|||
////////////////////////////////////////////////////////
|
||||
// Configurations:
|
||||
////////////////////////////////////////////////////////
|
||||
IEEE80211_DEBUG_DATA(IEEE80211_DL_DATA|IEEE80211_DL_HT, pPeerHTCap, sizeof(HT_CAPABILITY_ELE));
|
||||
IEEE80211_DEBUG_DATA(IEEE80211_DL_DATA | IEEE80211_DL_HT, pPeerHTCap, sizeof(HT_CAPABILITY_ELE));
|
||||
// IEEE80211_DEBUG_DATA(IEEE80211_DL_DATA|IEEE80211_DL_HT, pPeerHTInfo, sizeof(HT_INFORMATION_ELE));
|
||||
// Config Supported Channel Width setting
|
||||
//
|
||||
|
|
@ -1303,9 +1303,9 @@ void HTSetConnectBwModeCallback(struct ieee80211_device *ieee)
|
|||
|
||||
if (pHTInfo->bCurBW40MHz) {
|
||||
if (pHTInfo->CurSTAExtChnlOffset == HT_EXTCHNL_OFFSET_UPPER)
|
||||
ieee->set_chan(ieee->dev, ieee->current_network.channel+2);
|
||||
ieee->set_chan(ieee->dev, ieee->current_network.channel + 2);
|
||||
else if (pHTInfo->CurSTAExtChnlOffset == HT_EXTCHNL_OFFSET_LOWER)
|
||||
ieee->set_chan(ieee->dev, ieee->current_network.channel-2);
|
||||
ieee->set_chan(ieee->dev, ieee->current_network.channel - 2);
|
||||
else
|
||||
ieee->set_chan(ieee->dev, ieee->current_network.channel);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user