hostapd gives error nl80211: Register Action command failed: ret=-19

7,932

Removing a space character after the "interface=wlan0 " line solved the issue.

I had copied the hostapd.conf from a website: hostapd is due to a bad implementation very sensitive to whitespaces.

Share:
7,932
Roalt
Author by

Roalt

Updated on September 18, 2022

Comments

  • Roalt
    Roalt over 1 year

    I'm trying to get hostapd working on a RT3290 (pci-based) network adapter, and a Ubuntu 12.04.3 LTS release. I use the approach taken in How to setup an Access Point mode Wi-Fi Hotspot?

    I verified with the "iw list" command that it has AP mode for acting as a access point.

    When starting the hostapd daemon, I get the following error:

    # sudo hostapd -d /etc/hostapd/hostapd.conf
    Configuration file: /etc/hostapd/hostapd.conf
    nl80211: Register Action command failed: ret=-19 (No such device)
    nl80211: Register Action match - hexdump(len=1): 06
    nl80211: Failed to register Action frame processing - ignore for now
    nl80211: Add own interface ifindex 0
    Could not read interface wlan0  flags: No such device
    nl80211 driver initialization failed.
    ELOOP: remaining socket: sock=4 eloop_data=0x8a5b900 user_data=0x8a5bea0 handler=0x807c5e0
    ELOOP: remaining socket: sock=6 eloop_data=0x8a5dd30 user_data=(nil) handler=0x8086770
    

    What can be wrong with this set-up?

  • Roalt
    Roalt over 10 years
    Thanks for your suggestion. The device drivers work and the device is enabled, because I can connect with it to an other access point. I also disabled the networkmanager to see if that was in conflict with hostapd, but that did not work. The device is made available as wlan0 as shown by 'iw list' or ifconfig.
  • Roalt
    Roalt over 10 years
    I was indeed related to the device not being recognized, see my accepted answer below. But in other cases your line of trouble shooting may help as well.
  • mx7
    mx7 over 10 years
    @Roalt glad that you have accepted your issue.
  • Praveen
    Praveen over 7 years
    This freaking nuance kept me awake all night. Thanks for the tip.