Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
ff0037b2
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ff0037b2
编写于
10月 03, 2005
作者:
J
James Ketrenos
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Lindent and trailing whitespace script executed ieee80211 subsystem
Signed-off-by:
N
James Ketrenos
<
jketreno@linux.intel.com
>
上级
c1bda44a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
17 deletion
+24
-17
include/net/ieee80211_crypt.h
include/net/ieee80211_crypt.h
+3
-3
net/ieee80211/ieee80211_rx.c
net/ieee80211/ieee80211_rx.c
+21
-14
未找到文件。
include/net/ieee80211_crypt.h
浏览文件 @
ff0037b2
...
...
@@ -26,7 +26,7 @@
#include <linux/skbuff.h>
enum
{
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES
=
(
1
<<
0
),
IEEE80211_CRYPTO_TKIP_COUNTERMEASURES
=
(
1
<<
0
),
};
struct
ieee80211_crypto_ops
{
...
...
@@ -65,8 +65,8 @@ struct ieee80211_crypto_ops {
char
*
(
*
print_stats
)
(
char
*
p
,
void
*
priv
);
/* Crypto specific flag get/set for configuration settings */
unsigned
long
(
*
get_flags
)(
void
*
priv
);
unsigned
long
(
*
set_flags
)(
unsigned
long
flags
,
void
*
priv
);
unsigned
long
(
*
get_flags
)
(
void
*
priv
);
unsigned
long
(
*
set_flags
)
(
unsigned
long
flags
,
void
*
priv
);
/* maximum number of bytes added by encryption; encrypt buf is
* allocated with extra_prefix_len bytes, copy of in_buf, and
...
...
net/ieee80211/ieee80211_rx.c
浏览文件 @
ff0037b2
...
...
@@ -917,8 +917,9 @@ static int ieee80211_parse_qos_info_param_IE(struct ieee80211_info_element
return
rc
;
}
static
int
ieee80211_parse_info_param
(
struct
ieee80211_info_element
*
info_element
,
u16
length
,
struct
ieee80211_network
*
network
)
static
int
ieee80211_parse_info_param
(
struct
ieee80211_info_element
*
info_element
,
u16
length
,
struct
ieee80211_network
*
network
)
{
u8
i
;
#ifdef CONFIG_IEEE80211_DEBUG
...
...
@@ -929,11 +930,11 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element *info_elemen
while
(
length
>=
sizeof
(
*
info_element
))
{
if
(
sizeof
(
*
info_element
)
+
info_element
->
len
>
length
)
{
IEEE80211_DEBUG_MGMT
(
"Info elem: parse failed: "
"info_element->len + 2 > left : "
"info_element->len+2=%zd left=%d, id=%d.
\n
"
,
info_element
->
len
+
sizeof
(
*
info_element
),
length
,
info_element
->
id
);
"info_element->len + 2 > left : "
"info_element->len+2=%zd left=%d, id=%d.
\n
"
,
info_element
->
len
+
sizeof
(
*
info_element
),
length
,
info_element
->
id
);
return
1
;
}
...
...
@@ -954,7 +955,7 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element *info_elemen
IW_ESSID_MAX_SIZE
-
network
->
ssid_len
);
IEEE80211_DEBUG_MGMT
(
"MFIE_TYPE_SSID: '%s' len=%d.
\n
"
,
network
->
ssid
,
network
->
ssid_len
);
network
->
ssid
,
network
->
ssid_len
);
break
;
case
MFIE_TYPE_RATES
:
...
...
@@ -1074,17 +1075,20 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element *info_elemen
break
;
case
MFIE_TYPE_QOS_PARAMETER
:
printk
(
KERN_ERR
"QoS Error need to parse QOS_PARAMETER IE
\n
"
);
printk
(
KERN_ERR
"QoS Error need to parse QOS_PARAMETER IE
\n
"
);
break
;
default:
IEEE80211_DEBUG_MGMT
(
"unsupported IE %d
\n
"
,
info_element
->
id
);
info_element
->
id
);
break
;
}
length
-=
sizeof
(
*
info_element
)
+
info_element
->
len
;
info_element
=
(
struct
ieee80211_info_element
*
)
&
info_element
->
data
[
info_element
->
len
];
info_element
=
(
struct
ieee80211_info_element
*
)
&
info_element
->
data
[
info_element
->
len
];
}
return
0
;
...
...
@@ -1112,7 +1116,8 @@ static int ieee80211_handle_assoc_resp(struct ieee80211_device *ieee, struct iee
network
->
rates_len
=
network
->
rates_ex_len
=
0
;
network
->
last_associate
=
0
;
network
->
ssid_len
=
0
;
network
->
erp_value
=
(
network
->
capability
&
WLAN_CAPABILITY_IBSS
)
?
0x3
:
0x0
;
network
->
erp_value
=
(
network
->
capability
&
WLAN_CAPABILITY_IBSS
)
?
0x3
:
0x0
;
if
(
stats
->
freq
==
IEEE80211_52GHZ_BAND
)
{
/* for A band (No DS info) */
...
...
@@ -1123,7 +1128,8 @@ static int ieee80211_handle_assoc_resp(struct ieee80211_device *ieee, struct iee
network
->
wpa_ie_len
=
0
;
network
->
rsn_ie_len
=
0
;
if
(
ieee80211_parse_info_param
(
frame
->
info_element
,
stats
->
len
-
sizeof
(
*
frame
),
network
))
if
(
ieee80211_parse_info_param
(
frame
->
info_element
,
stats
->
len
-
sizeof
(
*
frame
),
network
))
return
1
;
network
->
mode
=
0
;
...
...
@@ -1185,7 +1191,8 @@ static inline int ieee80211_network_init(struct ieee80211_device *ieee, struct i
network
->
wpa_ie_len
=
0
;
network
->
rsn_ie_len
=
0
;
if
(
ieee80211_parse_info_param
(
beacon
->
info_element
,
stats
->
len
-
sizeof
(
*
beacon
),
network
))
if
(
ieee80211_parse_info_param
(
beacon
->
info_element
,
stats
->
len
-
sizeof
(
*
beacon
),
network
))
return
1
;
network
->
mode
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录