I cant find the TP-Link TL-WN823N on this list of working devices, there is a TP-Link TL-WN822N but that is a different device.
The default version of Hostapd doesn't support many realtek chipsets/drivers, but there is a modified version which might solve your problem. You find instructions to use the modified version here [forum.piratebox.cc]
The default version of Hostapd doesn't support many realtek chipsets/drivers, but there is a modified version which might solve your problem. You find instructions to use the modified version here [forum.piratebox.cc]