diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/txrx.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 3154b0a31ea6..8316b3cd92cd 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -69,7 +69,8 @@ struct mwifiex_drv_mode { | |||
69 | #define MWIFIEX_TIMER_10S 10000 | 69 | #define MWIFIEX_TIMER_10S 10000 |
70 | #define MWIFIEX_TIMER_1S 1000 | 70 | #define MWIFIEX_TIMER_1S 1000 |
71 | 71 | ||
72 | #define MAX_TX_PENDING 60 | 72 | #define MAX_TX_PENDING 100 |
73 | #define LOW_TX_PENDING 80 | ||
73 | 74 | ||
74 | #define MWIFIEX_UPLD_SIZE (2312) | 75 | #define MWIFIEX_UPLD_SIZE (2312) |
75 | 76 | ||
diff --git a/drivers/net/wireless/mwifiex/txrx.c b/drivers/net/wireless/mwifiex/txrx.c index 210120889dfe..aaa50c074196 100644 --- a/drivers/net/wireless/mwifiex/txrx.c +++ b/drivers/net/wireless/mwifiex/txrx.c | |||
@@ -140,7 +140,9 @@ int mwifiex_write_data_complete(struct mwifiex_adapter *adapter, | |||
140 | } else { | 140 | } else { |
141 | priv->stats.tx_errors++; | 141 | priv->stats.tx_errors++; |
142 | } | 142 | } |
143 | atomic_dec(&adapter->tx_pending); | 143 | |
144 | if (atomic_dec_return(&adapter->tx_pending) >= LOW_TX_PENDING) | ||
145 | goto done; | ||
144 | 146 | ||
145 | for (i = 0; i < adapter->priv_num; i++) { | 147 | for (i = 0; i < adapter->priv_num; i++) { |
146 | 148 | ||