diff options
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/ipwireless/hardware.c | 3 | ||||
-rw-r--r-- | drivers/char/pcmcia/ipwireless/network.c | 5 | ||||
-rw-r--r-- | drivers/char/pcmcia/ipwireless/network.h | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/ipwireless/hardware.c b/drivers/char/pcmcia/ipwireless/hardware.c index d1e69de19156..7d500f82195a 100644 --- a/drivers/char/pcmcia/ipwireless/hardware.c +++ b/drivers/char/pcmcia/ipwireless/hardware.c | |||
@@ -567,7 +567,8 @@ static struct ipw_rx_packet *pool_allocate(struct ipw_hardware *hw, | |||
567 | spin_unlock_irqrestore(&hw->lock, flags); | 567 | spin_unlock_irqrestore(&hw->lock, flags); |
568 | list_del(&packet->queue); | 568 | list_del(&packet->queue); |
569 | } else { | 569 | } else { |
570 | static int min_capacity = 256; | 570 | const int min_capacity = |
571 | ipwireless_ppp_mru(hw->network + 2); | ||
571 | int new_capacity; | 572 | int new_capacity; |
572 | 573 | ||
573 | spin_unlock_irqrestore(&hw->lock, flags); | 574 | spin_unlock_irqrestore(&hw->lock, flags); |
diff --git a/drivers/char/pcmcia/ipwireless/network.c b/drivers/char/pcmcia/ipwireless/network.c index 2b07af05106d..590762a7f217 100644 --- a/drivers/char/pcmcia/ipwireless/network.c +++ b/drivers/char/pcmcia/ipwireless/network.c | |||
@@ -499,3 +499,8 @@ int ipwireless_ppp_unit_number(struct ipw_network *network) | |||
499 | 499 | ||
500 | return ret; | 500 | return ret; |
501 | } | 501 | } |
502 | |||
503 | int ipwireless_ppp_mru(const struct ipw_network *network) | ||
504 | { | ||
505 | return network->mru; | ||
506 | } | ||
diff --git a/drivers/char/pcmcia/ipwireless/network.h b/drivers/char/pcmcia/ipwireless/network.h index ccacd26fc7ef..561f765b3334 100644 --- a/drivers/char/pcmcia/ipwireless/network.h +++ b/drivers/char/pcmcia/ipwireless/network.h | |||
@@ -48,5 +48,6 @@ void ipwireless_ppp_open(struct ipw_network *net); | |||
48 | void ipwireless_ppp_close(struct ipw_network *net); | 48 | void ipwireless_ppp_close(struct ipw_network *net); |
49 | int ipwireless_ppp_channel_index(struct ipw_network *net); | 49 | int ipwireless_ppp_channel_index(struct ipw_network *net); |
50 | int ipwireless_ppp_unit_number(struct ipw_network *net); | 50 | int ipwireless_ppp_unit_number(struct ipw_network *net); |
51 | int ipwireless_ppp_mru(const struct ipw_network *net); | ||
51 | 52 | ||
52 | #endif | 53 | #endif |