cant connect to wifi via networksetup command. error -3912

I want to be able to connect to wifi via terminal and i tried the networksetup command:

networksetup -setairportnetwork en0 < myWifi> < myPass>

After about 5 seconds i get this:

Failed to join network < myWifi> Error: -3912  The operation couldn’t be completed. > (com.apple.wifi.apple80211API.error error -3912.)

I can t find any info source related to error -3912 so i welcome any solution or suggestion.

Error -3912 is defined in <CoreWLAN/CoreWLANTypes.h> as kCWChallengeFailureErr.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can you please provide a fix for this error?

I’m not sure what you mean by this:

  • If you believe that this is a bug in the OS, you should file a bug report about it and the macOS engineering team will investigate.

  • If you’re looking for assistance getting around this issue, you’ll need to discuss that with Apple Support. My organisation, Developer Technical Supports, helps developers with code-level questions, and thus does not support Wi-Fi configuration at this level.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

cant connect to wifi via networksetup command. error -3912
 
 
Q