summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Shakya <amit.shakya@stericsson.com>2011-10-14 21:22:35 +0530
committerLee Jones <lee.jones@linaro.org>2012-01-05 10:20:24 +0000
commitdeb72a6481187a3e885b71a49bbd8fdc1510eba0 (patch)
tree926fb261ee68abce4ba29fb6b93405729ee69737
parent6d2e54be0e5dd5f87800c6a35eafe8d104eef66a (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);