I have some news about the issue, unfortunately I do not consider it is 100% solved.
I reproduced the issue on proven hardware (namely Murata SN8000x EVK). I wrote a custom application largely inspired from NoOS_Canned_send example.
The initialization is the same trivial sequence:
And is works !!
But when I insert a scan before join (very useful to find spots), joining only works on OPEN AP. Try to join a WPA/WPA2 protected AP fails because of WLC_SET_WSEC_PMK ioctl that never answer.
Is there some cleaning stuff to perform after scanning and before joining ?
Thx for helping me.