On XDA thee is a longer thread about this wifi problem on the Nexus5...maybe one of the "solutions" there could hellp you, for example: https://forum.xda-developers.com/sho...&postcount=107