Disconnect/reconnect to wifi with same SSID
Checking the Tasker manual for the &quot;WiFi Net&quot; action shows:

WiFi Net
Change the wifi network connection status.
Reassociate: reconnect even if already connected.

(emphasis mine)
That should be exactly what you're looking for – playing with Tasker anyway :)