hostapd/src/p2p
Jouni Malinen 25ef8529c1 P2P: Add support for IP address assignment in 4-way handshake
This new mechanism allows P2P Client to request an IPv4 address from the
GO as part of the 4-way handshake to avoid use of DHCP exchange after
4-way handshake. If the new mechanism is used, the assigned IP address
is shown in the P2P-GROUP-STARTED event on the client side with
following new parameters: ip_addr, ip_mask, go_ip_addr. The assigned IP
address is included in the AP-STA-CONNECTED event on the GO side as a
new ip_addr parameter. The IP address is valid for the duration of the
association.

The IP address pool for this new mechanism is configured as global
wpa_supplicant configuration file parameters ip_addr_go, ip_addr_mask,
ip_addr_star, ip_addr_end. For example:

ip_addr_go=192.168.42.1
ip_addr_mask=255.255.255.0
ip_addr_start=192.168.42.2
ip_addr_end=192.168.42.100

DHCP mechanism is expected to be enabled at the same time to support P2P
Devices that do not use the new mechanism. The easiest way of managing
the IP addresses is by splitting the IP address range into two parts and
assign a separate range for wpa_supplicant and DHCP server.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
2014-01-27 21:44:26 +02:00
..
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00
p2p.c P2P NFC: Optimize GO Negotiation retries 2014-01-27 21:10:56 +02:00
p2p.h P2P NFC: Add NFC tag enabling for static handover 2014-01-27 21:10:56 +02:00
p2p_build.c P2P NFC: Add OOB GO Negotiation Channel attribute 2014-01-27 21:10:55 +02:00
p2p_dev_disc.c P2P: Clean up debug prints 2013-05-18 18:47:36 +03:00
p2p_go_neg.c P2P NFC: Report connection handover as trigger for P2P 2014-01-27 21:10:56 +02:00
p2p_group.c P2P: Add support for IP address assignment in 4-way handshake 2014-01-27 21:44:26 +02:00
p2p_i.h P2P NFC: Report connection handover as trigger for P2P 2014-01-27 21:10:56 +02:00
p2p_invitation.c P2P: Use negotiated channel from invitation for persistent GO 2013-11-16 18:05:28 +02:00
p2p_parse.c P2P NFC: Allow separate WPS/P2P IES to be parsed 2014-01-27 21:10:56 +02:00
p2p_pd.c P2P: Fix PD retry channel on join-a-group case 2013-10-20 21:38:02 +03:00
p2p_sd.c P2P: Clean up debug prints 2013-05-18 18:47:36 +03:00
p2p_utils.c P2P: Prefer U-NII-3 over U-NII-1 during channel selection 2013-11-19 13:04:21 +02:00