6

I want to use wpa_cli to connect with AP. If I use wpa_cli without -i option, wpa_cli will choose interface p2p-dev-wlan0 which does not really exist.

And network list between p2p-dev-wlan0 and wlan0 are not shared.

$ wpa_cli add_network
Selected interface 'p2p-dev-wlan0'
0

$ wpa_cli list_network
Selected interface 'p2p-dev-wlan0'
network id / ssid / bssid / flags
0               any     [DISABLED]

$ wpa_cli -i wlan0 list_network
network id / ssid / bssid / flags

This is very annoying to me. How can I make wpa_cli choose wlan0 rather than p2p-dev-wlan0 in default?

CodePurin
  • 525

2 Answers2

12

Add the line

p2p_disabled=1

in /etc/wpa_supplicant/wpa_supplicant.conf to disable the p2p interface.

0

try this:

rm /var/run/wpa_supplicant/p2p-dev-wanl