diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-03-28 07:35:51 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:04 -0400 |
commit | 6a4c499e86f54ed9316a87e7ddc6b7d33adb4976 (patch) | |
tree | 4230053982ce066115bb587c5c43f0b611989953 /drivers/net/wireless/rt2x00 | |
parent | f16d2db704b873d34cec54f992637f3579e10e08 (diff) |
rt2x00: Add an error message when trying to send on a full queue
We already tell mac80211 to stop the queue when we hit a certain
threshold. Hence, it shouldn't happen at all that a frame gets queued
for tx on a full queue. Add an error message for this case.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 5d8925991ffb..9fc4a1ec4b43 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -482,8 +482,11 @@ int rt2x00queue_write_tx_frame(struct data_queue *queue, struct sk_buff *skb, | |||
482 | struct skb_frame_desc *skbdesc; | 482 | struct skb_frame_desc *skbdesc; |
483 | u8 rate_idx, rate_flags; | 483 | u8 rate_idx, rate_flags; |
484 | 484 | ||
485 | if (unlikely(rt2x00queue_full(queue))) | 485 | if (unlikely(rt2x00queue_full(queue))) { |
486 | ERROR(queue->rt2x00dev, | ||
487 | "Dropping frame due to full tx queue %d.\n", queue->qid); | ||
486 | return -ENOBUFS; | 488 | return -ENOBUFS; |
489 | } | ||
487 | 490 | ||
488 | if (unlikely(test_and_set_bit(ENTRY_OWNER_DEVICE_DATA, | 491 | if (unlikely(test_and_set_bit(ENTRY_OWNER_DEVICE_DATA, |
489 | &entry->flags))) { | 492 | &entry->flags))) { |