Skip to content

Commit

Permalink
mwifiex: fix cmd_skb headroom decreasing issue
Browse files Browse the repository at this point in the history
Before calling host_to_card() to send the cmd to firmware,
we use skb_push() to add 4 bytes SDIO interface header at
the start of the data buffer. Since cmd_skb data structure
will be re-used at a later time, we need to restore its
headroom by removing the 4 bytes header.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Marc Yang <yangyang@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Bing Zhao authored and John W. Linville committed Apr 12, 2011
1 parent d88525e commit 18bf965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/mwifiex/cmdevt.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ static int mwifiex_dnld_cmd_to_fw(struct mwifiex_private *priv,
cmd_node->cmd_skb->data,
cmd_node->cmd_skb->len, NULL);

skb_pull(cmd_node->cmd_skb, INTF_HEADER_LEN);

if (ret == -1) {
dev_err(adapter->dev, "DNLD_CMD: host to card failed\n");
if (wait_queue)
Expand Down

0 comments on commit 18bf965

Please sign in to comment.