Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
3289a836
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3289a836
编写于
7月 22, 2010
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lib80211: remove unused host_build_iv option
Signed-off-by:
N
John W. Linville
<
linville@tuxdriver.com
>
上级
ea65145d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
4 addition
and
21 deletion
+4
-21
drivers/net/wireless/ipw2x00/libipw.h
drivers/net/wireless/ipw2x00/libipw.h
+0
-1
drivers/net/wireless/ipw2x00/libipw_tx.c
drivers/net/wireless/ipw2x00/libipw_tx.c
+3
-13
drivers/net/wireless/ipw2x00/libipw_wx.c
drivers/net/wireless/ipw2x00/libipw_wx.c
+1
-1
include/net/lib80211.h
include/net/lib80211.h
+0
-3
net/wireless/lib80211_crypt_ccmp.c
net/wireless/lib80211_crypt_ccmp.c
+0
-1
net/wireless/lib80211_crypt_tkip.c
net/wireless/lib80211_crypt_tkip.c
+0
-1
net/wireless/lib80211_crypt_wep.c
net/wireless/lib80211_crypt_wep.c
+0
-1
未找到文件。
drivers/net/wireless/ipw2x00/libipw.h
浏览文件 @
3289a836
...
...
@@ -828,7 +828,6 @@ struct libipw_device {
int
host_strip_iv_icv
;
int
host_open_frag
;
int
host_build_iv
;
int
ieee802_1x
;
/* is IEEE 802.1X used */
/* WPA data */
...
...
drivers/net/wireless/ipw2x00/libipw_tx.c
浏览文件 @
3289a836
...
...
@@ -260,7 +260,7 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
int
i
,
bytes_per_frag
,
nr_frags
,
bytes_last_frag
,
frag_size
,
rts_required
;
unsigned
long
flags
;
int
encrypt
,
host_encrypt
,
host_encrypt_msdu
,
host_build_iv
;
int
encrypt
,
host_encrypt
,
host_encrypt_msdu
;
__be16
ether_type
;
int
bytes
,
fc
,
hdr_len
;
struct
sk_buff
*
skb_frag
;
...
...
@@ -301,7 +301,6 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
host_encrypt
=
ieee
->
host_encrypt
&&
encrypt
&&
crypt
;
host_encrypt_msdu
=
ieee
->
host_encrypt_msdu
&&
encrypt
&&
crypt
;
host_build_iv
=
ieee
->
host_build_iv
&&
encrypt
&&
crypt
;
if
(
!
encrypt
&&
ieee
->
ieee802_1x
&&
ieee
->
drop_unencrypted
&&
ether_type
!=
htons
(
ETH_P_PAE
))
{
...
...
@@ -313,7 +312,7 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
skb_copy_from_linear_data
(
skb
,
dest
,
ETH_ALEN
);
skb_copy_from_linear_data_offset
(
skb
,
ETH_ALEN
,
src
,
ETH_ALEN
);
if
(
host_encrypt
||
host_build_iv
)
if
(
host_encrypt
)
fc
=
IEEE80211_FTYPE_DATA
|
IEEE80211_STYPE_DATA
|
IEEE80211_FCTL_PROTECTED
;
else
...
...
@@ -467,7 +466,7 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
for
(;
i
<
nr_frags
;
i
++
)
{
skb_frag
=
txb
->
fragments
[
i
];
if
(
host_encrypt
||
host_build_iv
)
if
(
host_encrypt
)
skb_reserve
(
skb_frag
,
crypt
->
ops
->
extra_mpdu_prefix_len
);
...
...
@@ -502,15 +501,6 @@ netdev_tx_t libipw_xmit(struct sk_buff *skb, struct net_device *dev)
* to insert the IV between the header and the payload */
if
(
host_encrypt
)
libipw_encrypt_fragment
(
ieee
,
skb_frag
,
hdr_len
);
else
if
(
host_build_iv
)
{
atomic_inc
(
&
crypt
->
refcnt
);
if
(
crypt
->
ops
->
build_iv
)
crypt
->
ops
->
build_iv
(
skb_frag
,
hdr_len
,
ieee
->
sec
.
keys
[
ieee
->
sec
.
active_key
],
ieee
->
sec
.
key_sizes
[
ieee
->
sec
.
active_key
],
crypt
->
priv
);
atomic_dec
(
&
crypt
->
refcnt
);
}
if
(
ieee
->
config
&
(
CFG_LIBIPW_COMPUTE_FCS
|
CFG_LIBIPW_RESERVE_FCS
))
...
...
drivers/net/wireless/ipw2x00/libipw_wx.c
浏览文件 @
3289a836
...
...
@@ -320,7 +320,7 @@ int libipw_wx_set_encode(struct libipw_device *ieee,
};
int
i
,
key
,
key_provided
,
len
;
struct
lib80211_crypt_data
**
crypt
;
int
host_crypto
=
ieee
->
host_encrypt
||
ieee
->
host_decrypt
||
ieee
->
host_build_iv
;
int
host_crypto
=
ieee
->
host_encrypt
||
ieee
->
host_decrypt
;
DECLARE_SSID_BUF
(
ssid
);
LIBIPW_DEBUG_WX
(
"SET_ENCODE
\n
"
);
...
...
include/net/lib80211.h
浏览文件 @
3289a836
...
...
@@ -54,9 +54,6 @@ struct lib80211_crypto_ops {
/* deinitialize crypto context and free allocated private data */
void
(
*
deinit
)
(
void
*
priv
);
int
(
*
build_iv
)
(
struct
sk_buff
*
skb
,
int
hdr_len
,
u8
*
key
,
int
keylen
,
void
*
priv
);
/* encrypt/decrypt return < 0 on error or >= 0 on success. The return
* value from decrypt_mpdu is passed as the keyidx value for
* decrypt_msdu. skb must have enough head and tail room for the
...
...
net/wireless/lib80211_crypt_ccmp.c
浏览文件 @
3289a836
...
...
@@ -467,7 +467,6 @@ static struct lib80211_crypto_ops lib80211_crypt_ccmp = {
.
name
=
"CCMP"
,
.
init
=
lib80211_ccmp_init
,
.
deinit
=
lib80211_ccmp_deinit
,
.
build_iv
=
lib80211_ccmp_hdr
,
.
encrypt_mpdu
=
lib80211_ccmp_encrypt
,
.
decrypt_mpdu
=
lib80211_ccmp_decrypt
,
.
encrypt_msdu
=
NULL
,
...
...
net/wireless/lib80211_crypt_tkip.c
浏览文件 @
3289a836
...
...
@@ -757,7 +757,6 @@ static struct lib80211_crypto_ops lib80211_crypt_tkip = {
.
name
=
"TKIP"
,
.
init
=
lib80211_tkip_init
,
.
deinit
=
lib80211_tkip_deinit
,
.
build_iv
=
lib80211_tkip_hdr
,
.
encrypt_mpdu
=
lib80211_tkip_encrypt
,
.
decrypt_mpdu
=
lib80211_tkip_decrypt
,
.
encrypt_msdu
=
lib80211_michael_mic_add
,
...
...
net/wireless/lib80211_crypt_wep.c
浏览文件 @
3289a836
...
...
@@ -269,7 +269,6 @@ static struct lib80211_crypto_ops lib80211_crypt_wep = {
.
name
=
"WEP"
,
.
init
=
lib80211_wep_init
,
.
deinit
=
lib80211_wep_deinit
,
.
build_iv
=
lib80211_wep_build_iv
,
.
encrypt_mpdu
=
lib80211_wep_encrypt
,
.
decrypt_mpdu
=
lib80211_wep_decrypt
,
.
encrypt_msdu
=
NULL
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录