Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Tomas Winkler" <tomasw@gmail.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: "John Linville" <linville@tuxdriver.com>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] iwlwifi: remove implicit direct scan
Date: Tue, 28 Oct 2008 23:54:32 +0200	[thread overview]
Message-ID: <1ba2fa240810281454v434182f0t5f42ee6cef6c408d@mail.gmail.com> (raw)
In-Reply-To: <1ba2fa240810281353u4b038cf2gb46cb830b278a278@mail.gmail.com>

On Tue, Oct 28, 2008 at 10:53 PM, Tomas Winkler <tomasw@gmail.com> wrote:
> On Tue, Oct 28, 2008 at 7:21 PM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
>> When an undirected scan is requested and iwlwifi is not associated but
>> the user has set an SSID (and maybe was associated with that network at
>> some point) then iwlwifi will assume the user wanted to scan for this
>> SSID which seems wrong. Remove this code.
>>
>> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
>> ---
>> Am I missing something? This seems very strange! What specifies that
>> when an SSID is set on an interface the user wants to scan for that one?
>> The interface might just have been associated previously to that SSID,
>> now disassociated and network manager is asking for a scan to get
>> information about networks to let the user select a new one.
>
> NACK, this is a heuristic that helps connection to configured SSID. It
> doesn't mean that other ssid won't be scanned.
> This code might be revised again when multiple SSID scan will be implemented
> Tomas
>
Okay I've only now have  seen the real reason for this. The SSID
removal from the driver API. It's much better argument for removing
this code anyway have to think how this will be substituted.
Thanks
Tomas

>
>>  drivers/net/wireless/iwlwifi/iwl-scan.c     |    7 -------
>>  drivers/net/wireless/iwlwifi/iwl3945-base.c |    8 --------
>>  2 files changed, 15 deletions(-)
>>
>> --- everything.orig/drivers/net/wireless/iwlwifi/iwl-scan.c     2008-10-28 18:12:02.000000000 +0100
>> +++ everything/drivers/net/wireless/iwlwifi/iwl-scan.c  2008-10-28 18:12:06.000000000 +0100
>> @@ -743,13 +743,6 @@ static void iwl_bg_request_scan(struct w
>>                memcpy(scan->direct_scan[0].ssid,
>>                       priv->direct_ssid, priv->direct_ssid_len);
>>                n_probes++;
>> -       } else if (!iwl_is_associated(priv) && priv->essid_len) {
>> -               IWL_DEBUG_SCAN("Start direct scan for '%s' (not associated)\n",
>> -                               print_ssid(ssid, priv->essid, priv->essid_len));
>> -               scan->direct_scan[0].id = WLAN_EID_SSID;
>> -               scan->direct_scan[0].len = priv->essid_len;
>> -               memcpy(scan->direct_scan[0].ssid, priv->essid, priv->essid_len);
>> -               n_probes++;
>>        } else {
>>                IWL_DEBUG_SCAN("Start indirect scan.\n");
>>        }
>> --- everything.orig/drivers/net/wireless/iwlwifi/iwl3945-base.c 2008-10-28 18:12:20.000000000 +0100
>> +++ everything/drivers/net/wireless/iwlwifi/iwl3945-base.c      2008-10-28 18:12:27.000000000 +0100
>> @@ -6158,14 +6158,6 @@ static void iwl3945_bg_request_scan(stru
>>                memcpy(scan->direct_scan[0].ssid,
>>                       priv->direct_ssid, priv->direct_ssid_len);
>>                n_probes++;
>> -       } else if (!iwl3945_is_associated(priv) && priv->essid_len) {
>> -               IWL_DEBUG_SCAN
>> -                 ("Kicking off one direct scan for '%s' when not associated\n",
>> -                  print_ssid(ssid, priv->essid, priv->essid_len));
>> -               scan->direct_scan[0].id = WLAN_EID_SSID;
>> -               scan->direct_scan[0].len = priv->essid_len;
>> -               memcpy(scan->direct_scan[0].ssid, priv->essid, priv->essid_len);
>> -               n_probes++;
>>        } else
>>                IWL_DEBUG_SCAN("Kicking off one indirect scan.\n");
>>
>>
>>
>>
>

  reply	other threads:[~2008-10-28 21:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28 17:21 [PATCH] iwlwifi: remove implicit direct scan Johannes Berg
2008-10-28 20:53 ` Tomas Winkler
2008-10-28 21:54   ` Tomas Winkler [this message]
2008-10-28 22:59     ` Johannes Berg
2008-10-28 23:48       ` Tomas Winkler

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=1ba2fa240810281454v434182f0t5f42ee6cef6c408d@mail.gmail.com \
    --to=tomasw@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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