Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1dc09776
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看板
提交
1dc09776
编写于
1月 11, 2006
作者:
J
Johannes Berg
提交者:
John W. Linville
3月 22, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] softmac: scan at least once before selecting a network by essid
Signed-off-by:
N
John W. Linville
<
linville@tuxdriver.com
>
上级
48b2e4ce
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
7 deletion
+8
-7
net/ieee80211/softmac/ieee80211softmac_assoc.c
net/ieee80211/softmac/ieee80211softmac_assoc.c
+8
-7
未找到文件。
net/ieee80211/softmac/ieee80211softmac_assoc.c
浏览文件 @
1dc09776
...
...
@@ -164,8 +164,11 @@ ieee80211softmac_assoc_work(void *d)
if
(
mac
->
associnfo
.
bssvalid
)
found
=
ieee80211softmac_get_network_by_bssid
(
mac
,
mac
->
associnfo
.
bssid
);
/* Search the ieee80211 networks for this network if we didn't find it */
if
(
!
found
)
/* Search the ieee80211 networks for this network if we didn't find it by bssid,
* but only if we've scanned at least once (to get a better list of networks to
* select from). If we have not scanned before, the !found logic below will be
* invoked and will scan. */
if
(
!
found
&&
(
mac
->
associnfo
.
scan_retry
<
IEEE80211SOFTMAC_ASSOC_SCAN_RETRY_LIMIT
))
{
s8
rssi
=
-
128
;
/* if I don't initialise, gcc emits an invalid warning
because it cannot follow the best pointer logic. */
...
...
@@ -218,12 +221,10 @@ ieee80211softmac_assoc_work(void *d)
* NB: this also happens if we had no memory to copy the network info...
* Maybe we can hope to have more memory after scanning finishes ;)
*/
dprintk
(
KERN_INFO
PFX
"Associate:
Network not known, trying to initiate scan:
"
);
dprintk
(
KERN_INFO
PFX
"Associate:
Scanning for networks first.
\n
"
);
ieee80211softmac_notify
(
mac
->
dev
,
IEEE80211SOFTMAC_EVENT_SCAN_FINISHED
,
ieee80211softmac_assoc_notify
,
NULL
);
if
(
ieee80211softmac_start_scan
(
mac
))
dprintk
(
"failed.
\n
"
);
else
dprintk
(
"ok.
\n
"
);
dprintk
(
KERN_INFO
PFX
"Associate: failed to initiate scan. Is device up?
\n
"
);
return
;
}
else
{
...
...
@@ -232,7 +233,7 @@ ieee80211softmac_assoc_work(void *d)
mac
->
associated
=
0
;
spin_unlock_irqrestore
(
&
mac
->
lock
,
flags
);
dprintk
(
KERN_INFO
PFX
"Unable to find network after scan!
\n
"
);
dprintk
(
KERN_INFO
PFX
"Unable to find
matching
network after scan!
\n
"
);
ieee80211softmac_call_events
(
mac
,
IEEE80211SOFTMAC_EVENT_ASSOCIATE_NET_NOT_FOUND
,
NULL
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录