Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192e: rename variable pCapELE

Coding style issue, checkpatch Avoid CamelCase,
rename it. pCapELE -> cap_ele

Signed-off-by: Gary Rookard <garyrookard@fastmail.org>
Link: https://lore.kernel.org/r/20231216125303.3404-3-garyrookard@fastmail.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gary Rookard and committed by
Greg Kroah-Hartman
d08c910e b2264b62

+32 -32
+32 -32
drivers/staging/rtl8192e/rtl819x_HTProc.c
··· 231 231 u8 *len, u8 is_encrypt, bool assoc) 232 232 { 233 233 struct rt_hi_throughput *ht = ieee->ht_info; 234 - struct ht_capab_ele *pCapELE = NULL; 234 + struct ht_capab_ele *cap_ele = NULL; 235 235 236 236 if (!pos_ht_cap || !ht) { 237 237 netdev_warn(ieee->dev, ··· 244 244 static const u8 EWC11NHTCap[] = { 0x00, 0x90, 0x4c, 0x33 }; 245 245 246 246 memcpy(pos_ht_cap, EWC11NHTCap, sizeof(EWC11NHTCap)); 247 - pCapELE = (struct ht_capab_ele *)&pos_ht_cap[4]; 247 + cap_ele = (struct ht_capab_ele *)&pos_ht_cap[4]; 248 248 *len = 30 + 2; 249 249 } else { 250 - pCapELE = (struct ht_capab_ele *)pos_ht_cap; 250 + cap_ele = (struct ht_capab_ele *)pos_ht_cap; 251 251 *len = 26 + 2; 252 252 } 253 253 254 - pCapELE->AdvCoding = 0; 254 + cap_ele->AdvCoding = 0; 255 255 if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) 256 - pCapELE->ChlWidth = 0; 256 + cap_ele->ChlWidth = 0; 257 257 else 258 - pCapELE->ChlWidth = 1; 258 + cap_ele->ChlWidth = 1; 259 259 260 - pCapELE->MimoPwrSave = 3; 261 - pCapELE->GreenField = 0; 262 - pCapELE->ShortGI20Mhz = 1; 263 - pCapELE->ShortGI40Mhz = 1; 260 + cap_ele->MimoPwrSave = 3; 261 + cap_ele->GreenField = 0; 262 + cap_ele->ShortGI20Mhz = 1; 263 + cap_ele->ShortGI40Mhz = 1; 264 264 265 - pCapELE->TxSTBC = 1; 266 - pCapELE->RxSTBC = 0; 267 - pCapELE->DelayBA = 0; 268 - pCapELE->MaxAMSDUSize = (MAX_RECEIVE_BUFFER_SIZE >= 7935) ? 1 : 0; 269 - pCapELE->DssCCk = 1; 270 - pCapELE->PSMP = 0; 271 - pCapELE->LSigTxopProtect = 0; 265 + cap_ele->TxSTBC = 1; 266 + cap_ele->RxSTBC = 0; 267 + cap_ele->DelayBA = 0; 268 + cap_ele->MaxAMSDUSize = (MAX_RECEIVE_BUFFER_SIZE >= 7935) ? 1 : 0; 269 + cap_ele->DssCCk = 1; 270 + cap_ele->PSMP = 0; 271 + cap_ele->LSigTxopProtect = 0; 272 272 273 273 netdev_dbg(ieee->dev, 274 274 "TX HT cap/info ele BW=%d MaxAMSDUSize:%d DssCCk:%d\n", 275 - pCapELE->ChlWidth, pCapELE->MaxAMSDUSize, pCapELE->DssCCk); 275 + cap_ele->ChlWidth, cap_ele->MaxAMSDUSize, cap_ele->DssCCk); 276 276 277 277 if (is_encrypt) { 278 - pCapELE->MPDUDensity = 7; 279 - pCapELE->MaxRxAMPDUFactor = 2; 278 + cap_ele->MPDUDensity = 7; 279 + cap_ele->MaxRxAMPDUFactor = 2; 280 280 } else { 281 - pCapELE->MaxRxAMPDUFactor = 3; 282 - pCapELE->MPDUDensity = 0; 281 + cap_ele->MaxRxAMPDUFactor = 3; 282 + cap_ele->MPDUDensity = 0; 283 283 } 284 284 285 - memcpy(pCapELE->MCS, ieee->reg_dot11ht_oper_rate_set, 16); 286 - memset(&pCapELE->ExtHTCapInfo, 0, 2); 287 - memset(pCapELE->TxBFCap, 0, 4); 285 + memcpy(cap_ele->MCS, ieee->reg_dot11ht_oper_rate_set, 16); 286 + memset(&cap_ele->ExtHTCapInfo, 0, 2); 287 + memset(cap_ele->TxBFCap, 0, 4); 288 288 289 - pCapELE->ASCap = 0; 289 + cap_ele->ASCap = 0; 290 290 291 291 if (assoc) { 292 292 if (ht->iot_action & HT_IOT_ACT_DISABLE_MCS15) 293 - pCapELE->MCS[1] &= 0x7f; 293 + cap_ele->MCS[1] &= 0x7f; 294 294 295 295 if (ht->iot_action & HT_IOT_ACT_DISABLE_MCS14) 296 - pCapELE->MCS[1] &= 0xbf; 296 + cap_ele->MCS[1] &= 0xbf; 297 297 298 298 if (ht->iot_action & HT_IOT_ACT_DISABLE_ALL_2SS) 299 - pCapELE->MCS[1] &= 0x00; 299 + cap_ele->MCS[1] &= 0x00; 300 300 301 301 if (ht->iot_action & HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI) 302 - pCapELE->ShortGI40Mhz = 0; 302 + cap_ele->ShortGI40Mhz = 0; 303 303 304 304 if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) { 305 - pCapELE->ChlWidth = 0; 306 - pCapELE->MCS[1] = 0; 305 + cap_ele->ChlWidth = 0; 306 + cap_ele->MCS[1] = 0; 307 307 } 308 308 } 309 309 }