All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH] mwl8k: Marvell TOPDOG wireless driver
Date: Fri, 13 Mar 2009 10:22:49 +0100	[thread overview]
Message-ID: <1236936169.25931.63.camel@johannes.local> (raw)
In-Reply-To: <20090310091333.GG4738@xi.wantstofly.org> (sfid-20090310_101347_405119_5EF3E76C)

[-- Attachment #1: Type: text/plain, Size: 1805 bytes --]

On Tue, 2009-03-10 at 10:13 +0100, Lennert Buytenhek wrote:

> +		/*
> +		 * Check for pending join operation. save a copy of
> +		 * the beacon and schedule a tasklet to send finalize
> +		 * join command to the firmware.
> +		 */
> +		if (mwl8k_capture_bssid(priv, wh))
> +			mwl8k_save_beacon(priv, skb);

This raises an interesting problem I'm debugging in iwlwifi right now --
when you suspend/resume mac80211 assumes, currently, that all it has to
do is completely reconfigure the hardware (cf. net/mac80211/pm.c,
__ieee80211_resume()), it is currently missing this piece of code
though:

        list_for_each_entry(sdata, &local->interfaces, list) {
                if (!netif_running(sdata->dev))
                        continue;
                if (sdata->vif.type == NL80211_IFTYPE_MONITOR)
                        continue;
                ieee80211_if_config(sdata, ~0);
                ieee80211_bss_info_change_notify(sdata, ~0);
        }

(Think about it for a second before I explain)




This means that after resume, the finalize join command will not be run,
although mac80211 assumes that it is connected to the AP, and the
firmware was reset completely.

We may be disconnected if we sleep for too long, but that is acceptable,
as soon as we send something the AP will then throw us out and we go
through the association procedure again. We may want to add some code to
detect that (maybe just send a nullfunc "going to sleep" before suspend,
and "awake now" after resume?) but it should work anyway.

I don't have a good solution right now. We could always go through the
assoc process again, but that seems wasteful. Or we could just have
mac80211 hand down the beacon/probe response data in the assoc setting
(bss config)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      parent reply	other threads:[~2009-03-13  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10  9:13 [PATCH] mwl8k: Marvell TOPDOG wireless driver Lennert Buytenhek
2009-03-12 13:07 ` Johannes Berg
2009-03-12 21:26   ` Johannes Berg
2009-03-13  9:22 ` Johannes Berg [this message]

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=1236936169.25931.63.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=buytenh@wantstofly.org \
    --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 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.