Skip to contentSkip to conversation

Disable ACK

ath9k-devel chansun.xjs 2 participants 9 messages Mar 30, 2012 – Apr 5, 2012

lore
Share & tools
lore
#0 lore raw

Hi,guys!
Recently, I was paying attention to test link without ACK, other words, disable waiting ack at tx and disable sending ack at rx. Trying hack at follw, disable waiting ack at tx in ath_tx_fill_desc func of xmit.c file:
if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)// no ack?

      info.flags |= ATH9K_TXDESC_NOACK;

disable sending ack at rx in AR_DIAG_SW register of reg.h file:
#define AR_DIAG_ACK_DIS 0x00000002
Hmm, was my thought trying right? If not , how can I realize the purpose? Thanks a lot.

2012-03-30

chansun.xjs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120330/e5534148/attachment.htm

#1 lore raw

Hi,

For ath9k_htc, I think there's currently an issue where the firmware doens't obey that flag.

For ath9k normal (ie, non-usb), setting IEEE80211_TX_CTL_NO_ACK should be enough.

Don't go plundering AR_DIAG or AR_MISC_MODE/MISC_MODE_2 without knowing what it actually does. :-)

2c,

adrian

Quoted 21 lines · chansun.xjs

Hi,guys!
Recently, I was paying attention to test link without ACK, other words, disable waiting ack at tx and disable sending ack at rx. Trying hack at follw,
disable waiting ack at tx in ath_tx_fill_desc func of xmit.c file:
?if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)// no ack? ??????info.flags |= ATH9K_TXDESC_NOACK;
disable sending ack at rx in AR_DIAG_SW?register of reg.h file:
#define AR_DIAG_ACK_DIS???????????? 0x00000002
Hmm, was my thought trying right? If not , how can I realize the purpose? Thanks a lot.

2012-03-30
________________________________
chansun.xjs

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#2 lore raw

Dear,adrian
Thanks for your tips,but I still feel tangled. I wonder what the hell IEEE80211_TX_CTL_NO_ACK flag stand for ? Like what I thought, if disabling this flag means not waiting for ACK and sending packet all along, the packet being sent must clash with ACKs back from receiver.

By the way, I had try set this flag throuht debug files noack, but throughput convert to low level after doing that. So,hmm, how should I set IEEE80211_TX_CTL_NO_ACK flag ? What the detail steps?

2012-03-31

chansun.xjs

????Adrian Chadd
?????2012-03-31 03:38
???Re: [ath9k-devel] Disable ACK
????"chansun.xjs"<[email protected]>
???"ath9k-devel"<[email protected]>

Hi,

For ath9k_htc, I think there's currently an issue where the firmware doens't obey that flag.

For ath9k normal (ie, non-usb), setting IEEE80211_TX_CTL_NO_ACK should be enough.

Don't go plundering AR_DIAG or AR_MISC_MODE/MISC_MODE_2 without knowing what it actually does. :-)

2c,

adrian

Quoted 12 lines · chansun.xjs

Hi,guys!
Recently, I was paying attention to test link without ACK, other words, disable waiting ack at tx and disable sending ack at rx. Trying hack at follw,
disable waiting ack at tx in ath_tx_fill_desc func of xmit.c file:
if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)// no ack?

      info.flags |= ATH9K_TXDESC_NOACK; 

disable sending ack at rx in AR_DIAG_SW register of reg.h file:
#define AR_DIAG_ACK_DIS 0x00000002
Hmm, was my thought trying right? If not , how can I realize the purpose? Thanks a lot.

Quoted 9 lines

2012-03-30
________________________________
chansun.xjs

_______________________________________________
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/20120331/8ad6e67a/attachment.htm

#3 lore raw

Hi,

that flag is used by the driver TX path to set a "no ACK required" flag in the hardware, if the hardware supports it.

For ath5k/ath9k series hardware, there's a flag in the TX descriptor that marks whether an ACK is required for a frame or not. If you set it, _NO_ ACK is sent or required for the frame - once the hardware TXes the frame, it doesn't wait for an ACK. It just signals to the driver that the frame was transmitted.

I hope that helps.

Adrian

#4 lore raw

Yes, you are right. Can you tell me how to set the flag? I got some problems when disabling ACK

2012-03-31

chansun.xjs

????Adrian Chadd
?????2012-03-31 09:46
???Re: Re: [ath9k-devel] Disable ACK
????"chansun.xjs"<[email protected]>
???"ath9k-devel"<[email protected]>

Hi,

that flag is used by the driver TX path to set a "no ACK required" flag in the hardware, if the hardware supports it.

For ath5k/ath9k series hardware, there's a flag in the TX descriptor that marks whether an ACK is required for a frame or not. If you set it, _NO_ ACK is sent or required for the frame - once the hardware TXes the frame, it doesn't wait for an ACK. It just signals to the driver that the frame was transmitted.

I hope that helps.

Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120331/465fa77b/attachment.htm

#8 lore raw
In reply to Adrian Chadd

Depending on my catching packet test , sender will not get ACK from receive any more if disabling waiting ack and throughput become very low. I doubt ACK from receive clashed sending packets. What can I do to disable ACK? Need help

2012-03-31

chansun.xjs

????Adrian Chadd
?????2012-03-31 09:46
???Re: Re: [ath9k-devel] Disable ACK
????"chansun.xjs"<[email protected]>
???"ath9k-devel"<[email protected]>

Hi,

that flag is used by the driver TX path to set a "no ACK required" flag in the hardware, if the hardware supports it.

For ath5k/ath9k series hardware, there's a flag in the TX descriptor that marks whether an ACK is required for a frame or not. If you set it, _NO_ ACK is sent or required for the frame - once the hardware TXes the frame, it doesn't wait for an ACK. It just signals to the driver that the frame was transmitted.

I hope that helps.

Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120331/e2a66d47/attachment.htm

#5 lore raw
In reply to chansun.xjs
Quoted 2 lines · chansun.xjs

Yes, you are right. Can you tell me how to set the flag? I got some problems when disabling ACK

Well, if you've disabled ACK the TX descriptor flag way (and you haven't fiddled with the diag register, that's a bad idea unless you know what you're doing) then you should just see lots of frames being TXed with no ACK.

I suggest you get another device and stick it into monitor mode, and see what's going on in the air.

It's quite possible your throughput issues are because you're seeing a lot of errors in the air and they were being hidden by normal frame retransmission.

Also - I haven't looked into what mac80211/ath9k will do if you disable ACK with an aggregation session. Be warned. :-)

Adrian

#6 lore raw

After my test about disabling ACK, when I disabled ACK, frame aggragation went invalidated. Other words , frame aggragation failed once disabled ACK, and throughput kept 30Mpbs Max at 20MHz. Problem as what I said, how can I get noACK and normal Aggragation ? If anyone figured it out , I will load much appreciation!

2012-04-05

chansun.xjs

????Adrian Chadd
?????2012-04-01 01:29
???Re: Re: Re: [ath9k-devel] Disable ACK
????"chansun.xjs"<[email protected]>
???"ath9k-devel"<[email protected]>

Quoted 2 lines · chansun.xjs

Yes, you are right. Can you tell me how to set the flag? I got some problems when disabling ACK

Well, if you've disabled ACK the TX descriptor flag way (and you haven't fiddled with the diag register, that's a bad idea unless you know what you're doing) then you should just see lots of frames being TXed with no ACK.

I suggest you get another device and stick it into monitor mode, and see what's going on in the air.

It's quite possible your throughput issues are because you're seeing a lot of errors in the air and they were being hidden by normal frame retransmission.

Also - I haven't looked into what mac80211/ath9k will do if you disable ACK with an aggregation session. Be warned. :-)

Adrian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20120405/d2dcf703/attachment.htm

#7 lore raw
Quoted 6 lines · chansun.xjs

After my test about disabling ACK, when I disabled ACK, frame aggragation went invalidated. Other words , frame aggragation failed once disabled ACK, and throughput kept 30Mpbs Max?at 20MHz.
Problem as what I said, how can I get noACK and normal Aggragation ? If anyone figured it out , I will load much appreciation!

I've never tried it, I'm sorry.

I'd check to make sure that the driver/mac80211 in this instance is actually queuing an aggregate to the hardware. It may for some reason not be.

adrian