Keep Wifi on while sleeping/screen off

by DescendingLostStar

Hello, i own a generic Android TV, its branded CVE TV/MSTAR/Wisdom Share, it runs Android 9
I wonder if it's possible to make it keep Wifi active while it's "turned off" (it never is actually turned off, it just sleeps/locks itself) I can confirm that Android keeps running everything while it's asleep, it just completely disables the wifi interface. I have root on the TV so i can tell that the Wifi driver gets unloaded while the TV is asleep. Also in the settings app there's a Wake-on-WLAN toggle but when i toggle it on it immediately toggles itself off.
I tried looking around there doesn't seem to be a Wifi sleep policy setting like there is on mobile
If anyone knows how to prevent the Wifi from disconnecting during sleep it wil be much appreciated

Babalugat