Re: r8712u cannot set essid
From: Jeff Chua
Date: Wed Apr 27 2011 - 11:45:58 EST
On Wed, Apr 27, 2011 at 4:12 AM, Larry Finger <Larry.Finger@xxxxxxxxxxxx> wrote:
>> On Wed, Apr 27, 2011 at 12:24 AM, Jeff Chua<jeff.chua.linux@xxxxxxxxx>
>> wrote:
>>>
>>> I hacked it a bit more, and now, it's all working. I'll send you the
>>> patch shortly. Adhoc mode works now, and I've confirmed that my iPhone
>>> can connect to it, get an IP and surf the net! The device is so tiny
>>> and was contemplating on trying another brand.
>>
>> Larry,
>>
>> Here's the patch for adhoc mode. This should work. Just remember to
>> set wpa_supplicant's ap_scan to either 1 or 2 (faster association). 0
>> does not seem to work.
>
> Thanks. Is this in addition to my previous patch, or is this one enough by
> itself?
I just re-verify it, applying your patch alone does not solve the problem.
The issue is with adhoc mode and when it first starts, there is
no SSID to associate with if the SSID is an unique one. The patch
basically bypass the "sitesurvey" as it could never find another site
with the wanted SSID, so that's why adhoc didn't work before. It
worked if the module has some associations before starting adhoc mode
because now it won't do another sitesurvey. ... this is how I
interpreted the logic. I've been testing it for the past few hours and
wpa2, adhoc all works well with the r7812u driver now.
Thanks for your help. Will you send this to patch to Linus?
Jeff
Attachment:
patch-adhoc
Description: Binary data