Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
78e4f36e
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看板
提交
78e4f36e
编写于
1月 10, 2006
作者:
J
Johannes Berg
提交者:
John W. Linville
3月 22, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] softmac: select "best" network based on rssi
Signed-off-by:
N
John W. Linville
<
linville@tuxdriver.com
>
上级
51da28a8
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
8 addition
and
4 deletion
+8
-4
net/ieee80211/softmac/ieee80211softmac_assoc.c
net/ieee80211/softmac/ieee80211softmac_assoc.c
+8
-4
未找到文件。
net/ieee80211/softmac/ieee80211softmac_assoc.c
浏览文件 @
78e4f36e
...
...
@@ -167,6 +167,8 @@ ieee80211softmac_assoc_work(void *d)
/* Search the ieee80211 networks for this network if we didn't find it */
if
(
!
found
)
{
s8
rssi
=
-
128
;
/* if I don't initialise, gcc emits an invalid warning
because it cannot follow the best pointer logic. */
spin_lock_irqsave
(
&
mac
->
ieee
->
lock
,
flags
);
list_for_each_entry
(
net
,
&
mac
->
ieee
->
network_list
,
list
)
{
/* we're supposed to find the network with
...
...
@@ -174,7 +176,7 @@ ieee80211softmac_assoc_work(void *d)
* any network with a specific ESSID, and many
* different ones could have that.
*
* I'll for now
implement just finding one at all
* I'll for now
just go with the reported rssi.
*
* We also should take into account the rateset
* here to find the best BSSID to try.
...
...
@@ -182,15 +184,17 @@ ieee80211softmac_assoc_work(void *d)
if
(
network_matches_request
(
mac
,
net
))
{
if
(
!
best
)
{
best
=
net
;
rssi
=
best
->
stats
.
rssi
;
continue
;
}
/* we already had a matching network, so
* compare their properties to get the
* better of the two ... (see above)
*/
/* TODO */
/* for now, just */
break
;
if
(
rssi
<
net
->
stats
.
rssi
)
{
best
=
net
;
rssi
=
best
->
stats
.
rssi
;
}
}
}
/* if we unlock here, we might get interrupted and the `best'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录