You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
beceem: dump control packet information
Add control packet information is useful for debugging. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
This commit is contained in:
@@ -19,8 +19,10 @@ static VOID handle_rx_control_packet(PMINI_ADAPTER Adapter, struct sk_buff *skb)
|
|||||||
CHAR cntrl_msg_mask_bit = 0;
|
CHAR cntrl_msg_mask_bit = 0;
|
||||||
BOOLEAN drop_pkt_flag = TRUE ;
|
BOOLEAN drop_pkt_flag = TRUE ;
|
||||||
USHORT usStatus = *(PUSHORT)(skb->data);
|
USHORT usStatus = *(PUSHORT)(skb->data);
|
||||||
BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, CP_CTRL_PKT, DBG_LVL_ALL, "=====>");
|
|
||||||
/* Get the Leader field */
|
if (netif_msg_pktdata(Adapter))
|
||||||
|
print_hex_dump(KERN_DEBUG, PFX "rx control: ", DUMP_PREFIX_NONE,
|
||||||
|
16, 1, skb->data, skb->len, 0);
|
||||||
|
|
||||||
switch(usStatus)
|
switch(usStatus)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -65,6 +65,11 @@ INT SendControlPacket(PMINI_ADAPTER Adapter, char *pControlPacket)
|
|||||||
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, "Leader Length: %x",PLeader->PLength);
|
BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, TX_CONTROL, DBG_LVL_ALL, "Leader Length: %x",PLeader->PLength);
|
||||||
if(Adapter->device_removed)
|
if(Adapter->device_removed)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (netif_msg_pktdata(Adapter))
|
||||||
|
print_hex_dump(KERN_DEBUG, PFX "tx control: ", DUMP_PREFIX_NONE,
|
||||||
|
16, 1, pControlPacket, PLeader->PLength + LEADER_SIZE, 0);
|
||||||
|
|
||||||
Adapter->interface_transmit(Adapter->pvInterfaceAdapter,
|
Adapter->interface_transmit(Adapter->pvInterfaceAdapter,
|
||||||
pControlPacket, (PLeader->PLength + LEADER_SIZE));
|
pControlPacket, (PLeader->PLength + LEADER_SIZE));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user