Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f4ff497d
Commit
f4ff497d
authored
Sep 12, 2005
by
Zhu Yi
Committed by
James Ketrenos
Nov 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix bug# 771] Too many (8) bytes recieved when using AES/hwcrypto
Signed-off-by:
James Ketrenos
<
jketreno@linux.intel.com
>
parent
29cb843e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
drivers/net/wireless/ipw2200.c
drivers/net/wireless/ipw2200.c
+2
-8
No files found.
drivers/net/wireless/ipw2200.c
View file @
f4ff497d
...
@@ -7877,10 +7877,7 @@ static void ipw_rebuild_decrypted_skb(struct ipw_priv *priv,
...
@@ -7877,10 +7877,7 @@ static void ipw_rebuild_decrypted_skb(struct ipw_priv *priv,
memmove
(
skb
->
data
+
IEEE80211_3ADDR_LEN
,
memmove
(
skb
->
data
+
IEEE80211_3ADDR_LEN
,
skb
->
data
+
IEEE80211_3ADDR_LEN
+
8
,
skb
->
data
+
IEEE80211_3ADDR_LEN
+
8
,
skb
->
len
-
IEEE80211_3ADDR_LEN
-
8
);
skb
->
len
-
IEEE80211_3ADDR_LEN
-
8
);
if
(
fc
&
IEEE80211_FCTL_MOREFRAGS
)
skb_trim
(
skb
,
skb
->
len
-
16
);
/* CCMP_HDR_LEN + CCMP_MIC_LEN */
skb_trim
(
skb
,
skb
->
len
-
16
);
/* 2*MIC */
else
skb_trim
(
skb
,
skb
->
len
-
8
);
/* MIC */
break
;
break
;
case
SEC_LEVEL_2
:
case
SEC_LEVEL_2
:
break
;
break
;
...
@@ -7889,10 +7886,7 @@ static void ipw_rebuild_decrypted_skb(struct ipw_priv *priv,
...
@@ -7889,10 +7886,7 @@ static void ipw_rebuild_decrypted_skb(struct ipw_priv *priv,
memmove
(
skb
->
data
+
IEEE80211_3ADDR_LEN
,
memmove
(
skb
->
data
+
IEEE80211_3ADDR_LEN
,
skb
->
data
+
IEEE80211_3ADDR_LEN
+
4
,
skb
->
data
+
IEEE80211_3ADDR_LEN
+
4
,
skb
->
len
-
IEEE80211_3ADDR_LEN
-
4
);
skb
->
len
-
IEEE80211_3ADDR_LEN
-
4
);
if
(
fc
&
IEEE80211_FCTL_MOREFRAGS
)
skb_trim
(
skb
,
skb
->
len
-
8
);
/* IV + ICV */
skb_trim
(
skb
,
skb
->
len
-
8
);
/* 2*ICV */
else
skb_trim
(
skb
,
skb
->
len
-
4
);
/* ICV */
break
;
break
;
case
SEC_LEVEL_0
:
case
SEC_LEVEL_0
:
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment