question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error hostapd_free_hapd_data: Interface wlan0 wasn't started

See original GitHub issue

Hello, i am trying to use the script. I successfully ran the install_prerequisites and then i am now trying to start it but the AP does not appear and i get this wifi log. I am running Kali 2019.1 on vmware and i attached to the vm a wifi usb dongle TP-Link TL-WN823N and also the host pc integrated wifi card. In both cases this is the message. Where am i wrong? Thank you

Backing up NetworkManager.cfg...
Restarting NetworkManager...
Backing up /etc/dnsmasq.conf...
Writing dnsmasq config file...
Creating new /etc/dnsmasq.conf...
Writing hostapd config file...
Configuring AP interface...
Applying iptables rules...
Starting DNSMASQ server...
Error: Device for nexthop is not up.
Starting AP on wlan0 in screen terminal...
Configuration file: /etc/hostapd/hostapd.conf
Could not set interface wlan0 flags (UP): Operation not possible due to RF-kill
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 
wlan0: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface wlan0 wasn't started

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
AntSanVarcommented, Mar 26, 2019

Hello, I fix it unblocking the wifi adapter: sudo rfkill unblock wifi You can check the blocking status with: rfkill list

Best regards

0reactions
kueblccommented, Oct 1, 2019

If you have another machine on your network handling DNS queries you could redirect *.tuya(us|eu|cn).com requests to the machine running fake-registration-server.

Otherwise, without support for AP (master) mode, there is no way to create an isolated WiFi network for the Tuya device to connect to, and so nothing can be done here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

hostapd_free_hapd_data: Interface wlan0 wasn't started #17
Hi, after disabling Wifi (in network manager of XFCE4) I execute script krack-test-client.py. However this script reports error that ...
Read more >
hostapd_free_hapd_data: Interface wlan0 wasn't started
I'm trying to virtualize two wlans on my linux and set connection, but when I'm running the hostapd.conf I get this error, and...
Read more >
Hostapd error nl80211: Could not configure driver mode
nl80211: Could not configure driver mode nl80211 driver initialization failed. hostapd_free_hapd_data: Interface wlan0 wasn't started.
Read more >
PiZeroW as an AP: hostapd error: interface wlan0 does not ...
The problem manifests itself in two places: the hostapd service + the hostapd debug log. In the below output it's "warning: interface wlan0...
Read more >
hostapd error "nl80211: Could not configure driver mode"
The first two lines stop wlan from network manager, and then unblocks the interface, so ifconfig can work. UPDATE: But if for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found