Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13719 closed enhancement (not_a_bug)

Add UCI wireless option for custom hostapd config

Reported by: Roman A. aka BasicXP <x12ozmouse@…> Owned by: developers
Priority: low Milestone: Features Paradise
Component: base system Version: Trunk
Keywords: hostapd, wpad, uci Cc:


It would be great to see an option in UCI that allows one to specify a custom hostapd configuration file for a given phy. Similar thing already exists in the "openvpn" package, where it is possible to use the native OpenVPN configuration file instead of the one automatically generated by UCI.

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by nbd

  • Resolution set to not_a_bug
  • Status changed from new to closed

I disagree. This makes the interaction with netifd, bridge handling, etc. more complicated than it needs to be. If you want to do completely custom stuff, why don't you simply bypass /etc/config/wireless and add your own init script?

comment:2 Changed 5 years ago by Roman A. aka BasicXP <x12ozmouse@…>

Any advice how to do that? I tried making a simple init script that basically kills all instances of hostapd and spawns its own. But this has problems with 5 GHz radio, it sometimes complains about channel 36 not being available.

comment:3 Changed 5 years ago by nbd

Make sure that no previous hostapd instances are started and that the config has all interfaces marked as disabled.
Use iw to create the initial wlan0/wlan1 interface and then run hostapd.

comment:4 Changed 5 years ago by Roman A. aka BasicXP <x12ozmouse@…>

Something like this?:

killall hostapd
iw phy phy0 interface add wlan0 type managed
hostapd -P /var/run/ -B /path/to/hostapd.conf

Also, is having /etc/config/wireless empty in this case equal to having all interfaces disabled?

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.