virnetdev: fix moving of 802.11 phys
virnetdev: fix moving of 802.11 phys

There was a couple of problems with the style fixes applied to the original
patch:

1.) virFileReadAllQuiet comparison was incorrectly parenthesized when moved
into a condition, causing the len to be set to the result of comparison. This,
together with the removed underflow check would underflow the phy buffer.

2.) The logic was broken. Failure to call "ip" would abort the function, thus
the "iw" branch would never be reached.

This aims to fix the issues and work around possible style complains :)

Signed-off-by: Lubomir Rintel <c9b9bbc6e9b0bc7e9cec5af1551c7b98adb9530c@v3.sk>

eskultety/libvirt,taget/libvirt,agx/libvirt,VenkatDatta/libvirt,taget/libvirt,taget/libvirt,andreabolognani/libvirt,crobinso/libvirt,agx/libvirt,agx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,eskultety/libvirt,nertpinx/libvirt,crobinso/libvirt,nertpinx/libvirt,taget/libvirt,andreabolognani/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,datto/libvirt,fabianfreyer/libvirt,libvirt/libvirt,nertpinx/libvirt,rlaager/libvirt,andreabolognani/libvirt,agx/libvirt,datto/libvirt,VenkatDatta/libvirt,libvirt/libvirt,jardasgit/libvirt,eskultety/libvirt,jardasgit/libvirt,andreabolognani/libvirt,datto/libvirt,zippy2/libvirt,eskultety/libvirt,rlaager/libvirt,datto/libvirt,libvirt/libvirt,eskultety/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,rlaager/libvirt,olafhering/libvirt,crobinso/libvirt,olafhering/libvirt,jfehlig/libvirt,zippy2/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,taget/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,nertpinx/libvirt,rlaager/libvirt,olafhering/libvirt,agx/libvirt,zippy2/libvirt,rlaager/libvirt,jardasgit/libvirt,nertpinx/libvirt,jfehlig/libvirt,jardasgit/libvirt,zippy2/libvirt,datto/libvirt