]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/pcmcia/ipwireless/hardware.c
ipwireless: Preallocate received packet buffers with MRU size
[linux-2.6-omap-h63xx.git] / drivers / char / pcmcia / ipwireless / hardware.c
index d1e69de19156d840d4068cc9c1aa4883ed70eb17..7d500f82195a08b22d1ab550ab95bb43e541dd7a 100644 (file)
@@ -567,7 +567,8 @@ static struct ipw_rx_packet *pool_allocate(struct ipw_hardware *hw,
                        spin_unlock_irqrestore(&hw->lock, flags);
                        list_del(&packet->queue);
                } else {
-                       static int min_capacity = 256;
+                       const int min_capacity =
+                               ipwireless_ppp_mru(hw->network + 2);
                        int new_capacity;
 
                        spin_unlock_irqrestore(&hw->lock, flags);