Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-12 Thread Bob Copeland
On Fri, Jun 10, 2011 at 11:27 PM, Adrian Chadd wrote: > On 11 June 2011 11:15, Liang wrote: >> Hi Adrian, >> It really works!  When adding >> the REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_ACK_DIS) >> after ath9k_hw_process_ini(), Wireshark monitors no IEEE ACK any more. >> There is another question. It

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-10 Thread Adrian Chadd
On 11 June 2011 11:15, Liang wrote: > Hi Adrian, > It really works!  When adding > the REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_ACK_DIS) > after ath9k_hw_process_ini(), Wireshark monitors no IEEE ACK any more. > There is another question. It is found the transmission rate is really low > even with UDP

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-10 Thread Liang
Hi Adrian, It really works! When adding the REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_ACK_DIS) after ath9k_hw_process_ini(), Wireshark monitors no IEEE ACK any more. There is another question. It is found the transmission rate is really low even with UDP packets after disable the ACK. Does it mean som

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-09 Thread Adrian Chadd
I'd likely slide it in somewhere after ath9k_hw_process_ini() in ath9k_hw_reset(). Good luck! Adrian On 9 June 2011 21:54, Liang wrote: > Hi, > There are three functions where AR_DIAG_SW is set with REG_SET_BIT(), but > I'm not sure in which function I should add REG_SET_BIT(ah, > AR_DIAG_SW, 

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-09 Thread Liang
Hi, There are three functions where AR_DIAG_SW is set with REG_SET_BIT(), but I'm not sure in which function I should add REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_ACK_DIS). Do you have any suggestions? function1: ath9k_hw_abort_tx_dma() REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_FORCE_CH_IDLE_HIGH); funct

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-09 Thread Adrian Chadd
Best thing to do is look at the code that disables ACK in the TX descriptor and set that. There's also the DIAG register, as mentioned. For ath9k: reg.h:#define AR_DIAG_SW 0x8048 reg.h:#define AR_DIAG_ACK_DIS 0x0002 Find where AR_DIAG_SW is set in the ath9k code

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-09 Thread Liang
Hi Adrian, Thank you. May I ask how to set these registers to disable the ACK in the ath5k/ath9k driver? Best, Leon On Thu, Jun 9, 2011 at 2:32 PM, Adrian Chadd wrote: > No, retry doesn't stop ack's, it just stops the hardware from retrying > a packet if it hasn't heard an ACK. > > You can fid

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-08 Thread Adrian Chadd
No, retry doesn't stop ack's, it just stops the hardware from retrying a packet if it hasn't heard an ACK. You can fiddle with the diag register, or you can just ensure that the relevant bit in the TX descriptor isn't set. fgrep NOACK ath9k/*.h mac.h:#define ATH9K_TXDESC_NOACK0x00

Re: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-08 Thread Siva Rama Krishna Rao J. Y.
Please see ATH5K_DIAG_SW register in ath5k/reg.h for ACK disable feature. Siva --- On Thu, 6/9/11, Liang wrote: From: Liang Subject: [ath5k-devel] disable ACK at MAC layer in ath5k/ath9k To: ath5k-devel@lists.ath5k.org Date: Thursday, June 9, 2011, 11:25 AM Hi, I want to know if the ACK at

[ath5k-devel] disable ACK at MAC layer in ath5k/ath9k

2011-06-08 Thread Liang
Hi, I want to know if the ACK at 802.11 MAC layer can be turned off in the ath5k/ath9k, and how can it be done? On the other hand, does the command "iwconfig wlan0 retry 0" disable the MAC retransmission? Is it the same to turnoff the ACK? Thank you! Best, Leon _