Error launching AP hotspot under Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.