aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAmit Beka <amit.beka@intel.com>2012-02-08 03:01:35 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2012-02-17 13:55:10 -0500
commitedabfa914d52daf8c01511109144fe5af3c4389e (patch)
treef7e117b3fd05577f13e20ca5e8b9a1154b60503a /drivers
parent858b7c74dda1d748a687a523e83cf7d1449c70f3 (diff)
iwlwifi: send testmode hcmd reply with rx header
When a host command is sent through testmode, the whole reply (including rx header) is returned to the user, and not only the payload of the rx. Before this commit the length was buggy - the reply contained 4 bytes after the end of the payload. Signed-off-by: Amit Beka <amit.beka@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-testmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.c b/drivers/net/wireless/iwlwifi/iwl-testmode.c
index ba5c63a023a..80955ed06e8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-testmode.c
+++ b/drivers/net/wireless/iwlwifi/iwl-testmode.c
@@ -309,7 +309,7 @@ static int iwl_testmode_ucode(struct ieee80211_hw *hw, struct nlattr **tb)
309 } 309 }
310 310
311 /* The reply is in a page, that we cannot send to user space. */ 311 /* The reply is in a page, that we cannot send to user space. */
312 memcpy(reply_buf, &(pkt->u), reply_len); 312 memcpy(reply_buf, &(pkt->hdr), reply_len);
313 iwl_free_pages(priv->shrd, cmd.reply_page); 313 iwl_free_pages(priv->shrd, cmd.reply_page);
314 314
315 NLA_PUT_U32(skb, IWL_TM_ATTR_COMMAND, IWL_TM_CMD_DEV2APP_UCODE_RX_PKT); 315 NLA_PUT_U32(skb, IWL_TM_ATTR_COMMAND, IWL_TM_CMD_DEV2APP_UCODE_RX_PKT);