How to configure AP and STA WLAN interfaces running simultaneously?

Hi,

I have a WLAN network module that should support multiple virtual network interfaces running simultaneously.

iw list shows the following combinations:

valid interface combinations:
                 * #{ managed } <= 2, #{ AP, mesh point, P2P-client, P2P-GO } <= 2, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
                 * #{ managed } <= 2, #{ P2P-client } <= 2, #{ AP, mesh point, P2P-GO } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 2
                 * #{ managed } <= 1, #{ IBSS } <= 1,
                   total <= 2, #channels <= 1

How do I configure virtual WLAN sub-interfaces, one in AP mode and one in STA mode? The interface list shows only wlan0.

Thanks.

can you execute sudo iw list and you see any device here?