Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
64147c72
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
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看板
提交
64147c72
编写于
1月 19, 2010
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
libertas/assoc.c: rearrange some strange line breaks
Signed-off-by:
N
John W. Linville
<
linville@tuxdriver.com
>
上级
c9f6a656
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
30 addition
and
32 deletion
+30
-32
drivers/net/wireless/libertas/assoc.c
drivers/net/wireless/libertas/assoc.c
+30
-32
未找到文件。
drivers/net/wireless/libertas/assoc.c
浏览文件 @
64147c72
...
...
@@ -1160,11 +1160,11 @@ int lbs_adhoc_stop(struct lbs_private *priv)
static
inline
int
match_bss_no_security
(
struct
lbs_802_11_security
*
secinfo
,
struct
bss_descriptor
*
match_bss
)
{
if
(
!
secinfo
->
wep_enabled
&&
!
secinfo
->
WPAenabled
&&
!
secinfo
->
WPA2enabled
&&
match_bss
->
wpa_ie
[
0
]
!=
WLAN_EID_GENERIC
&&
match_bss
->
rsn_ie
[
0
]
!=
WLAN_EID_RSN
&&
!
(
match_bss
->
capability
&
WLAN_CAPABILITY_PRIVACY
))
if
(
!
secinfo
->
wep_enabled
&&
!
secinfo
->
WPAenabled
&&
!
secinfo
->
WPA2enabled
&&
match_bss
->
wpa_ie
[
0
]
!=
WLAN_EID_GENERIC
&&
match_bss
->
rsn_ie
[
0
]
!=
WLAN_EID_RSN
&&
!
(
match_bss
->
capability
&
WLAN_CAPABILITY_PRIVACY
))
return
1
;
else
return
0
;
...
...
@@ -1173,9 +1173,9 @@ static inline int match_bss_no_security(struct lbs_802_11_security *secinfo,
static
inline
int
match_bss_static_wep
(
struct
lbs_802_11_security
*
secinfo
,
struct
bss_descriptor
*
match_bss
)
{
if
(
secinfo
->
wep_enabled
&&
!
secinfo
->
WPAenabled
&&
!
secinfo
->
WPA2enabled
&&
(
match_bss
->
capability
&
WLAN_CAPABILITY_PRIVACY
))
if
(
secinfo
->
wep_enabled
&&
!
secinfo
->
WPAenabled
&&
!
secinfo
->
WPA2enabled
&&
(
match_bss
->
capability
&
WLAN_CAPABILITY_PRIVACY
))
return
1
;
else
return
0
;
...
...
@@ -1184,8 +1184,8 @@ static inline int match_bss_static_wep(struct lbs_802_11_security *secinfo,
static
inline
int
match_bss_wpa
(
struct
lbs_802_11_security
*
secinfo
,
struct
bss_descriptor
*
match_bss
)
{
if
(
!
secinfo
->
wep_enabled
&&
secinfo
->
WPAenabled
&&
(
match_bss
->
wpa_ie
[
0
]
==
WLAN_EID_GENERIC
)
if
(
!
secinfo
->
wep_enabled
&&
secinfo
->
WPAenabled
&&
(
match_bss
->
wpa_ie
[
0
]
==
WLAN_EID_GENERIC
)
/* privacy bit may NOT be set in some APs like LinkSys WRT54G
&& (match_bss->capability & WLAN_CAPABILITY_PRIVACY) */
)
...
...
@@ -1210,11 +1210,11 @@ static inline int match_bss_wpa2(struct lbs_802_11_security *secinfo,
static
inline
int
match_bss_dynamic_wep
(
struct
lbs_802_11_security
*
secinfo
,
struct
bss_descriptor
*
match_bss
)
{
if
(
!
secinfo
->
wep_enabled
&&
!
secinfo
->
WPAenabled
&&
!
secinfo
->
WPA2enabled
&&
(
match_bss
->
wpa_ie
[
0
]
!=
WLAN_EID_GENERIC
)
&&
(
match_bss
->
rsn_ie
[
0
]
!=
WLAN_EID_RSN
)
&&
(
match_bss
->
capability
&
WLAN_CAPABILITY_PRIVACY
))
if
(
!
secinfo
->
wep_enabled
&&
!
secinfo
->
WPAenabled
&&
!
secinfo
->
WPA2enabled
&&
(
match_bss
->
wpa_ie
[
0
]
!=
WLAN_EID_GENERIC
)
&&
(
match_bss
->
rsn_ie
[
0
]
!=
WLAN_EID_RSN
)
&&
(
match_bss
->
capability
&
WLAN_CAPABILITY_PRIVACY
))
return
1
;
else
return
0
;
...
...
@@ -1525,8 +1525,8 @@ static int assoc_helper_associate(struct lbs_private *priv,
/* If we're given and 'any' BSSID, try associating based on SSID */
if
(
test_bit
(
ASSOC_FLAG_BSSID
,
&
assoc_req
->
flags
))
{
if
(
compare_ether_addr
(
bssid_any
,
assoc_req
->
bssid
)
&&
compare_ether_addr
(
bssid_off
,
assoc_req
->
bssid
))
{
if
(
compare_ether_addr
(
bssid_any
,
assoc_req
->
bssid
)
&&
compare_ether_addr
(
bssid_off
,
assoc_req
->
bssid
))
{
ret
=
assoc_helper_bssid
(
priv
,
assoc_req
);
done
=
1
;
}
...
...
@@ -1612,11 +1612,9 @@ static int assoc_helper_channel(struct lbs_private *priv,
goto
restore_mesh
;
}
if
(
assoc_req
->
secinfo
.
wep_enabled
&&
(
assoc_req
->
wep_keys
[
0
].
len
||
assoc_req
->
wep_keys
[
1
].
len
||
assoc_req
->
wep_keys
[
2
].
len
||
assoc_req
->
wep_keys
[
3
].
len
))
{
if
(
assoc_req
->
secinfo
.
wep_enabled
&&
(
assoc_req
->
wep_keys
[
0
].
len
||
assoc_req
->
wep_keys
[
1
].
len
||
assoc_req
->
wep_keys
[
2
].
len
||
assoc_req
->
wep_keys
[
3
].
len
))
{
/* Make sure WEP keys are re-sent to firmware */
set_bit
(
ASSOC_FLAG_WEP_KEYS
,
&
assoc_req
->
flags
);
}
...
...
@@ -1983,14 +1981,14 @@ void lbs_association_worker(struct work_struct *work)
assoc_req
->
secinfo
.
auth_mode
);
/* If 'any' SSID was specified, find an SSID to associate with */
if
(
test_bit
(
ASSOC_FLAG_SSID
,
&
assoc_req
->
flags
)
&&
!
assoc_req
->
ssid_len
)
if
(
test_bit
(
ASSOC_FLAG_SSID
,
&
assoc_req
->
flags
)
&&
!
assoc_req
->
ssid_len
)
find_any_ssid
=
1
;
/* But don't use 'any' SSID if there's a valid locked BSSID to use */
if
(
test_bit
(
ASSOC_FLAG_BSSID
,
&
assoc_req
->
flags
))
{
if
(
compare_ether_addr
(
assoc_req
->
bssid
,
bssid_any
)
&&
compare_ether_addr
(
assoc_req
->
bssid
,
bssid_off
))
if
(
compare_ether_addr
(
assoc_req
->
bssid
,
bssid_any
)
&&
compare_ether_addr
(
assoc_req
->
bssid
,
bssid_off
))
find_any_ssid
=
0
;
}
...
...
@@ -2064,15 +2062,15 @@ void lbs_association_worker(struct work_struct *work)
goto
out
;
}
if
(
test_bit
(
ASSOC_FLAG_WPA_MCAST_KEY
,
&
assoc_req
->
flags
)
||
test_bit
(
ASSOC_FLAG_WPA_UCAST_KEY
,
&
assoc_req
->
flags
))
{
if
(
test_bit
(
ASSOC_FLAG_WPA_MCAST_KEY
,
&
assoc_req
->
flags
)
||
test_bit
(
ASSOC_FLAG_WPA_UCAST_KEY
,
&
assoc_req
->
flags
))
{
ret
=
assoc_helper_wpa_keys
(
priv
,
assoc_req
);
if
(
ret
)
goto
out
;
}
if
(
test_bit
(
ASSOC_FLAG_WEP_KEYS
,
&
assoc_req
->
flags
)
||
test_bit
(
ASSOC_FLAG_WEP_TX_KEYIDX
,
&
assoc_req
->
flags
))
{
if
(
test_bit
(
ASSOC_FLAG_WEP_KEYS
,
&
assoc_req
->
flags
)
||
test_bit
(
ASSOC_FLAG_WEP_TX_KEYIDX
,
&
assoc_req
->
flags
))
{
ret
=
assoc_helper_wep_keys
(
priv
,
assoc_req
);
if
(
ret
)
goto
out
;
...
...
@@ -2082,8 +2080,8 @@ void lbs_association_worker(struct work_struct *work)
/* SSID/BSSID should be the _last_ config option set, because they
* trigger the association attempt.
*/
if
(
test_bit
(
ASSOC_FLAG_BSSID
,
&
assoc_req
->
flags
)
||
test_bit
(
ASSOC_FLAG_SSID
,
&
assoc_req
->
flags
))
{
if
(
test_bit
(
ASSOC_FLAG_BSSID
,
&
assoc_req
->
flags
)
||
test_bit
(
ASSOC_FLAG_SSID
,
&
assoc_req
->
flags
))
{
int
success
=
1
;
ret
=
assoc_helper_associate
(
priv
,
assoc_req
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录