Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
fd67b064
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看板
提交
fd67b064
编写于
8月 28, 2005
作者:
J
Jeff Garzik
浏览文件
操作
浏览文件
下载
差异文件
/spare/repo/netdev-2.6 branch 'ieee80211'
上级
831a179f
91cb70c1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
68 deletion
+3
-68
include/net/ieee80211.h
include/net/ieee80211.h
+3
-43
net/ieee80211/ieee80211_rx.c
net/ieee80211/ieee80211_rx.c
+0
-16
net/ieee80211/ieee80211_tx.c
net/ieee80211/ieee80211_tx.c
+0
-9
未找到文件。
include/net/ieee80211.h
浏览文件 @
fd67b064
...
...
@@ -24,15 +24,6 @@
#include <linux/kernel.h>
/* ARRAY_SIZE */
#include <linux/wireless.h>
#if WIRELESS_EXT < 17
#define IW_QUAL_QUAL_INVALID 0x10
#define IW_QUAL_LEVEL_INVALID 0x20
#define IW_QUAL_NOISE_INVALID 0x40
#define IW_QUAL_QUAL_UPDATED 0x1
#define IW_QUAL_LEVEL_UPDATED 0x2
#define IW_QUAL_NOISE_UPDATED 0x4
#endif
#define IEEE80211_DATA_LEN 2304
/* Maximum size for the MA-UNITDATA primitive, 802.11 standard section
6.2.1.1.2.
...
...
@@ -65,35 +56,6 @@ struct ieee80211_hdr_3addr {
__le16
seq_ctl
;
}
__attribute__
((
packed
));
enum
eap_type
{
EAP_PACKET
=
0
,
EAPOL_START
,
EAPOL_LOGOFF
,
EAPOL_KEY
,
EAPOL_ENCAP_ASF_ALERT
};
static
const
char
*
eap_types
[]
=
{
[
EAP_PACKET
]
=
"EAP-Packet"
,
[
EAPOL_START
]
=
"EAPOL-Start"
,
[
EAPOL_LOGOFF
]
=
"EAPOL-Logoff"
,
[
EAPOL_KEY
]
=
"EAPOL-Key"
,
[
EAPOL_ENCAP_ASF_ALERT
]
=
"EAPOL-Encap-ASF-Alert"
};
static
inline
const
char
*
eap_get_type
(
int
type
)
{
return
(
type
>=
ARRAY_SIZE
(
eap_types
))
?
"Unknown"
:
eap_types
[
type
];
}
struct
eapol
{
u8
snap
[
6
];
__be16
ethertype
;
u8
version
;
u8
type
;
__be16
length
;
}
__attribute__
((
packed
));
#define IEEE80211_1ADDR_LEN 10
#define IEEE80211_2ADDR_LEN 16
#define IEEE80211_3ADDR_LEN 24
...
...
@@ -196,11 +158,11 @@ const char *escape_essid(const char *essid, u8 essid_len);
*
* To add your debug level to the list of levels seen when you perform
*
* % cat /proc/net/i
pw
/debug_level
* % cat /proc/net/i
eee80211
/debug_level
*
* you simply need to add your entry to the i
pw_debug_levels
array.
* you simply need to add your entry to the i
eee80211_debug_level
array.
*
* If you do not see debug_level in /proc/net/i
pw
then you do not have
* If you do not see debug_level in /proc/net/i
eee80211
then you do not have
* CONFIG_IEEE80211_DEBUG defined in your kernel configuration
*
*/
...
...
@@ -211,7 +173,6 @@ const char *escape_essid(const char *essid, u8 essid_len);
#define IEEE80211_DL_STATE (1<<3)
#define IEEE80211_DL_MGMT (1<<4)
#define IEEE80211_DL_FRAG (1<<5)
#define IEEE80211_DL_EAP (1<<6)
#define IEEE80211_DL_DROP (1<<7)
#define IEEE80211_DL_TX (1<<8)
...
...
@@ -226,7 +187,6 @@ const char *escape_essid(const char *essid, u8 essid_len);
#define IEEE80211_DEBUG_STATE(f, a...) IEEE80211_DEBUG(IEEE80211_DL_STATE, f, ## a)
#define IEEE80211_DEBUG_MGMT(f, a...) IEEE80211_DEBUG(IEEE80211_DL_MGMT, f, ## a)
#define IEEE80211_DEBUG_FRAG(f, a...) IEEE80211_DEBUG(IEEE80211_DL_FRAG, f, ## a)
#define IEEE80211_DEBUG_EAP(f, a...) IEEE80211_DEBUG(IEEE80211_DL_EAP, f, ## a)
#define IEEE80211_DEBUG_DROP(f, a...) IEEE80211_DEBUG(IEEE80211_DL_DROP, f, ## a)
#define IEEE80211_DEBUG_TX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_TX, f, ## a)
#define IEEE80211_DEBUG_RX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_RX, f, ## a)
...
...
net/ieee80211/ieee80211_rx.c
浏览文件 @
fd67b064
...
...
@@ -628,14 +628,8 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
if
(
crypt
&&
!
(
fc
&
IEEE80211_FCTL_PROTECTED
)
&&
!
ieee
->
open_wep
)
{
if
(
/*ieee->ieee802_1x &&*/
ieee80211_is_eapol_frame
(
ieee
,
skb
))
{
#ifdef CONFIG_IEEE80211_DEBUG
/* pass unencrypted EAPOL frames even if encryption is
* configured */
struct
eapol
*
eap
=
(
struct
eapol
*
)(
skb
->
data
+
24
);
IEEE80211_DEBUG_EAP
(
"RX: IEEE 802.1X EAPOL frame: %s
\n
"
,
eap_get_type
(
eap
->
type
));
#endif
}
else
{
IEEE80211_DEBUG_DROP
(
"encryption configured, but RX "
...
...
@@ -645,16 +639,6 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
}
}
#ifdef CONFIG_IEEE80211_DEBUG
if
(
crypt
&&
!
(
fc
&
IEEE80211_FCTL_PROTECTED
)
&&
ieee80211_is_eapol_frame
(
ieee
,
skb
))
{
struct
eapol
*
eap
=
(
struct
eapol
*
)(
skb
->
data
+
24
);
IEEE80211_DEBUG_EAP
(
"RX: IEEE 802.1X EAPOL frame: %s
\n
"
,
eap_get_type
(
eap
->
type
));
}
#endif
if
(
crypt
&&
!
(
fc
&
IEEE80211_FCTL_PROTECTED
)
&&
!
ieee
->
open_wep
&&
!
ieee80211_is_eapol_frame
(
ieee
,
skb
))
{
IEEE80211_DEBUG_DROP
(
...
...
net/ieee80211/ieee80211_tx.c
浏览文件 @
fd67b064
...
...
@@ -292,15 +292,6 @@ int ieee80211_xmit(struct sk_buff *skb,
goto
success
;
}
#ifdef CONFIG_IEEE80211_DEBUG
if
(
crypt
&&
!
encrypt
&&
ether_type
==
ETH_P_PAE
)
{
struct
eapol
*
eap
=
(
struct
eapol
*
)(
skb
->
data
+
sizeof
(
struct
ethhdr
)
-
SNAP_SIZE
-
sizeof
(
u16
));
IEEE80211_DEBUG_EAP
(
"TX: IEEE 802.11 EAPOL frame: %s
\n
"
,
eap_get_type
(
eap
->
type
));
}
#endif
/* Save source and destination addresses */
memcpy
(
&
dest
,
skb
->
data
,
ETH_ALEN
);
memcpy
(
&
src
,
skb
->
data
+
ETH_ALEN
,
ETH_ALEN
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录