
On 13/03/2013, at 11:15, Toby Corkindale <toby.corkindale@strategicdata.com.au> wrote:
I spent ages last night getting wireless working on an embedded ARM device. The problem is that the first time wpa_supplicant runs, it can't see any SSIDs, and doesn't get anywhere. The second time it runs, it's all fine.
My eventual solution was to create a script that runs wpa_supplicant, waits five seconds, kills it, then runs it again. So, so dirty.
I'm guessing there's something specific the wifi adapter needs initialised before it will work
Could you try sending the scan command to the supplicant before trying to associate? I don't have the commands in front of me but the wpa_supplicant cli tool has lots of hints and various things to control the card