Re: r8712u cannot set essid

From: Larry Finger
Date: Mon Apr 25 2011 - 20:48:15 EST


On 04/25/2011 07:21 PM, Jeff Chua wrote:
On Tue, Apr 26, 2011 at 3:18 AM, Larry Finger<Larry.Finger@xxxxxxxxxxxx> wrote:
Please send me the commands that you want to use, and I'll try to get r8712u
to support them.

Larry,

All I want is for my iPhone to connect to me notebook, and I use this
command ...

# iwconfig wlan0 mode ad-hoc essid "123"

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.

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)