p2p0是否是安卓中WIFI DIRECT的无线接口?

4
当我打印出我的安卓设备中所有的接口时:
03-10 19:50:15.484: I/System.out(22415): lo
03-10 19:50:15.494: I/System.out(22415): upnlink0
03-10 19:50:15.504: I/System.out(22415): svnet0
03-10 19:50:15.504: I/System.out(22415): rmnet0
03-10 19:50:15.514: I/System.out(22415): rmnet1
03-10 19:50:15.524: I/System.out(22415): rmnet2
03-10 19:50:15.534: I/System.out(22415): sit0
03-10 19:50:15.544: I/System.out(22415): ip6tnl0
03-10 19:50:15.554: I/System.out(22415): p2p0
03-10 19:50:15.564: I/System.out(22415): wlan0

我在想p2p0是否是WIFI DIRECT的实际接口?另外,如何打印出当前使用的接口?
1个回答

0

p2p0是WIFI DIRECT的接口。

在Android Studio控制台中发送“ifconfig”命令以查看当前使用的接口。 如果当前正在使用任何接口,则状态显示为活动状态,否则显示为非活动状态。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接