title: How to check for correct SSID password on linux
body: <p>I am writing a web interface for a hardware device and am currently doing the network configuration wizard.  I want to have the user choose the SSID and if it is secured, then enter a password.  I want to check then and there that the password is correct without going any further in the wizard.</p>
  
  <p>Is there any easier way to do this than throwing the details at <code>wpa_supplicant</code> and parsing log output?</p>