Return-path: Received: from wf-out-1314.google.com ([209.85.200.171]:34739 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751471AbYDDXzR (ORCPT ); Fri, 4 Apr 2008 19:55:17 -0400 Received: by wf-out-1314.google.com with SMTP id 28so307477wff.4 for ; Fri, 04 Apr 2008 16:55:17 -0700 (PDT) Message-ID: (sfid-20080405_005530_329557_5DECEEEB) Date: Fri, 4 Apr 2008 16:55:17 -0700 From: "mohamed salim abbas" To: "Johannes Berg" Subject: Re: [PATCH] mac80211: notify mac from low level driver (iwlwifi) Cc: "Reinette Chatre" , linville@tuxdriver.com, linux-wireless@vger.kernel.org, ipw3945-devel@lists.sourceforge.net, "Mohamed Abbas" In-Reply-To: <1207352845.6675.5.camel@johannes.berg> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <1207264130-25437-1-git-send-email-reinette.chatre@intel.com> <1207264130-25437-2-git-send-email-reinette.chatre@intel.com> <1207320389.19189.30.camel@johannes.berg> <1207345183.3625.18.camel@johannes.berg> <1207352845.6675.5.camel@johannes.berg> Sender: linux-wireless-owner@vger.kernel.org List-ID: On 4/4/08, Johannes Berg 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.