The TL-WN823N dongle is not quite new. It seems to be available since 2012. The first problem is that there are several chips inside. At least two versions for this one.
In my case, this is with the rtl8192cu chip already discussed longtime ago.
There may be also troubles with the driver with booth good, bad (and ugly?) drivers. See this page. As lsmod provides 8192cu 667764 0, the good driver is already in OSMC.