From: BC Date: Fri, 28 Jan 2011 16:33:51 -0500 (EST) Subject: [ath9k-devel] disable dynamic power save in AR9280 In-Reply-To: References: <8CD87BF5595BB26-FA8-1327@webmail-d045.sysops.aol.com> Message-ID: <8CD8D4A3060253A-1960-4A39@webmail-d047.sysops.aol.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Thanks for your replies Mohammed and Vivek. I found out that it was in fact gnome NetworkManager that was giving me the power save issue. (See Vivek's comment below.) I installed wicd and uninstalled gnome Network Manager and the issue stopped occurring. Note: I had to run 'iwconfig wlan1 power off' before I could connect to the AP otherwise before that I kept getting 'could not obtain IP address' errors and I could not associate. But all is now working great. Thanks again for your replies. Aside: how do I automatically add the ">" to show what I am replying to for this mailing list? Brandon Combs >BC wrote: > I am working with AR9280 wireless cards and I cannot seem to disable > the dynamic power save poll. I have tried "iw wlan1 power_save off" > and I also tried "iwconfig wlan1 power off", and when I run iwconfig > it shows "Power Management: off" but still during my experiments I > found that every ~120 seconds for a duration of about ~15 seconds the > stations enter power save mode which severely effects the throughput > and jitter. Power save is definitely disabled using the above commands. It looks like you are using Network Manager and a scan is triggered periodically for which mac80211 intimates a "fake sleep" to the AP before moving to other channels for scanning. To fix You need to prevent scanning. You can connect using iwconfig or iw or wpa_supplicant which just associate to the AP and these do not initiate scan automatically. Vivek. -----Original Message----- From: Mohammed Shafi To: BC Cc: ath9k-devel Sent: Sat, Jan 22, 2011 1:33 am Subject: Re: [ath9k-devel] disable dynamic power save in AR9280 On Sat, Jan 22, 2011 at 1:47 AM, BC wrote: > I am working with AR9280 wireless cards and I cannot seem to disable the > dynamic power save poll. I have tried "iw wlan1 power_save off" and I also > tried "iwconfig wlan1 power off", and when I run iwconfig it shows "Power > Management: off" but still during my experiments I found that every ~120 > seconds for a duration of about ~15 seconds the stations enter power save > mode which severely effects the throughput and jitter. > Is there a way to disable this dynamic power save? I cannot move on with my > experiments until I solve this issue, any help is greatly appreciated. Note > that I am familiar with hacking the driver so maybe someone can point me in > the right direction on where to change the code (unless there is an easier > solution?). Hi quick guess please tell if it works or not when you test it.Please comment out this flag IEEE80211_HW_PS_NULLFUNC_STACK and in addition you can disable this flag too IEEE80211_HW_SUPPORTS_PS In init.c void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw) { struct ath_common *common = ath9k_hw_common(sc->sc_ah); hw->flags = IEEE80211_HW_RX_INCLUDES_FCS | IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING | IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_SUPPORTS_PS | // IEEE80211_HW_PS_NULLFUNC_STACK | Comment this out ? IEEE80211_HW_SPECTRUM_MGMT | IEEE80211_HW_REPORTS_TX_ACK_STATUS; > I am currently running compat-wireless 2.6.37-4-sn and I also had this > problem with compat-wireless 2.6.35-1. > Here is a little more information on how I am set-up: I am using Iperf to > generate UDP traffic between two stations. I send for a duration of 300 sec > and I can see in my plots of throughput and jitter that they are very smooth > except every ~120 sec for a duration of about ~15 seconds the jitter and > throughput graphs go "crazy" (the jitter is increased and more varied and > throughput becomes random). I looked at my wireshark packet sniffer output > and noticed power save polls and Null packets being sent during these times. > Here is my system info: > SparkLAN WPEA-111N miniPCIx a,b,g,n AR9280 > ~/Desktop$ uname -a > Linux mike-netbook 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC > 2010 i686 GNU/Linux > > ~/Desktop$ sudo lspci -vvv > 05:00.0 Network controller: Atheros Communications Inc. AR928X Wireless > Network Adapter (PCI-Express) (rev 01) > Subsystem: Lite-On Communications Inc Device 6512 > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR+ FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Latency: 0, Cache Line Size: 32 bytes > Interrupt: pin A routed to IRQ 16 > Region 0: Memory at f0100000 (64-bit, non-prefetchable) [size=64K] > Capabilities: [40] Power Management version 2 > Flags: PMEClk- DSI- D1+ D2- AuxCurrent=375mA > PME(D0+,D1+,D2-,D3hot+,D3cold-) > Status: D0 PME-Enable- DSel=0 DScale=0 PME- > Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 > Enable- > Address: 00000000 Data: 0000 > Capabilities: [60] Express (v1) Legacy Endpoint, MSI 00 > DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 > <64us > ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset- > DevCtl: Report errors: Correctable- Non-Fatal- Fatal- > Unsupported- > RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop- > MaxPayload 128 bytes, MaxReadReq 512 bytes > DevSta: CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- > TransPend- > LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM unknown, Latency > L0 <512ns, L1 <64us > ClockPM- Suprise- LLActRep- BwNot- > LnkCtl: ASPM L1 Enabled; RCB 128 bytes Disabled- Retrain- > CommClk+ > ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- > LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- > BWMgmt- ABWMgmt- > Capabilities: [90] MSI-X: Enable- Mask- TabSize=1 > Vector table: BAR=0 offset=00000000 > PBA: BAR=0 offset=00000000 > Kernel driver in use: ath9k > Kernel modules: ath9k > ~/Desktop$ sudo lshw > *-network > description: Wireless interface > product: AR928X Wireless Network Adapter (PCI-Express) > vendor: Atheros Communications Inc. > physical id: 0 > bus info: pci at 0000:05:00.0 > logical name: wlan1 > version: 01 > serial: 00:0e:8e:28:01:ed > width: 64 bits > clock: 33MHz > capabilities: pm msi pciexpress msix bus_master cap_list > ethernet physical wireless logical > configuration: broadcast=yes driver=ath9k > driverversion=2.6.32-27-generic firmware=N/A ip=149.161.112.136 latency=0 > link=yes multicast=yes wireless=IEEE 802.11abgn > resources: irq:16 memory:f0100000-f010ffff > Brandon M. Combs > Brmcombs at iusb.edu > cs.iusb.edu/~bcombs > (574)202-0972 > _______________________________________________ > ath9k-devel mailing list > ath9k-devel at lists.ath9k.org > https://lists.ath9k.org/mailman/listinfo/ath9k-devel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20110128/62c74c77/attachment.htm