我有一个运行hostapd和dnsmasq的嵌入式系统充当wifi接入点。非常重复,在客户端(Macbook专业版,戴尔笔记本电脑,iphone,安卓平板电脑)与AP关联/验证以及获取IP地址的时间之间需要11秒。
似乎multipe dhcpdiscover / offers几乎同时通过,然后是dhcprequest和dhcpack:
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae IEEE 802.11: authenticated
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae IEEE 802.11: associated (aid 2)
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae RADIUS: starting accounting session 5521BC1F-00000007
Apr 5 23:27:01 AP daemon.info hostapd: wlan0-ap: STA b8:e8:56:2d:45:ae WPA: pairwise key handshake completed (RSN)
Apr 5 23:27:13 AP daemon.info dnsmasq-dhcp[734]: DHCPDISCOVER(wlan0-ap) b8:e8:56:2d:45:ae
Apr 5 23:27:13 AP daemon.info dnsmasq-dhcp[734]: DHCPOFFER(wlan0-ap) 10.1.1.166 b8:e8:56:2d:45:ae
Apr 5 23:27:13 AP daemon.info dnsmasq-dhcp[734]: DHCPDISCOVER(wlan0-ap) b8:e8:56:2d:45:ae
Apr 5 23:27:13 AP daemon.info dnsmasq-dhcp[734]: DHCPOFFER(wlan0-ap) 10.1.1.166 b8:e8:56:2d:45:ae
Apr 5 23:27:14 AP daemon.info dnsmasq-dhcp[734]: DHCPREQUEST(wlan0-ap) 10.1.1.166 b8:e8:56:2d:45:ae
Apr 5 23:27:14 AP daemon.info dnsmasq-dhcp[734]: DHCPACK(wlan0-ap) 10.1.1.166 b8:e8:56:2d:45:ae Allans-MBP
如何加快在客户端获取IP地址所需的时间?