Properly detect WEP and WPA1+WPA2.