From: Dan Williams <dcbw@redhat.com>
To: David MOUSSAUD <d.moussaud@gmail.com>
Cc: Holger Schurig <holgerschurig@gmail.com>,
linux-wireless@vger.kernel.org,
Samuel Ortiz <sameo@linux.intel.com>,
"John W. Linville" <linville@tuxdriver.com>,
Holger Schurig <holgerschurig@googlemail.com>
Subject: Re: [PATCH] libertas: cfg80211 support
Date: Wed, 24 Feb 2010 15:35:02 -0800 [thread overview]
Message-ID: <1267054502.6162.9.camel@localhost.localdomain> (raw)
In-Reply-To: <cdd918981002240005o1fa50956yfb2a692716c06a55@mail.gmail.com>
On Wed, 2010-02-24 at 09:05 +0100, David MOUSSAUD wrote:
> Hello,
>
> I'm trying to apply the first patch of this thread to have the
> cfg80211 support to my driver but I do not succeed to select the goot
> git repository or the goot release tarball (linux kernel/compat
> wireless) to start.
>
> Does someone could help me for that ?
>
> Furthermore, I have an at91sam9260 atmel evk board with a wi2wi (which
> embeded a 8686 libertas chip) sdio evk. I need to have my board
> running as an Access Point.
> Could someone tell me if, applying this patch, it will works ?
>
> For my understanding, I think it will because it is written that the
> driver with cfg80111 can now work in monitor mode, which is ok for
> hostapd to act as an AP.
This isn't going to work. The fullmac Libertas devices (8385, 8388,
8686, etc) do not have the firmware capability to operate in AP mode.
cfg80211 is simply a better configuration interface than WEXT, it does
not magically add AP mode capability.
Dan
> Thanks for your help,
>
> Best Regards,
>
> D.MOUSSAUD.
>
> On Mon, Feb 15, 2010 at 11:46 AM, Holger Schurig
> <holgerschurig@gmail.com> wrote:
> > + bss = cfg80211_get_bss(wiphy, sme->channel,
> sme->bssid,
> > + sme->ssid, sme->ssid_len,
> > + WLAN_CAPABILITY_ESS,
> WLAN_CAPABILITY_ESS);
> > +
> > + if (!bss) {
> > + if (sme->bssid || sme->ssid_len !=
> IEEE80211_MAX_SSID_LEN) {
> > + DECLARE_SSID_BUF(ssid);
> > + lbs_pr_err("associate: BSS %s not in
> scan results\n",
> > + print_ssid(ssid,
> sme->ssid, sme->ssid_len));
> > + ret = -ENOENT;
> > + }
> > +
> > + goto done;
> > + }
>
>
> I have again some time for Libertas :-)
>
> I'm still not getting this code at all, especially the code
> inside
> "if (!bss)". You set "ret = -ENOENT", but only under some
> circumstances. When they aren't met, we go to label done,
> but with "ret=0", e.g. we didn't connect, but still we won't
> return an error.
>
> Also, you print the SSID, but name it "BSS". A BSS is
> kind-of-a-mac-address. So the text in the printk should
> be "associate: no SSID %s in scan results". Or you print
> the BSS from sme->
>
> And then I don't get why there is a comparison
> sme->ssid_len != IEEE80211_MAX_SSID_LEN. print_ssid()
> handles this.
>
>
>
> Wouldn't this snipped do the work:
>
> lbs_deb_enter(LBS_DEB_CFG80211);
> bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid,
> sme->ssid, sme->ssid_len,
> WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS);
>
> if (!bss) {
>
> lbs_pr_err("no matching AP found in last scan
> \n");
> ret = -ENOENT;
> goto done;
> }
> lbs_deb_assoc("trying %pM", sme->bssid);
>
>
> --
> http://www.holgerschurig.de
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2010-02-24 23:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-02 0:09 [PATCH] libertas: cfg80211 support Samuel Ortiz
2010-02-02 20:36 ` John W. Linville
2010-02-03 9:31 ` Holger Schurig
2010-02-03 12:04 ` Samuel Ortiz
2010-02-03 15:32 ` Holger Schurig
2010-02-03 20:30 ` Dan Williams
2010-02-04 7:28 ` Holger Schurig
2010-02-04 21:49 ` Dan Williams
2010-02-04 9:52 ` Holger Schurig
2010-02-11 12:01 ` Samuel Ortiz
2010-02-11 12:24 ` Holger Schurig
2010-02-04 10:11 ` Holger Schurig
2010-02-11 12:03 ` Samuel Ortiz
2010-02-04 13:44 ` [PATCH] libertas+cfg80211: better disconnect support Holger Schurig
2010-02-15 10:46 ` [PATCH] libertas: cfg80211 support Holger Schurig
[not found] ` <cdd918981002240005o1fa50956yfb2a692716c06a55@mail.gmail.com>
2010-02-24 23:35 ` Dan Williams [this message]
2010-02-25 8:42 ` David MOUSSAUD
2010-02-25 8:48 ` Johannes Berg
2010-02-25 18:05 ` Andrey Yurovsky
2010-03-07 17:32 ` Kalle Valo
2010-03-07 17:52 ` Gábor Stefanik
2010-02-24 8:22 ` David MOUSSAUD
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=1267054502.6162.9.camel@localhost.localdomain \
--to=dcbw@redhat.com \
--cc=d.moussaud@gmail.com \
--cc=holgerschurig@gmail.com \
--cc=holgerschurig@googlemail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=sameo@linux.intel.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;
as well as URLs for NNTP newsgroup(s).