Android solves the problem that the mobile phone cannot find the hotspot after the hotspot is opened through custom settings ., Android hotspot
During the development process, the mobile phone cannot find the hotspot after the hotspot is opened through custom settings.
Later, by viewing the hostapd. conf file in the/data/misc/wifi directory, we found that
interface = ap0
driver = nl80211
ctrl_interface = / data / misc / wifi / hostapd
ssid = Anffff
channel = 6
ieee80211n = 1
hw_mode = g
ignore_broadcast_ssid = 1
wowlan_triggers = any
max_num_sta = 6
eap_server = 1
wps_state = 2
config_methods = display physical_display push_button
device_name = AndroidAP
manufacturer = Media ********
model_name = *************
model_number = 66xx
serial_number = 1.0
device_type = 10-00 *******
wpa = 2
rsn_pairwise = CCMP
wpa_psk = 17aa1678a8ae7317122e429ca3 ****************
Ignore_broadcast_ssid = 1, its value must be 0 in order to be searched by the mobile phone.
Later, I continued searching and found that it was in WifiConfiguration config = new WifiConfiguration ();
During the new process, the config.hiddenSSID was set to true. After I changed the value of config.hiddenSSID to false, the phone can search this hotspot normally.