I have a linux firewall/router that has a wireless adapter in it, and I wanted to use it for an AP too. The way I did this allowed me to use it as an AP and a client, which may not be the preference for everyone, but I like to know all the options.
Here is my list/placement of files:
First we need to define the virtual devices
now lets turn them on
and I need to connect the ethernet to the bridge
then I needed to add a subwireless interface for hostapd to use