Linux wireless drivers development
 help / color / mirror / Atom feed
From: "mohamed salim abbas" <mabbaswireless@gmail.com>
To: "Johannes Berg" <johannes@sipsolutions.net>
Cc: "Reinette Chatre" <reinette.chatre@intel.com>,
	linville@tuxdriver.com, linux-wireless@vger.kernel.org,
	ipw3945-devel@lists.sourceforge.net,
	"Mohamed Abbas" <mabbas@linux.intel.com>
Subject: Re: [PATCH] mac80211: notify mac from low level driver (iwlwifi)
Date: Fri, 4 Apr 2008 16:55:17 -0700	[thread overview]
Message-ID: <b3153e950804041655q6a0c97fay3be5073f02ee9904@mail.gmail.com> (raw)
In-Reply-To: <1207352845.6675.5.camel@johannes.berg>

On 4/4/08, Johannes Berg <johannes@sipsolutions.net> wrote:
>
> > for iwl the driver on suspend behave like the device is going down, on
> > resume the driver reload the firmware and start fresh. the driver does
> > save some data to restore on resume.
>
> Right, I think most drivers/hw behave that way.
>
> > I guess we can enhance on this to handle more scenario, but atleast
> > this is good enough for iwl driver.
>
> What happens, for example, when you enable hardware crypto and set a WEP
> key? With b43, after suspend/resume, mac80211 and the driver think the
> key is set in hardware, but it was obviously cleared. It would of course
> be possible to handle that in the driver, but I'd prefer it to be done
> in mac80211 because then the driver doesn't need all the extra code.
>
> johannes
>
>
That exactly what I think should happen and that why iwl need to
notify the mac80211 to re-associate again, we can have the driver do
that but it is cleaner and ii is more safe to have mac80211 to drive
thing than have the driver try extra hard to restore to pre-suspend. I
never involved in the security part of the driver so I need to look it
up.

  reply	other threads:[~2008-04-04 23:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03 23:08 [PATCH] mac80211: notify upper layers after lower Reinette Chatre
2008-04-03 23:08 ` [PATCH] mac80211: notify mac from low level driver (iwlwifi) Reinette Chatre
2008-04-04 14:46   ` Johannes Berg
2008-04-04 21:35     ` mohamed salim abbas
2008-04-04 21:39       ` Johannes Berg
2008-04-04 23:34         ` mohamed salim abbas
2008-04-04 23:47           ` Johannes Berg
2008-04-04 23:55             ` mohamed salim abbas [this message]
2008-04-04 14:44 ` [PATCH] mac80211: notify upper layers after lower Johannes Berg

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=b3153e950804041655q6a0c97fay3be5073f02ee9904@mail.gmail.com \
    --to=mabbaswireless@gmail.com \
    --cc=ipw3945-devel@lists.sourceforge.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mabbas@linux.intel.com \
    --cc=reinette.chatre@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