If Wireless On/Off is not working in sleep mode, please adapt this setting.

Select [Setting] -> [Battery]

Select [vertical 3 dots] of Top-Right.

Select [Battery optimization]

Select [All apps].

Scroll Up and select [Wireless On/Off].

Select [Don't optimize] and [DONE].