disconnection with hotspot and optian ip address

Hello Guys

I have some problem with hotspot

First: sometimes android clients wants to connect to hotspot then see this massage and stuck in this situation and finally couldn’t connect: “Obtaining IP address Automatically”

Second: when all decives connected to wireless modem everything is ok, even when devices putted in lock or sleep has internet access.
but when devices connected to hotspot, and then goes to luck or sleep doesn’t have internet. It’s mean disconnected.

what should i change configuration to soved these problem?

freq: 2442
protocol: any

For HotSpot the protocol must be 802.11, not any.
Do not use n, but only b/g.