mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
staging: vt6656: don't stop TX queue unless buffer full.
Presently the TX buffer stops while filling the buffer and urb. However, this does not make use of the available buffer space, it also lags the speed of the TX troughtput. Only stop the queue when the buffer becomes full. The URB complete will start the queue again when a buffer and URB is available. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
49a315bf07
commit
b914b49449
2 changed files with 5 additions and 7 deletions
|
|
@ -507,13 +507,8 @@ static void vnt_tx_80211(struct ieee80211_hw *hw,
|
|||
{
|
||||
struct vnt_private *priv = hw->priv;
|
||||
|
||||
ieee80211_stop_queues(hw);
|
||||
|
||||
if (vnt_tx_packet(priv, skb)) {
|
||||
if (vnt_tx_packet(priv, skb))
|
||||
ieee80211_free_txskb(hw, skb);
|
||||
|
||||
ieee80211_wake_queues(hw);
|
||||
}
|
||||
}
|
||||
|
||||
static int vnt_start(struct ieee80211_hw *hw)
|
||||
|
|
|
|||
|
|
@ -101,9 +101,12 @@ static struct vnt_usb_send_context
|
|||
}
|
||||
}
|
||||
|
||||
if (ii == priv->num_tx_context)
|
||||
if (ii == priv->num_tx_context) {
|
||||
dev_dbg(&priv->usb->dev, "%s No Free Tx Context\n", __func__);
|
||||
|
||||
ieee80211_stop_queues(priv->hw);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue