p2p: get dynamic address problems
Fri Jan 4 02:38:01 PST 2013
On Friday 04 January 2013 10:05:40 kyle wrote:
> i'm new to wpa_supplicant.hope someone can give me some help or
> here is my problem:
> after using ping command to verify connection,i find my devices works
> well in p2p mode with static ip.
> but when i enable the DHCP server at the GO EVM, which will provide IP
> address to the clients using DHCP session,
> something go wrong.
> the DHCP server works well in AP mode .
> but In p2p mode,DHCP server seems not received request.
> and client EVM automatically obtain a ipv6 address.
> does someone encounter similar situation or know something about this??
Do you run a p2p-action script on the p2p main interface?
It'll take care of managing a newly created groups and
you can even setup up cross-connections automatically.
The "wpa_supplicant/examples/p2p-action.sh"  
script for wpa_cli action mode shows how you can use
dnsmasq and dhclient to do this automatically based on
P2P-GROUP-STARTED events. To use it, just execute:
wpa_cli -i $WLANX -a full-path-from-root-to/p2p-action.sh -B
right after you've started wpa_supplicant (but before
any p2p client can connect).
More information about the Hostap