#1025160 hostapd.conf missing from source package

Package:
hostapd
Source:
wpa
Description:
access point and authentication server for Wi-Fi and Ethernet
Submitter:
Date:
2022-11-30 14:09:10 UTC
Severity:
important
Tags:
#1025160#5
Date:
2022-11-30 13:57:58 UTC
From:
To:
Hi Maintainers,

I installed hostapd to run a wireless access point. The hostapd.conf is missing from the package and not created during install:

sudo apt install hostapd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  hostapd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/861 kB of archives.
After this operation, 2349 kB of additional disk space will be used.
Selecting previously unselected package hostapd.
(Reading database ... 219274 files and directories currently installed.)
Preparing to unpack .../hostapd_2%3a2.10-9+b2_amd64.deb ...
Unpacking hostapd (2:2.10-9+b2) ...
Setting up hostapd (2:2.10-9+b2) ...
hostapd config /etc/hostapd/hostapd.conf not found, not starting hostapd..
Processing triggers for man-db (2.11.1-1) ...

apt-file list hostapd | grep conf
hostapd: /usr/share/doc/hostapd/examples/hostapd.conf

This subsequently leads to hostapd not starting because of the missing .conf file.
Copying the example conf into /etc/hostapd allows starting the service. Yet it fails:
sudo rc-service hostapd start
Starting advanced IEEE 802.11 management: hostapd failed!

Doing a manual start yields some more debug info:
/usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
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

This is where my knowledge ends. I'd be happy if someone could point me to what I'm missing. Please include the hostapd.conf file in the package (maybe with a postint file?).

Cheers

werdahias

#1025160#10
Date:
2022-11-30 14:07:24 UTC
From:
To:
Hi,

It’s not possible to ship a "one size fits all" config.