From: clemens fischer <ino-news@spotteswoode.dnsalias.org>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
jeff.chua.linux@gmail.com, wlanfae@realtek.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: r8712u: Fix driver to support ad-hoc mode
Date: Thu, 28 Apr 2011 17:08:20 +0200 [thread overview]
Message-ID: <20110428150819.GA3713@spotteswoode.de.eu.org> (raw)
In-Reply-To: <4db8436a.NDzkd3ql2wJdwy2L%Larry.Finger@lwfinger.net>
> Larry Finger:
> From: Jeff Chua <jeff.chua.linux@gmail.com>
>
> Driver r8712u is unable to handle ad-hoc mode. The issue is that when
> the driver first starts, there will not be an SSID for association.
> The fix is to always call the "select and join from scan" routine when
> in ad-hoc mode.
>
> Note: Ad-hoc mode worked intermittently before. If the driver had
> previously been associated, then things were OK.
>
> Signed-off-by: Jeff Chua <jeff.chua.linux@gmail.com>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
> Cc: Stable <stable@kernel.org>
> ---
>
> Index: linux-2.6/drivers/staging/rtl8712/rtl871x_ioctl_set.c
> ===================================================================
> --- linux-2.6.orig/drivers/staging/rtl8712/rtl871x_ioctl_set.c
> +++ linux-2.6/drivers/staging/rtl8712/rtl871x_ioctl_set.c
> @@ -68,7 +68,10 @@ static u8 do_join(struct _adapter *padap
> pmlmepriv->fw_state |= _FW_UNDER_LINKING;
> pmlmepriv->pscanned = plist;
> pmlmepriv->to_join = true;
> - if (_queue_empty(queue) == true) {
> +
> + /* adhoc mode will start with an empty queue, but skip checking */
> + if (!check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) &&
> + _queue_empty(queue)) {
> if (pmlmepriv->fw_state & _FW_UNDER_LINKING)
> pmlmepriv->fw_state ^= _FW_UNDER_LINKING;
> /* when set_ssid/set_bssid for do_join(), but scanning queue
Thanks for CC'ing me.
This patch doesn't solve my problem[1], unfortunately. I am using
iwconfig(8) to setup things, and it is still impossible to set the ESSID
and the power saving mode. In my case it was even possible to get into
Ad-hoc mode without the patch and without ever beeing associated.
[1] https://bugzilla.kernel.org/show_bug.cgi?id=33352
regards, clemens fischer
next prev parent reply other threads:[~2011-04-28 15:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-27 16:25 Larry Finger
2011-04-28 15:08 ` clemens fischer [this message]
2011-04-28 15:31 ` Larry Finger
2011-04-28 18:05 ` Jeff Chua
2011-04-28 20:15 ` clemens fischer
2011-04-29 0:36 ` Jeff Chua
2011-04-29 21:15 ` clemens fischer
2011-04-29 21:52 ` Jeff Chua
2011-04-29 22:25 ` clemens fischer
2011-04-29 22:36 ` Jeff Chua
2011-04-30 1:41 ` clemens fischer
2011-04-30 12:21 ` clemens fischer
2011-04-30 23:08 ` Jeff Chua
2011-05-01 16:40 ` clemens fischer
2011-05-01 17:21 ` Jeff Chua
2011-05-01 19:55 ` clemens fischer
2011-05-02 5:08 ` Jeff Chua
2011-04-28 20:54 ` clemens fischer
2011-04-30 0:36 ` clemens fischer
2011-04-30 5:04 ` Larry Finger
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=20110428150819.GA3713@spotteswoode.de.eu.org \
--to=ino-news@spotteswoode.dnsalias.org \
--cc=Larry.Finger@lwfinger.net \
--cc=gregkh@suse.de \
--cc=jeff.chua.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wlanfae@realtek.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®