summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Shakya <amit.shakya@stericsson.com>2011-10-14 21:22:35 +0530
committerPhilippe LANGLAIS <philippe.langlais@stericsson.com>2011-10-17 08:29:46 +0200
commit0b1bc4b56b252988c854d3fcfe4cd2ebff0e0c00 (patch)
treecb71a33f6a5e262c62705e220c58f5b5504af552
parent1255ddd45789b93ccd378cf4ef5dd11d6f80cfdb (diff)
cw1200: Fix for WPA2 security not working
The WPA2 security was not working because the local variable which keep track of the 802.11 header was not getting updated correctly in case of security related updations in the skb data field. Change-Id: I55a1aecee615843cf89eecb667597479f88e9756 Signed-off-by: Amit Shakya <amit.shakya@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34132 Reviewed-by: Robert MARKLUND <robert.marklund@stericsson.com> Reviewed-by: Dmitry TARNYAGIN <dmitry.tarnyagin@stericsson.com> Tested-by: Dmitry TARNYAGIN <dmitry.tarnyagin@stericsson.com> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
-rw-r--r--drivers/staging/cw1200/txrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/cw1200/txrx.c b/drivers/staging/cw1200/txrx.c
index a03a17bb79c..30532f3ea90 100644
--- a/drivers/staging/cw1200/txrx.c
+++ b/drivers/staging/cw1200/txrx.c
@@ -500,6 +500,7 @@ cw1200_tx_h_crypt(struct cw1200_common *priv,
newhdr = skb_push(t->skb, iv_len);
memmove(newhdr, newhdr + iv_len, t->hdrlen);
+ t->hdr = (struct ieee80211_hdr *) newhdr;
t->hdrlen += iv_len;
icv = skb_put(t->skb, icv_len);