From 79f64eea5518403ea7c364fb97c51c9fc0f990bf Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 28 Apr 2006 14:08:41 +0000 Subject: [PATCH] Transmit the buffer contents, not the buffer descriptor... --- src/drivers/net/pnic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drivers/net/pnic.c b/src/drivers/net/pnic.c index d21db6e2..d4b19778 100644 --- a/src/drivers/net/pnic.c +++ b/src/drivers/net/pnic.c @@ -134,8 +134,10 @@ static void pnic_poll ( struct net_device *netdev ) { if ( qlen == 0 ) break; pkb = alloc_pkb ( ETH_FRAME_LEN ); - if ( ! pkb ) + if ( ! pkb ) { + printf ( "could not allocate buffer\n" ); break; + } if ( pnic_command ( pnic, PNIC_CMD_RECV, NULL, 0, pkb->data, ETH_FRAME_LEN, &length ) != PNIC_STATUS_OK ) { @@ -153,7 +155,7 @@ TRANSMIT - Transmit a frame static int pnic_transmit ( struct net_device *netdev, struct pk_buff *pkb ) { struct pnic *pnic = netdev->priv; - pnic_command ( pnic, PNIC_CMD_XMIT, pkb, pkb_len ( pkb ), + pnic_command ( pnic, PNIC_CMD_XMIT, pkb->data, pkb_len ( pkb ), NULL, 0, NULL ); free_pkb ( pkb ); return 0;