Fixing an issue in automaticall detecting wireless interfaces