Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
7da37628
R
rt-thread
项目概览
BaiXuePrincess
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
7da37628
编写于
6月 23, 2018
作者:
wuyangyong
提交者:
GitHub
6月 23, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1556 from enkiller/dev
[components][drivers]wlan打印ap信息更加友好
上级
324c5da5
7f4b8d21
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
6 deletion
+15
-6
components/drivers/wlan/wlan_cmd.c
components/drivers/wlan/wlan_cmd.c
+15
-6
未找到文件。
components/drivers/wlan/wlan_cmd.c
浏览文件 @
7da37628
...
...
@@ -426,13 +426,22 @@ int wifi(int argc, char **argv)
int
index
,
num
;
num
=
scan_result
->
ap_num
;
rt_kprintf
(
"----Wi-Fi APInformation----
\n
"
);
rt_kprintf
(
" SSID MAC rssi chn Mbps
\n
"
);
rt_kprintf
(
"------------------------------- ----------------- ---- --- ----
\n
"
);
for
(
index
=
0
;
index
<
num
;
index
++
)
{
rt_kprintf
(
"SSID:%-.32s, "
,
scan_result
->
ap_table
[
index
].
ssid
);
rt_kprintf
(
"rssi:%d, "
,
scan_result
->
ap_table
[
index
].
rssi
);
rt_kprintf
(
"chn:%d, "
,
scan_result
->
ap_table
[
index
].
channel
);
rt_kprintf
(
"rate:%d
\n
"
,
scan_result
->
ap_table
[
index
].
datarate
);
rt_kprintf
(
"%-32.32s"
,
scan_result
->
ap_table
[
index
].
ssid
);
rt_kprintf
(
"%02x:%02x:%02x:%02x:%02x:%02x "
,
scan_result
->
ap_table
[
index
].
bssid
[
0
],
scan_result
->
ap_table
[
index
].
bssid
[
1
],
scan_result
->
ap_table
[
index
].
bssid
[
2
],
scan_result
->
ap_table
[
index
].
bssid
[
3
],
scan_result
->
ap_table
[
index
].
bssid
[
4
],
scan_result
->
ap_table
[
index
].
bssid
[
5
]
);
rt_kprintf
(
"%4d "
,
scan_result
->
ap_table
[
index
].
rssi
);
rt_kprintf
(
"%2d "
,
scan_result
->
ap_table
[
index
].
channel
);
rt_kprintf
(
"%d
\n
"
,
scan_result
->
ap_table
[
index
].
datarate
/
1000000
);
}
}
rt_wlan_release_scan_result
(
&
scan_result
);
...
...
@@ -502,7 +511,7 @@ int wifi(int argc, char **argv)
wlan
->
info
->
bssid
[
4
],
wlan
->
info
->
bssid
[
5
]);
rt_kprintf
(
" Channel: %d
\n
"
,
wlan
->
info
->
channel
);
rt_kprintf
(
"DataRate: %dMbps
\n
"
,
wlan
->
info
->
datarate
/
1000
);
rt_kprintf
(
"DataRate: %dMbps
\n
"
,
wlan
->
info
->
datarate
/
1000
000
);
rt_kprintf
(
" RSSI: %d
\n
"
,
rssi
);
}
else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录