Staging: rtl8192e: Rename variable bRTSEnable
Rename variable bRTSEnable to rts_enable to fix checkpatch warning Avoid CamelCase. Signed-off-by: Tree Davies <tdavies@darkphysics.net> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20240612032230.9738-6-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
24a9686dfc
commit
ec1cc0fcc8
@@ -892,7 +892,7 @@ void rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
|
||||
pTxFwInfo->RxAMD = 0;
|
||||
}
|
||||
|
||||
pTxFwInfo->RtsEnable = (cb_desc->bRTSEnable) ? 1 : 0;
|
||||
pTxFwInfo->RtsEnable = (cb_desc->rts_enable) ? 1 : 0;
|
||||
pTxFwInfo->CtsEnable = (cb_desc->bCTSEnable) ? 1 : 0;
|
||||
pTxFwInfo->RtsSTBC = (cb_desc->bRTSSTBC) ? 1 : 0;
|
||||
pTxFwInfo->RtsHT = (cb_desc->rts_rate & 0x80) ? 1 : 0;
|
||||
|
||||
@@ -111,7 +111,7 @@ struct cb_desc {
|
||||
|
||||
/* Tx Firmware Related flags (10-11)*/
|
||||
u8 bCTSEnable:1;
|
||||
u8 bRTSEnable:1;
|
||||
u8 rts_enable:1;
|
||||
u8 bUseShortGI:1;
|
||||
u8 bUseShortPreamble:1;
|
||||
u8 tx_enable_fw_calc_dur:1;
|
||||
|
||||
@@ -386,10 +386,10 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
|
||||
|
||||
if (ieee->mode < WIRELESS_MODE_N_24G) {
|
||||
if (skb->len > ieee->rts) {
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
} else if (ieee->current_network.buseprotection) {
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
tcb_desc->bCTSEnable = true;
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
}
|
||||
@@ -402,16 +402,16 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
|
||||
if (ht_info->iot_action & HT_IOT_ACT_FORCED_CTS2SELF) {
|
||||
tcb_desc->bCTSEnable = true;
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
break;
|
||||
} else if (ht_info->iot_action & (HT_IOT_ACT_FORCED_RTS |
|
||||
HT_IOT_ACT_PURE_N_MODE)) {
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
break;
|
||||
}
|
||||
if (ieee->current_network.buseprotection) {
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
tcb_desc->bCTSEnable = true;
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
break;
|
||||
@@ -423,18 +423,18 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
|
||||
ht_op_mode == 3)) ||
|
||||
(!ht_info->cur_bw_40mhz && ht_op_mode == 3)) {
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (skb->len > ieee->rts) {
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
tcb_desc->bRTSEnable = true;
|
||||
tcb_desc->rts_enable = true;
|
||||
break;
|
||||
}
|
||||
if (tcb_desc->ampdu_enable) {
|
||||
tcb_desc->rts_rate = MGN_24M;
|
||||
tcb_desc->bRTSEnable = false;
|
||||
tcb_desc->rts_enable = false;
|
||||
break;
|
||||
}
|
||||
goto NO_PROTECTION;
|
||||
@@ -443,7 +443,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
|
||||
tcb_desc->bUseShortPreamble = true;
|
||||
return;
|
||||
NO_PROTECTION:
|
||||
tcb_desc->bRTSEnable = false;
|
||||
tcb_desc->rts_enable = false;
|
||||
tcb_desc->bCTSEnable = false;
|
||||
tcb_desc->rts_rate = 0;
|
||||
tcb_desc->RTSSC = 0;
|
||||
|
||||
Reference in New Issue
Block a user