All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix missing copy of frame contents to local buffer
@ 2011-10-27 16:35 Aarthi Thiruvengadam
  2011-10-28 11:18 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Aarthi Thiruvengadam @ 2011-10-27 16:35 UTC (permalink / raw)
  To: kvalo; +Cc: linux-wireless, Aarthi Thiruvengadam, Aarthi Thiruvengadam

The wpa_supplicant was receiving incorrect frame contents in the
callback function that indicates the status of the frame transmitted.
This patch fixes a missing copy of the frame contents to a local
buffer. The local buffer keeps track of the last sent management frame.

Signed-off-by: Aarthi Thiruvengadam <athiruve@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath6kl/wmi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c
index e6b0960..6a1916a 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.c
+++ b/drivers/net/wireless/ath/ath6kl/wmi.c
@@ -2837,6 +2837,7 @@ int ath6kl_wmi_send_action_cmd(struct wmi *wmi, u8 if_idx, u32 id, u32 freq,
 	}
 
 	kfree(wmi->last_mgmt_tx_frame);
+	memcpy(buf, data, data_len);
 	wmi->last_mgmt_tx_frame = buf;
 	wmi->last_mgmt_tx_frame_len = data_len;
 
-- 
1.7.0.4


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

* Re: [PATCH] Fix missing copy of frame contents to local buffer
  2011-10-27 16:35 [PATCH] Fix missing copy of frame contents to local buffer Aarthi Thiruvengadam
@ 2011-10-28 11:18 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2011-10-28 11:18 UTC (permalink / raw)
  To: Aarthi Thiruvengadam; +Cc: linux-wireless, Aarthi Thiruvengadam

On 10/27/2011 07:35 PM, Aarthi Thiruvengadam wrote:
> The wpa_supplicant was receiving incorrect frame contents in the
> callback function that indicates the status of the frame transmitted.
> This patch fixes a missing copy of the frame contents to a local
> buffer. The local buffer keeps track of the last sent management frame.

Thanks, applied. But I changes the title to "ath6kl: fix missing copy of
action frame contents".

Kalle

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

end of thread, other threads:[~2011-10-28 11:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-27 16:35 [PATCH] Fix missing copy of frame contents to local buffer Aarthi Thiruvengadam
2011-10-28 11:18 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.