Starting as a service fails:
~ $ sudo service hostapd start
[FAIL] Starting advanced IEEE 802.11 management: hostapd failed!
Starting manually works (and I'm able to connect to the wi-fi)
~ $ sudo hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x175c638
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 00:13:xx:xx:xx and ssid 'BLAH'
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, BLAH,15
rtl871x_set_acl
+rtl871x_get_sta_wpaie, bc:d1:d3:xx:xx:xx is sta's address
wlan0: STA bc:d1:d3:xx:xx:xx IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
+rtl871x_send_eapol
rtl871x_set_key_ops
wlan0: AP-STA-CONNECTED bc:d1:d3:xx:xx:xx
wlan0: STA bc:d1:d3:xx:xx:xx RADIUS: starting accounting session 53E207-00000000
wlan0: STA bc:d1:d3:xx:xx:xx WPA: pairwise key handshake completed (RSN)
^Crtl871x_set_key_ops
+rtl871x_sta_remove_ops, bc:d1:d3:xx:xx:xx is sta address removed
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
ELOOP: remaining socket: sock=6 eloop_data=0x175c6a8 user_data=(nil) handler=0x2a000