Skip to contentSkip to conversation

hostapd_free_hapd_data: Interface wlan0 wasn't started #dunfell #linux #kernel

DISCUSSION [email protected] 3 participants 5 messages Dec 1, 2020 – Dec 21, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

I'm new to Yocto Project/Embedded Linux. I had added hostapd recipe (https://layers.openembedded.org/layerindex/recipe/28409/) into my build image, and when I try to run "hostapd hostapd.conf" in terminal, I get the below error.

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
wlan0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan0 wasn't started

I had also killed wpa_supplicant, but still I get same error. Kindly please help me with this issue.

Thanks & Regards,
VR.

#2 lore raw
Quoted 3 lines · On 2020-12-03 2:02 a.m., [email protected] wrote:

Hi All,

Can anyone please help me this issue.

Hi VR,

What version/release of yocto (oe-core, bitbake, ...) are you using? What image are you building and what did you add to your local.conf ? What is your target system and who provided the BSP?

If it's an open source bsp layer or you can reproduce the issue using a layer such as meta-intel or meta-raspberrypi then someone might be able to help. Otherwise you'll have to contact the BSP vendor.

If you can reproduce the issue with poky, and no one on the list helps out, then you could open a defect in the YP Bugzilla.

https://wiki.yoctoproject.org/wiki/Bug_reporting_and_Information_levels

Good luck,
../Randy

Quoted 7 lines

Thanks &  Regards,
VR

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#3 lore raw

Hi Randy,

Thanks for the reply. I’m using Dunfell 3.1.1 with bitbake version 1.48.0. I had downloaded hostapd recipe from http://layers.openembedded.org/layerindex/recipe/28409/ for my target system i500-pumpkin with mediatek bsp. I had generated an image by adding IMAGE_INSTALL_append = “hostapd” into local.conf and tested on target board. When I run hostapd with default hostapd.conf file I got the mentioned error.

Thanks & Regards,
VR.

#4 lore raw

Hi VR,

Please make sure that the interface name in hostapd.conf matches with the wireless interface name of your target. By default it is set to wlan0, but it could be different in your target (for ex, wlp2s0...).

Best regards,
Shamil