[PATCH] libertas: fixes for slow hardware

Dan Williams dcbw at redhat.com
Mon Oct 8 09:15:16 EDT 2007


On Mon, 2007-10-08 at 11:18 +0200, Holger Schurig wrote:
> This fixes issues where either the CF module is slow (and needs 
> more time while downloading the firmware) or where the host 
> computer is slow, so that some card interrupts arrive while
> the system was still downloading the firmware.
> 
> Signed-off-by: Vitaly V. Bursov <vitalyvb at ukr.net>
> Signed-off-by: Holger Schurig <hs4233 at mail.mn-solutions.de>

@@ -405,6 +405,7 @@ static struct sk_buff *if_cs_receive_dat
        skb = dev_alloc_skb(MRVDRV_ETH_RX_PACKET_BUFFER_SIZE + 2);
        if (!skb)
                goto out;
+       skb->dev = priv->dev;
        skb_put(skb, len);
        skb_reserve(skb, 2);/* 16 byte align */
        data = skb->data;

This hunk is not necessary, the skb->dev gets set in
libertas_upload_rx_packet() when calling eth_type_trans().  If using a
kernel <= 2.6.21, setting skb->dev should be handled by
libertas_upload_rx_packet() for you later on.

Dan





More information about the libertas-dev mailing list