Hostapd and nl80211 driver

I’m having some trouble with the nl80211 driver with hostapd.

I try to make an access point on the board with an Colibri iMX6 DL, on a custom board and custom rootfs/dtb.
My Wifi driver is ok, i can see other networks, but when I change the configuration in hostapd with just the interface, the ssid and passphrase, i get the error :

 # /etc/init.d/hostapd start
Starting HOSTAP Daemon: Configuration file: /etc/hostapd.conf
nl80211: Driver does not support authentication/association or connect commands
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlan0 wasn't started

In my kernel, I already choose CONFIG_CFG80211=y, CONFIG_MAC80211=y, CONFIG_LIB80211=y
Thank you for the help.

Pierre-Olivier Huard

EDIT : I also test iw (based on the nl80211 driver) and nothing happens when I type iw list.

Can you share a bit more information about your setup (used WLAN card, hostapd conf file, kernel version, wlan card drivers)?

You can try disabling CONFIG_LIB80211 in kernel and make sure that wpa_supplicant is not running before trying to start hostapd.