Update:
I checked the wireless signal and the strength was OK, even when I could not get any data over the WiFi. So this basically means the router was just not accepting WiFi data, even though its signal was strong.
I eliminated the cable between the unmanaged and the managed switch and...