staging: r8188eu: remove the "dump tx packet" fragments
Remove the code fragments for printing outgoing packets. There's only a hal variable HAL_DEF_DBG_DUMP_TXPKT and the bDumpTxPkt component of struct hal_data_8188e. The hal variable is set by a private ioctl, it's never read. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220330201210.175941-3-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
76d86eccad
commit
f6ca689d12
@@ -1338,9 +1338,6 @@ void GetHalDefVar8188EUsb(struct adapter *Adapter, enum hal_def_variable eVariab
|
||||
case HAL_DEF_DBG_DM_FUNC:
|
||||
*((u32 *)pValue) = haldata->odmpriv.SupportAbility;
|
||||
break;
|
||||
case HAL_DEF_DBG_DUMP_TXPKT:
|
||||
*((u8 *)pValue) = haldata->bDumpTxPkt;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1370,9 +1367,6 @@ void SetHalDefVar8188EUsb(struct adapter *Adapter, enum hal_def_variable eVariab
|
||||
}
|
||||
}
|
||||
break;
|
||||
case HAL_DEF_DBG_DUMP_TXPKT:
|
||||
haldata->bDumpTxPkt = *((u8 *)pValue);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ enum hal_def_variable {
|
||||
HAL_DEF_IS_SUPPORT_ANT_DIV,
|
||||
HAL_DEF_CURRENT_ANTENNA,
|
||||
HAL_DEF_DBG_DM_FUNC,/* for dbg */
|
||||
HAL_DEF_DBG_DUMP_TXPKT,
|
||||
};
|
||||
|
||||
typedef s32 (*c2h_id_filter)(u8 id);
|
||||
|
||||
@@ -160,8 +160,6 @@ struct hal_data_8188e {
|
||||
u8 AntDivCfg;
|
||||
u8 TRxAntDivType;
|
||||
|
||||
u8 bDumpTxPkt;/* for debug */
|
||||
|
||||
u8 OutEpQueueSel;
|
||||
u8 OutEpNumber;
|
||||
|
||||
|
||||
@@ -3632,10 +3632,6 @@ static int rtw_dbg_port(struct net_device *dev,
|
||||
break;
|
||||
case 0x09:
|
||||
break;
|
||||
case 0x0c:/* dump rx/tx packet */
|
||||
if (arg == 1)
|
||||
SetHalDefVar8188EUsb(padapter, HAL_DEF_DBG_DUMP_TXPKT, &extra_arg);
|
||||
break;
|
||||
case 0x15:
|
||||
break;
|
||||
case 0x10:/* driver version display */
|
||||
|
||||
Reference in New Issue
Block a user