Return-path: Received: from smtp-out116.alice.it ([85.37.17.116]:2966 "EHLO smtp-out116.alice.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232Ab0DYWIV (ORCPT ); Sun, 25 Apr 2010 18:08:21 -0400 Subject: Re: wl1251_sdio PSM From: GNUtoo To: linux-wireless@vger.kernel.org In-Reply-To: <1272230300.2349.23.camel@gnutoo-desktop> References: <1272230300.2349.23.camel@gnutoo-desktop> Content-Type: text/plain; charset="UTF-8" Date: Sun, 25 Apr 2010 23:57:51 +0200 Message-ID: <1272232671.2349.25.camel@gnutoo-desktop> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sun, 2010-04-25 at 23:18 +0200, GNUtoo wrote: > Hi, > We are trying to make the htc dream(also known as G1) android phone > usable with a standard GNU(non android) userland. > > Inside the htcdream there is a wl1251_sdio chip. > > We already use the wl1251_sdio driver with a special module for > initialization. > > The problem is that When the wifi is on,the battery last for about an > hour. > > So we definitely need power saving features like PSM(I hope I used the > right acronym,I'm looking for the system which makes the access point > buffer frames for the phone and then we request the frames,other power > saving mode are also welcome but as I understood this one is the most > important) > > Grepping for psm in the driver show that there is some sort of support > for PSM. > > Unfortunately the following method of activation failed: > > # ./iw dev wlan0 set power_save on > command failed: Operation not supported (-95) > > > # iwconfig wlan0 power period 2 > Error for wireless request "Set Power Management" (8B2C) : > invalid argument "2". > > and I didn't find a psm sys node. > > I wonder where it has been disabled,and if I can re-enable it. > > I was also told that most driver have psm disabled,I don't know the > reason tough(maybe performance,as it has a serious impact on > performance) > > our (bad quality)kenrel tree can be found here(we're not yet kernel > hackers): iwconfig wlan0 power on now works I wonder if it really does something tough,I will test I changed added | IEEE80211_HW_SUPPORTS_PS in: wl->hw->flags = IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_NOISE_DBM; Denis.