From: Aarthi Thiruvengadam Date: Thu, 27 Oct 2011 16:35:56 +0000 (-0700) Subject: ath6kl: fix missing copy of action frame contents X-Git-Tag: v3.3-rc1~182^2~44^2~72^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3101edef5cc43034cd809e7105ea2b366e9c7c00;p=profile%2Fcommon%2Fkernel-common.git ath6kl: fix missing copy of action frame contents 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index ddefc8e..1426f61c 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c @@ -2846,6 +2846,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;