From: Larry Finger <Larry.Finger@lwfinger.net>
To: ali@internetdog.org
Cc: linux-wireless@vger.kernel.org
Subject: Re: r8712u driver for the rtl8192su chip.
Date: Sat, 02 Jul 2011 20:24:01 -0500 [thread overview]
Message-ID: <4E0FC4B1.7080909@lwfinger.net> (raw)
In-Reply-To: <20110703010605.GA3736@internetdog.org>
On 07/02/2011 08:06 PM, Ali Bahar wrote:
> Hi Larry,
>
> On Sat, Jul 02, 2011 at 12:09:08PM -0500, Larry Finger wrote:
>> On 06/27/2011 02:23 AM, Ali Bahar wrote:
>
>>> The cause is that the driver's handler for the Set expects that the
>>> interface is Up. In my case, it was not, and so it returns a -1. This
>>> pops back up the call-chain until it gets misinterpreted as an EPERM.
>
>> The attached patch has been floating around for a while. Does it help?
>
> Of course, it will, but the general problem with the -1 return-values
> (and any other Up assumptions) will remain.
>
> As I'd indicated earlier, I have no interest in, or use for, this
> device. I dug into it because there seemed to be a need within this
> ML (and I was already looking for an 802.11 project anyway.)
>
> If that is the case, I can implement the changes, merge recent Realtek
> changes, and determine how much nl80211 interface is needed.
> On the other hand, if changes are on-hold, then I'll focus elsewhere.
>
> regards,
> ali
>
>
>> 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))
If you want to work on it, I will review and test the patches. It will be a long
time until I get to it.
Larry
next prev parent reply other threads:[~2011-07-03 1:24 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 14:47 [PATCH 00/12] rtlwifi: rtl8192se: Merge new driver Larry Finger
2011-05-03 15:01 ` Borislav Petkov
2011-05-03 20:03 ` Larry Finger
2011-05-04 17:01 ` Borislav Petkov
2011-05-04 17:20 ` Larry Finger
2011-05-04 18:06 ` Borislav Petkov
2011-05-04 19:15 ` Larry Finger
2011-05-03 15:59 ` Walter Goldens
2011-05-03 16:45 ` Larry Finger
2011-05-03 20:19 ` Gábor Stefanik
2011-05-03 20:33 ` Larry Finger
2011-05-03 20:38 ` Gábor Stefanik
2011-05-03 20:56 ` Larry Finger
2011-05-03 21:09 ` Gábor Stefanik
2011-05-03 21:35 ` Larry Finger
2011-06-21 12:49 ` r8712u driver for the rtl8192su chip Ali Bahar
2011-06-21 22:08 ` Larry Finger
2011-06-22 1:00 ` Ali Bahar
2011-06-22 2:03 ` Julian Calaby
2011-06-22 2:12 ` Gábor Stefanik
2011-06-22 2:46 ` Ali Bahar
2011-06-22 2:39 ` Ali Bahar
2011-06-22 2:34 ` Larry Finger
2011-06-22 2:56 ` Ali Bahar
2011-06-22 3:09 ` Larry Finger
2011-06-22 3:17 ` Ali Bahar
2011-06-27 7:23 ` Ali Bahar
2011-07-02 17:09 ` Larry Finger
2011-07-03 1:06 ` Ali Bahar
2011-07-03 1:24 ` Larry Finger [this message]
2011-07-03 1:47 ` Ali Bahar
2011-07-15 17:11 ` [PATCH 0/2] staging: r8712u: Most return-values changed from -1 to Ali Bahar
2011-07-15 17:11 ` [PATCH 1/2] staging: r8712u: Most return-values changed from -1 to proper errno macros Ali Bahar
2011-07-15 21:00 ` Larry Finger
2011-07-16 3:21 ` Ali Bahar
2011-07-16 9:23 ` Kalle Valo
2011-07-16 10:50 ` Ali Bahar
2011-07-16 11:44 ` Kalle Valo
2011-07-16 11:55 ` Ali Bahar
2011-07-15 17:11 ` [PATCH 2/2] staging: r8712u: checkpatch errors: trailing whitespace on 2 lines Ali Bahar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E0FC4B1.7080909@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=ali@internetdog.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.