AppleBCMWLAN: Warning: Auth / Assoc succeeded (0) but SET_SSID failed (16)!

Hi,


I´ve got the following scenario:


- I´m supplying the correct credentials to `NEHotspotConfigurationManager` (via `apply(configuration:, completionHandler:)`)

- In the Console of the iOS device, I can see the error "AppleBCMWLAN: Warning: Auth / Assoc succeeded (0) but SET_SSID failed (16)!"

- The alert informing the user about the failure shows up

- The completionHandler (from apply(configuration:...)) gets called with a nil Error object


I´m also polling the current SSID via CNCopyCurrentNetworkInfo twice a second, and I can see that it shows the correct, new SSID a few times before the above error appears.


What could be possible reasons for that? Why is the completionHandler not telling the truth?

My guess is that the device at the other end has not fully fired up the Wi-Fi yet (it is a photo camera), could this be true?


Cheers,

Marc

Replies

The fact that the completion handler indicates no error is a known gotcha with the

NEHotspotConfigurationManager
API. For more background on this, see this post.

As to why joining the network is failing, that’s can be tricky to work out. Can you join that network via Settings?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"