Wifi P2P wpa_supplicant-无法创建 p2p 设备接口

Wifi P2P wpa_supplicant-无法创建 p2p 设备接口

我正在尝试使用 ubuntu 配置 wifi p2p 连接,但遇到了一些问题。我特别遵循了此指导和这个

几乎一切看起来都很好,但是当我运行命令时:

sudo ./wpa_supplicant -i wlan0 -c /etc/p2p.conf -Dnl80211 -ddt

我收到此错误:

     1442591346.069280: nl80211: Set wlan0 operstate 0->0 (DORMANT)
     1442591346.069563: netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
     1442591346.069901: nl80211: Create interface iftype 10 (P2P_DEVICE)
     1442591347.591372: Failed to create interface p2p-dev-wlan0: -5 (Input/output error)
     1442591347.592233: nl80211: Failed to create a P2P Device interface p2p-dev-wlan0
     1442591347.593031: P2P: Failed to create P2P Device interface
     1442591347.593754: P2P: Failed to enable P2P Device interface
     1442591347.594689: EAPOL: disable timer tick
     1442591347.595501: random: Got 20/20 bytes from /dev/random

之后,如果我打开另一个 shell 然后输入

sudo ./wpa_cli -i wlan0

会话似乎正确启动,但是当我尝试使用 p2p 命令时,它们失败了:

     wpa_cli v2.4
     Copyright (c) 2004-2015, Jouni Malinen <[email protected]> and contributors
     This software may be distributed under the terms of the BSD license.
     See README for more details.
     Interactive mode
     > p2p_find
     FAIL

有人能帮我吗?我正在使用带有 Ubuntu 14.04.2 LTS 的 WANDBOARD 四核设备。我不明白为什么无法创建 P2P 接口。谢谢。

答案1

你的 wifi 设备是否支持 p2p-client/p2p-go 接口?你可以使用“iw list”检查接口

     Supported interface modes:
     * IBSS
     * managed
     * AP
     * AP/VLAN
     * monitor
     * P2P-client
     * P2P-GO
     * P2P-device

相关内容