linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ath6kl: Make sure to allocate rx buffers after the endpoint connection
@ 2012-02-10 15:10 Vasanthakumar Thiagarajan
  2012-02-10 15:10 ` [PATCH 2/2] ath6kl: Fix memory leak of rx packets in endpoint 0 Vasanthakumar Thiagarajan
  2012-02-28  7:50 ` [PATCH 1/2] ath6kl: Make sure to allocate rx buffers after the endpoint connection Kalle Valo
  0 siblings, 2 replies; 9+ messages in thread
From: Vasanthakumar Thiagarajan @ 2012-02-10 15:10 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless, ath6kl-devel

Rx buffers should be allocated for control and best effort endpoints only
after the enpoints connection is esablished. But this is done before the
endpoint connection is complete, we don't even the control and BE endpoints
that time. Move the buffer allocation after endpoint connection is over,
after ath6kl_init_hw_start(). Found in review, never seen any real issue
with this.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath6kl/core.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/core.c b/drivers/net/wireless/ath/ath6kl/core.c
index c4926cf..ce7d9b5 100644
--- a/drivers/net/wireless/ath/ath6kl/core.c
+++ b/drivers/net/wireless/ath/ath6kl/core.c
@@ -136,10 +136,6 @@ int ath6kl_core_init(struct ath6kl *ar)
 	ar->ac_stream_pri_map[WMM_AC_VI] = 2;
 	ar->ac_stream_pri_map[WMM_AC_VO] = 3; /* highest */
 
-	/* give our connected endpoints some buffers */
-	ath6kl_rx_refill(ar->htc_target, ar->ctrl_ep);
-	ath6kl_rx_refill(ar->htc_target, ar->ac2ep_map[WMM_AC_BE]);
-
 	/* allocate some buffers that handle larger AMSDU frames */
 	ath6kl_refill_amsdu_rxbufs(ar, ATH6KL_MAX_AMSDU_RX_BUFFERS);
 
@@ -182,6 +178,10 @@ int ath6kl_core_init(struct ath6kl *ar)
 		goto err_rxbuf_cleanup;
 	}
 
+	/* give our connected endpoints some buffers */
+	ath6kl_rx_refill(ar->htc_target, ar->ctrl_ep);
+	ath6kl_rx_refill(ar->htc_target, ar->ac2ep_map[WMM_AC_BE]);
+
 	/*
 	 * Set mac address which is received in ready event
 	 * FIXME: Move to ath6kl_interface_add()
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-02-28  7:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-10 15:10 [PATCH 1/2] ath6kl: Make sure to allocate rx buffers after the endpoint connection Vasanthakumar Thiagarajan
2012-02-10 15:10 ` [PATCH 2/2] ath6kl: Fix memory leak of rx packets in endpoint 0 Vasanthakumar Thiagarajan
2012-02-14  7:23   ` Raja Mani
2012-02-14  7:27     ` Vasanthakumar Thiagarajan
2012-02-14 13:56       ` Vasanthakumar Thiagarajan
2012-02-27 17:22   ` Kalle Valo
2012-02-28  4:26     ` Vasanthakumar Thiagarajan
2012-02-28  7:41       ` Kalle Valo
2012-02-28  7:50 ` [PATCH 1/2] ath6kl: Make sure to allocate rx buffers after the endpoint connection Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).