Re: [ath5k-devel] Send packet from inside ath5k_intr() or ath5k_tasklet_rx()

2010-06-22 Thread Jin YunYe
Thanks for your reply, Bob. My problem is not exactly compatibility of hardware. Instead, I want the driver to send out the response as soon as it receives a packet (when notified by interrupt ath5k_intr() ). I am thinking of calling ath5k_tx(struct ieee80211_hw *hw, struct sk_buff *skb) inside

Re: [ath5k-devel] Send packet from inside ath5k_intr() or ath5k_tasklet_rx()

2010-06-22 Thread Holger Schurig
For research purpose, I want to make the Atheros wifi card to send out Jin YunYe, this is *NOT* targeted especially to you, so please don't be offended. Can it be the case that research is a mostly a one-way road? Every other week I read from someone For a research we need to do this and

[ath5k-devel] Disable post-backoff

2010-06-22 Thread Dennis Borgmann
Hello ath5k-list and linux-wireless-list! I am sorry, if this is a double-post. I sent this message to the wrong address before. I apologize. For testing reasons I would like to disable backoff times in ath5k. In the code of ath5k we have the macro AR5K_TXQ_FLAG_BACKOFF_DISABLE in file

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 9:31 AM, Matthew Garrett m...@redhat.com wrote: On Mon, Jun 21, 2010 at 01:39:07PM -0700, Luis R. Rodriguez wrote: Last I reviewed CONFIG_PCIEASPM won't buy you *anything* other than debugging knobs. With it you can force all devices to enable ASPM completely on or

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Matthew Garrett
On Mon, Jun 21, 2010 at 01:39:07PM -0700, Luis R. Rodriguez wrote: Last I reviewed CONFIG_PCIEASPM won't buy you *anything* other than debugging knobs. With it you can force all devices to enable ASPM completely on or disable it. Both of which I think are not really useful and instead should

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 10:25 AM, Matthew Garrett mj...@srcf.ucam.org wrote: On Tue, Jun 22, 2010 at 10:17:11AM -0700, Luis R. Rodriguez wrote: On Tue, Jun 22, 2010 at 9:52 AM, Matthew Garrett mj...@srcf.ucam.org wrote: Why would you only want to enable ASPM for one device? ASPM doesn't

Re: [ath5k-devel] Send packet from inside ath5k_intr() or ath5k_tasklet_rx()

2010-06-22 Thread Bob Copeland
On Tue, Jun 22, 2010 at 3:21 AM, Jin YunYe yunye...@gmail.com wrote: Thanks for your reply, Bob. My problem is not exactly compatibility of hardware. Instead, I want the driver to send out the response as soon as it receives a packet (when notified by interrupt ath5k_intr() ). I am thinking

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Matthew Garrett
On Tue, Jun 22, 2010 at 09:48:40AM -0700, Luis R. Rodriguez wrote: Sure, I agree with that, but it also will enable ASPM for *all* devices which have the capability which IMHO is a terrible idea for users when all they want to do is enable ASPM for one device. Instead I recommend users to

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Matthew Garrett
On Tue, Jun 22, 2010 at 10:17:11AM -0700, Luis R. Rodriguez wrote: On Tue, Jun 22, 2010 at 9:52 AM, Matthew Garrett mj...@srcf.ucam.org wrote: Why would you only want to enable ASPM for one device? ASPM doesn't always work for all devices even if they do advertise ASPM capability so turning

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 10:50 AM, Matthew Garrett mj...@srcf.ucam.org wrote: On Tue, Jun 22, 2010 at 10:40:15AM -0700, Luis R. Rodriguez wrote: On Tue, Jun 22, 2010 at 10:25 AM, Matthew Garrett mj...@srcf.ucam.org wrote: Right, which we have to deal with by having drivers disable ASPM on

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Matthew Garrett
On Tue, Jun 22, 2010 at 11:28:20AM -0700, Luis R. Rodriguez wrote: On Tue, Jun 22, 2010 at 10:50 AM, Matthew Garrett mj...@srcf.ucam.org wrote: People who use force deserve whatever they get, Heh, this whole patch and thread was started because Jussi tested ath5k with pcie_aspm=force (on a

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 11:44:26AM -0700, Matthew Garrett wrote: On Tue, Jun 22, 2010 at 11:28:20AM -0700, Luis R. Rodriguez wrote: On Tue, Jun 22, 2010 at 10:50 AM, Matthew Garrett mj...@srcf.ucam.org wrote: People who use force deserve whatever they get, Heh, this whole patch and

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 12:31 PM, Johannes Stezenbach j...@sig21.net wrote: On Tue, Jun 22, 2010 at 07:44:26PM +0100, Matthew Garrett wrote: On Tue, Jun 22, 2010 at 11:28:20AM -0700, Luis R. Rodriguez wrote: Heh, this whole patch and thread was started because Jussi tested ath5k with  

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 12:37 PM, Luis R. Rodriguez mcg...@gmail.com wrote: On Tue, Jun 22, 2010 at 12:31 PM, Johannes Stezenbach j...@sig21.net wrote: On Tue, Jun 22, 2010 at 07:44:26PM +0100, Matthew Garrett wrote: On Tue, Jun 22, 2010 at 11:28:20AM -0700, Luis R. Rodriguez wrote: Heh,

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Luis R. Rodriguez
On Tue, Jun 22, 2010 at 9:52 AM, Matthew Garrett mj...@srcf.ucam.org wrote: On Tue, Jun 22, 2010 at 09:48:40AM -0700, Luis R. Rodriguez wrote: Sure, I agree with that, but it also will enable ASPM for *all* devices which have the capability which IMHO is a terrible idea for users when all

Re: [ath5k-devel] [PATCH v2] ath5k: disable ASPM

2010-06-22 Thread Johannes Stezenbach
On Tue, Jun 22, 2010 at 07:44:26PM +0100, Matthew Garrett wrote: On Tue, Jun 22, 2010 at 11:28:20AM -0700, Luis R. Rodriguez wrote: Heh, this whole patch and thread was started because Jussi tested ath5k with pcie_aspm=force (on a pre PCIE 1.1 device (?)) . I have been trying to explain

Re: [ath5k-devel] Send packet from inside ath5k_intr() or ath5k_tasklet_rx()

2010-06-22 Thread Jin YunYe
Hi, Bob. Great thanks for your help! Best Regards YY On Wed, Jun 23, 2010 at 1:32 AM, Bob Copeland m...@bobcopeland.com wrote: On Tue, Jun 22, 2010 at 3:21 AM, Jin YunYe yunye...@gmail.com wrote: Thanks for your reply, Bob. My problem is not exactly compatibility of hardware. Instead, I