You have some log options you can set in hostapd.conf to read what hostapd think of what it's doing. It can help to find the cause of the slow download speed.
When I have set the channel number the first time, I had a look at the other Access Points in my network neighborhood. No one was using the channel 2. So I decide to use it to not interfere with other AP. I just come to check and I am the only one who use channel 2 unless an hiden network is using it too. So, are you alone to use channel 9? If not, try a channel number not in use.
In my Access Point tower (HP Compaq 6000 Pro MT PC ), I have disable all sorts of power saving, in the ath9k module, in the PCIe bus and I run the processor at the performance governor. For tests at least, I think it is a good idea.
Your problem can be the rtl8821ae module and/or the wireless card itself. More than one rtl modules are not working too good. You can try to set some parameters for the rtl8821ae module. A mini-pcie is not an ideal device to serve as an Access Point. It must be in a laptop. Have you check it's capabilities with the command iw list? I suppose it support AP mode.
It's not impossible that the problem have it's source on the client side !
My Access Point wireless card is a Qualcomm Atheros AR9227 Wireless Network Adapter that I use in a PCIe extension slot. I am happy with it after a couple of years now. I always get my wire Internet maximum speed on all the machines of my private wireless lan.