Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:63490 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754878Ab1HXKMR (ORCPT ); Wed, 24 Aug 2011 06:12:17 -0400 Received: by vws1 with SMTP id 1so857165vws.19 for ; Wed, 24 Aug 2011 03:12:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E54C87A.4080407@broadcom.com> References: <4E54C87A.4080407@broadcom.com> Date: Wed, 24 Aug 2011 18:12:16 +0800 Message-ID: (sfid-20110824_121221_103982_A45B98C0) Subject: Re: force wifi radio to sleep immediately From: Hao Han To: Arend van Spriel Cc: "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: Thank you for your quick reply, Gr. AvS. According to my understanding, in power save mode (PSM), the station will go to sleep immediately (i.e. maintaining a very low power) after sending packet with pwr mgt bit in 802.11 mac header setting to 1. My question is if we can force the station to go to such a low power level by calling some function. It seems to me that it costs extra time to disable/enable the radio, right? I hope to do it very quickly. I appreicate your help! Best, Hao On Wed, Aug 24, 2011 at 5:46 PM, Arend van Spriel wrote: > On 08/24/2011 10:43 AM, Hao Han wrote: >> >> Dear All, >> >> I am currently working on a research project based on BCM4329 driver >> on Nexus One. In the project, I am trying to control wifi radio to sleep >> and wake up manually (i.e without setting PM_OFF, PM_FAST, or PM_MAX >> mode). I >> have digged into the source code for a while, but till now I have no >> idea how to do that. If possible, could anyone please tell me if there is >> any function I can call to force wifi radio to sleep or wake up >> immediately. >> >> Any hint is appreciated. Thank you! >> >> Best, >> Hao >> -- > > Hi Hao, > > Could please elaborate on what 'wifi radio' means in your description. It > makes me think about RFKILL, but that may not be the thing you are looking > for. With it you can disable/enable the radio within the wireless chipset. > The terms sleep and wakeup feel a little odd when talking about radios. > > Gr. AvS > > -- > Almost nobody dances sober, unless they happen to be insane. > -- H.P. Lovecraft -- > > >