Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
831a179f
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
831a179f
编写于
8月 25, 2005
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
hostap: s/IEEE80211_FCTL_WEP/IEEE80211_FCTL_PROTECTED/ to fix build
上级
b4bf3430
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
9 deletion
+9
-9
drivers/net/wireless/hostap/hostap_80211_rx.c
drivers/net/wireless/hostap/hostap_80211_rx.c
+7
-7
drivers/net/wireless/hostap/hostap_80211_tx.c
drivers/net/wireless/hostap/hostap_80211_tx.c
+1
-1
drivers/net/wireless/hostap/hostap_ap.c
drivers/net/wireless/hostap/hostap_ap.c
+1
-1
未找到文件。
drivers/net/wireless/hostap/hostap_80211_rx.c
浏览文件 @
831a179f
...
...
@@ -773,7 +773,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
crypt
->
ops
->
decrypt_mpdu
==
NULL
))
crypt
=
NULL
;
if
(
!
crypt
&&
(
fc
&
IEEE80211_FCTL_
WEP
))
{
if
(
!
crypt
&&
(
fc
&
IEEE80211_FCTL_
PROTECTED
))
{
#if 0
/* This seems to be triggered by some (multicast?)
* frames from other than current BSS, so just drop the
...
...
@@ -791,7 +791,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
if
(
type
!=
IEEE80211_FTYPE_DATA
)
{
if
(
type
==
IEEE80211_FTYPE_MGMT
&&
stype
==
IEEE80211_STYPE_AUTH
&&
fc
&
IEEE80211_FCTL_
WEP
&&
local
->
host_decrypt
&&
fc
&
IEEE80211_FCTL_
PROTECTED
&&
local
->
host_decrypt
&&
(
keyidx
=
hostap_rx_frame_decrypt
(
local
,
skb
,
crypt
))
<
0
)
{
printk
(
KERN_DEBUG
"%s: failed to decrypt mgmt::auth "
...
...
@@ -886,14 +886,14 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
/* skb: hdr + (possibly fragmented, possibly encrypted) payload */
if
(
local
->
host_decrypt
&&
(
fc
&
IEEE80211_FCTL_
WEP
)
&&
if
(
local
->
host_decrypt
&&
(
fc
&
IEEE80211_FCTL_
PROTECTED
)
&&
(
keyidx
=
hostap_rx_frame_decrypt
(
local
,
skb
,
crypt
))
<
0
)
goto
rx_dropped
;
hdr
=
(
struct
ieee80211_hdr
*
)
skb
->
data
;
/* skb: hdr + (possibly fragmented) plaintext payload */
if
(
local
->
host_decrypt
&&
(
fc
&
IEEE80211_FCTL_
WEP
)
&&
if
(
local
->
host_decrypt
&&
(
fc
&
IEEE80211_FCTL_
PROTECTED
)
&&
(
frag
!=
0
||
(
fc
&
IEEE80211_FCTL_MOREFRAGS
)))
{
int
flen
;
struct
sk_buff
*
frag_skb
=
...
...
@@ -948,12 +948,12 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
/* skb: hdr + (possible reassembled) full MSDU payload; possibly still
* encrypted/authenticated */
if
(
local
->
host_decrypt
&&
(
fc
&
IEEE80211_FCTL_
WEP
)
&&
if
(
local
->
host_decrypt
&&
(
fc
&
IEEE80211_FCTL_
PROTECTED
)
&&
hostap_rx_frame_decrypt_msdu
(
local
,
skb
,
keyidx
,
crypt
))
goto
rx_dropped
;
hdr
=
(
struct
ieee80211_hdr
*
)
skb
->
data
;
if
(
crypt
&&
!
(
fc
&
IEEE80211_FCTL_
WEP
)
&&
!
local
->
open_wep
)
{
if
(
crypt
&&
!
(
fc
&
IEEE80211_FCTL_
PROTECTED
)
&&
!
local
->
open_wep
)
{
if
(
local
->
ieee_802_1x
&&
hostap_is_eapol_frame
(
local
,
skb
))
{
/* pass unencrypted EAPOL frames even if encryption is
...
...
@@ -968,7 +968,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
}
}
if
(
local
->
drop_unencrypted
&&
!
(
fc
&
IEEE80211_FCTL_
WEP
)
&&
if
(
local
->
drop_unencrypted
&&
!
(
fc
&
IEEE80211_FCTL_
PROTECTED
)
&&
!
hostap_is_eapol_frame
(
local
,
skb
))
{
if
(
net_ratelimit
())
{
printk
(
KERN_DEBUG
"%s: dropped unencrypted RX data "
...
...
drivers/net/wireless/hostap/hostap_80211_tx.c
浏览文件 @
831a179f
...
...
@@ -466,7 +466,7 @@ int hostap_master_start_xmit(struct sk_buff *skb, struct net_device *dev)
else
if
((
tx
.
crypt
||
local
->
crypt
[
local
->
tx_keyidx
])
&&
!
no_encrypt
)
{
/* Add ISWEP flag both for firmware and host based encryption
*/
fc
|=
IEEE80211_FCTL_
WEP
;
fc
|=
IEEE80211_FCTL_
PROTECTED
;
hdr
->
frame_ctl
=
cpu_to_le16
(
fc
);
}
else
if
(
local
->
drop_unencrypted
&&
WLAN_FC_GET_TYPE
(
fc
)
==
IEEE80211_FTYPE_DATA
&&
...
...
drivers/net/wireless/hostap/hostap_ap.c
浏览文件 @
831a179f
...
...
@@ -1436,7 +1436,7 @@ static void handle_authen(local_info_t *local, struct sk_buff *skb,
challenge
==
NULL
||
memcmp
(
sta
->
u
.
sta
.
challenge
,
challenge
,
WLAN_AUTH_CHALLENGE_LEN
)
!=
0
||
!
(
fc
&
IEEE80211_FCTL_
WEP
))
{
!
(
fc
&
IEEE80211_FCTL_
PROTECTED
))
{
txt
=
"challenge response incorrect"
;
resp
=
WLAN_STATUS_CHALLENGE_FAIL
;
goto
fail
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录