0

How can I enable WiFi p2p on raspberry pi zero w and have dhcp service running so that other devices that connect to it get assigned an IP address?

I am able to configure the dhcp service on the pi by following this link:

https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

but the article asks for disabling the wpa_supplicant by adding nohook wpa_supplicant to the end of /etc/dhcpcd.conf while I am supposed to run wpa_supplicant in order to enable WiFi p2p

how can I do that?

migrated from superuser.com Feb 10 at 9:04

This question came from our site for computer enthusiasts and power users.

  • I think the default behavior for wifi-direct is via "APIPA" addresses. – Tim_Stewart Feb 10 at 1:31
  • 1
    I second what @Tim_Stewart said. I believe Wi-Fi Direct (Wi-Fi P2P) devices use what the IETF standards call "IPv4 link-local" addresses, which in Microsoft proprietary jargon are called "APIPA" addresses. That is, self-assigned addresses in the 169.254.0.0/16 subnet. – Spiff Feb 10 at 1:51
  • so does this mean it is doable or not? – Mohyddin Feb 10 at 10:34
  • It is doable to use a DHCP server with WiFi Direct. But the GO (group owner) is required to implement an DHCP server: Wi-Fi Direct vs Ad-hoc mode. – Ingo Feb 10 at 12:59
  • The link you are using does not set up a WiFi Direct connection. It installs a managed access point. That is a complete different approach. – Ingo Feb 10 at 13:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.