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: next-20111118~41^2~15^2~42 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3101edef5cc43034cd809e7105ea2b366e9c7c00;p=karo-tx-linux.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 ddefc8e4a66b..1426f61c8a8a 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;