What I want is in the image below.

I connect to the router over WLAN. Both LAN ports should have different IP ranges but both need to be accessible from the laptop which is connected to the WLAN.