public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Williams <dcbw@redhat.com>
To: Venkat Ch <venkatch@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Scan in compat-wireless
Date: Wed, 25 Mar 2009 11:34:53 -0400	[thread overview]
Message-ID: <1237995293.18896.12.camel@localhost.localdomain> (raw)
In-Reply-To: <c1e027750903250043n1e6bfffdnd6a6a3889a1f68d6@mail.gmail.com>

On Wed, 2009-03-25 at 13:13 +0530, Venkat Ch wrote:
> Hi All,
> 
>  Last week I have downloaded compat-wireless driver. I have installed
> the same into my laptop which has AR242x based WiFi card. Though the
> drivers are loaded correctly, the STA (my laptop) did not associate
> with the nearby AP. This used to happen well with madwifi driver.
> 
> With my past experience with the details of madwifi driver, I have
> browsed through the code base of compat-wireless driver. I observed
> that with madwifi driver when the device is made up, the scan process
> is kicked off. Where as the same is not happening in compat-wireless.
> Does not the scan process need to be kicked off at the end of
> ieee80211_open (net/mac80211/iface.c)?

A scan gets kicked off when you set either SSID or BSSID using iw or
iwconfig, so that the card has some idea of what you'd like to associate
with.  Kind of pointless to scan on dev open when the card doesn't have
any idea of what you want to associate to.  Might as well defer that
until you _have_ told the card what to do.

> Also for ath5k driver, both the hw_scan and sw_scan_start are not
> defined. These two functions are used in ieee80211_start_scan to start
> the scan process (net/mac80211/scan.c). I observed that the scan
> process is not started because the above two functions are not
> defined.

I believe only Intel Wifi Link cards implement hardware scanning.  The
rest of the cards use the mac80211 software scan functionality, which
works just fine.

Dan



  reply	other threads:[~2009-03-25 15:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c1e027750903250041qfb28bb5g69bc219da57736c0@mail.gmail.com>
2009-03-25  7:43 ` Scan in compat-wireless Venkat Ch
2009-03-25 15:34   ` Dan Williams [this message]
2009-03-26 18:21     ` Venkat Ch
2009-03-26 20:09       ` Dan Williams
2009-03-26 20:14         ` Johannes Berg
2009-03-25  7:44 ` Venkat Ch

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=1237995293.18896.12.camel@localhost.localdomain \
    --to=dcbw@redhat.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=venkatch@gmail.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