fix for guessing the interface

this commit should fix the function that tries to auto guess the wireless
interface. If this passes it will run faster, and is a cleaner read.