Set your wireless router to 2.4GHz band, 20MHz channel width, and use only channels 1, 6 or 11, not Auto. You must do all three for the Z5 connection to be stable. That solved the issue for me. The WiFi driver is broken on the Z5 and has been since Marshmallow. Works great with above settings. Completely drops the connection otherwise.
... View more