Fix WEP Authentication: when an algorithm fail, retries with another one

Change-Id: I13ce9c0a5140234c47b61feebc656d85c40c5046