1. Start HOSTAPD and enter sudo under terminal./HOSTAPD hostapd.conf (Note: The HOSTAPD and hostapd.conf used are in the current working directory)
1.2. The following error occurs after you execute 1:
Configuration file:hostapd.conf
Nl80211:could not configure driver mode
Nl80211:deinit Ifname=wlan0 disabled_11b_rates=0
NL80211 driver initialization failed.
Wlan0:interface State uninitialized->disabled
Wlan0:ap-disabled
Hostapd_free_hapd_data:interface Wlan0 wasn ' t started
1.3. If you do not run as Superuser root, such as:./HOSTAPD hostapd.conf, the following error message appears:
Configuration file:hostapd.conf
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Could not set interface Wlan0 flags (OFF): Operation not permitted
Nl80211:could not configure driver mode
Nl80211:deinit Ifname=wlan0 disabled_11b_rates=0
NL80211 driver initialization failed.
Wlan0:interface State uninitialized->disabled
Wlan0:ap-disabled
Hostapd_free_hapd_data:interface Wlan0 wasn ' t started
2. Workaround:
Input in Terminal:
2.1 sudo nmcli nm wifi off
2.2 sudo rfkill unblock WLAN
2.3 sudo ifconfig wlan0 192.168.1.1/24 up (Note: I configure the host's IP address to 192.168.1.1)
2.4 sudo./HOSTAPD hostapd.conf
2.5 The following message appears after 2.4 executes to indicate that the AP hotspot was successfully started.
Configuration file:hostapd.conf
Nl80211:could not re-add multicast membership for vendor events:-2 (No such file or directory)
Using interface wlan0 with hwaddr 7C:8F:ED:36:45:FA and SSID "Jellosmith"
Wlan0:interface State uninitialized->enabled
Wlan0:ap-enabled
Error launching AP hotspot under Linux