summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAarthi Thiruvengadam <athiruve@qca.qualcomm.com>2011-10-27 16:35:56 (GMT)
committerKalle Valo <kvalo@qca.qualcomm.com>2011-11-11 10:58:55 (GMT)
commit3101edef5cc43034cd809e7105ea2b366e9c7c00 (patch)
treebc1ecafd38f96a6cc3fa077c6ac9bb8dce25fc84 /drivers
parent1052261e4bba9879c1d7d519c8e8606c5d4264d5 (diff)
downloadlinux-fsl-qoriq-3101edef5cc43034cd809e7105ea2b366e9c7c00.tar.xz
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 <athiruve@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath6kl/wmi.c1
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 ddefc8e..1426f61 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;