I have installed hostapd. It's is working, ie acting as AP.

I am not able to connect my phone to it.

Wi-Fi network is shown on the phone.

Phone is connecting, asks for password, takes the password, RSA handshake is also being completed.

It is not assigning the IP address.

Please suggest, what needs to be done ??