Re: r8712u cannot set essid

From: Larry Finger
Date: Tue Apr 26 2011 - 11:32:30 EST


On 04/25/2011 10:26 PM, Jeff Chua wrote:
On Tue, Apr 26, 2011 at 8:48 AM, Larry Finger<Larry.Finger@xxxxxxxxxxxx> wrote:
On 04/25/2011 07:21 PM, Jeff Chua wrote:
A little bit of good news is that I got adhoc to work 2 out of 100
tries (with wpa_supplicant on another sreen, and the above iwconfig
command). So, it's working "partially". Once it has an SSID, I could
change it and it'll still work.

Please try the attached patch.

Tried, but didn't make any difference.

Now I can make adhoc work 100% if I first put the device in wpa2
infrastructure and associates it with an AP. Then kill the
wpa_supplicant process, and start a new wpa_supplicant with adhoc
config.

If I just start with the wpa_supplicant adhoc config, it'll never set the ssid.

So, something is not right in the r8712u module or may be the firmware?

I must have something wrong in my setup, thus my testing did not work. There is another place in the code where the setting of parameters requires the interface to be connected. Please try the attached patch.

Larry Index: linux-2.6/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
===================================================================
--- linux-2.6.orig/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ linux-2.6/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -990,8 +990,6 @@ static int r8711_wx_set_wap(struct net_d
struct wlan_network *pnetwork = NULL;
enum NDIS_802_11_AUTHENTICATION_MODE authmode;

- if (padapter->bup == false)
- return -1;
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY) == true)
return -1;
if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true)
@@ -1182,8 +1180,6 @@ static int r8711_wx_set_essid(struct net
struct list_head *phead;
u32 len;

- if (padapter->bup == false)
- return -1;
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY))
return -1;
if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING))