ath9k : Not able to set LongRetry and ShortRetry.
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File : drivers/net/wireless/ath/ath9k/mac.h
#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32
After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIe
Thanks,
Bhavesh.
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.
Quoted 24 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh.
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 37 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 19 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Hi Adrian,
Can you please point me the exact file/function for rate schedule?
But still I am not able to understand the usage of these macros.
Thanks,
Bhavesh.
Quoted 43 lines · Adrian Chadd
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 36 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 19 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Hi,
ath9k_11n_rate_series has "Tries". That's how many attempts at that given rate series entry.
ar9002_set_txdesc() and ar9003_set_txdesc() (where the latter is relevant for you, using an ar9380) turn that rate series information into hardware specific information.
ath_buf_set_rate() takes care of populating the bf->rates[] array, which is an array of ath9k_11n_rate_series entries. (Note - there's four of them. The hardware is limited to four.)
Now, those fields in question behave slightly differently to what I think you expect:
* Retry limits (D_RETRY_LIMIT)
Offset: 0x1080 + (D << 2)
3:0 - Frame RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the current transmission series is terminated. (A frame's RTS exchange fails if RTS is enabled for the frame, but when the MAC sends the RTS on the air, no CTS is received.) Resets to 0x4. Note: A value of 0x0 is UNSUPPORTED.
7:4 - Reserved
13:8 - Station RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the CW is reset to CW_MIN. Resets to 0x20. Note: A value of 0x0 is UNSUPPORTED.
19:14 - Station data failure limit. Specifies the number of times a
frame's data exchange may fail before CW is reset to CW_MIN. Resets to 0x20. Note: A value of 0x0 is UNSUPPORTED.
31:20 - Reserved
.. so frame RTS controls the RTS failure count; I think the rate series tries is the total attempts made to transmit the frame assuming RTS succeeds, and station RTS/station data have to do with contention window management.
Hope that helps,
-a
Quoted 60 lines · Bhavesh Kamani
Hi Adrian,
Can you please point me the exact file/function for rate schedule?
But still I am not able to understand the usage of these macros.
Thanks,
Bhavesh.Quoted 47 lines · Adrian Chadd
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 39 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 20 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Hi Adrian,
Thanks a lot for the detailed info. I will try different combination in the pointed function and observe it.
Can you/someone help me what is the meaning of below macros?
#define INIT_SH_RETRY 10
#define INIT_LG_RETRY 10
#define INIT_SSH_RETRY 32
#define INIT_SLG_RETRY 32
Setting value 2 for all these macros, increases the packet drop by 2%(approximately) in lower signal strength(approx -80 db), if I set the values to 64 then packet drop is very less.
Thanks,
Bhavesh.
Quoted 102 lines · Adrian Chadd
Hi,
ath9k_11n_rate_serieshas "Tries". That's how many attempts at that given rate series entry.
ar9002_set_txdesc()andar9003_set_txdesc()(where the latter is relevant for you, using an ar9380) turn that rate series information into hardware specific information.
ath_buf_set_rate()takes care of populating the bf->rates[] array, which is an array ofath9k_11n_rate_seriesentries. (Note - there's four of them. The hardware is limited to four.)Now, those fields in question behave slightly differently to what I think you expect:
* Retry limits (
D_RETRY_LIMIT)
Offset:0x1080+ (D << 2)3:0 - Frame RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the current transmission series is terminated. (A frame's RTS exchange fails if RTS is enabled for the frame, but when the MAC sends the RTS on the air, no CTS is received.) Resets to0x4. Note: A value of0x0is UNSUPPORTED.
7:4 - Reserved
13:8 - Station RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the CW is reset toCW_MIN. Resets to0x20. Note: A value of0x0is UNSUPPORTED.
19:14 - Station data failure limit. Specifies the number of times a
frame's data exchange may fail before CW is reset toCW_MIN. Resets to0x20. Note: A value of0x0is UNSUPPORTED.
31:20 - Reserved.. so frame RTS controls the RTS failure count; I think the rate series tries is the total attempts made to transmit the frame assuming RTS succeeds, and station RTS/station data have to do with contention window management.
Hope that helps,
-a
Quoted 55 lines · Bhavesh Kamani
Hi Adrian,
Can you please point me the exact file/function for rate schedule?
But still I am not able to understand the usage of these macros.
Thanks,
Bhavesh.Quoted 43 lines · Adrian Chadd
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 36 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 19 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Hi,
I just told you what those fields are. Figure out:
* how they're used
* the tx path queue code that uses them - figure out how it ends up programming D_RETRY_LIMIT
* .. and which ones of those map to which fields inside D_RETRY_LIMIT.
-a
Quoted 137 lines · Bhavesh Kamani
Hi Adrian,
Thanks a lot for the detailed info. I will try different combination in the pointed function and observe it.
Can you/someone help me what is the meaning of below macros?
#define
INIT_SH_RETRY10
#defineINIT_LG_RETRY10
#defineINIT_SSH_RETRY32
#defineINIT_SLG_RETRY32Setting value 2 for all these macros, increases the packet drop by 2%(approximately) in lower signal strength(approx -80 db), if I set the values to 64 then packet drop is very less.
Thanks,
Bhavesh.Quoted 113 lines · Adrian Chadd
Hi,
ath9k_11n_rate_serieshas "Tries". That's how many attempts at that given rate series entry.
ar9002_set_txdesc()andar9003_set_txdesc()(where the latter is relevant for you, using an ar9380) turn that rate series information into hardware specific information.
ath_buf_set_rate()takes care of populating the bf->rates[] array, which is an array ofath9k_11n_rate_seriesentries. (Note - there's four of them. The hardware is limited to four.)Now, those fields in question behave slightly differently to what I think you expect:
* Retry limits (
D_RETRY_LIMIT)
Offset:0x1080+ (D << 2)3:0 - Frame RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the current transmission series is terminated. (A frame's RTS exchange fails if RTS
is
enabled for the frame, but when the MAC sends the RTS on the air, no CTS is received.) Resets to0x4. Note: A value of0x0
is UNSUPPORTED.
7:4 - Reserved
13:8 - Station RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the CW is reset toCW_MIN.Resets to 0x20. Note: A value of 0x0 is UNSUPPORTED. 19:14 - Station data failure limit. Specifies the number of times a frame's data exchange may fail before CW is reset to CW_MIN. Resets to 0x20. Note: A value of 0x0 is UNSUPPORTED. 31:20 - Reserved.. so frame RTS controls the RTS failure count; I think the rate series tries is the total attempts made to transmit the frame assuming RTS succeeds, and station RTS/station data have to do with contention window management.
Hope that helps,
-a
Quoted 62 lines · Bhavesh Kamani
Hi Adrian,
Can you please point me the exact file/function for rate schedule?
But still I am not able to understand the usage of these macros.
Thanks,
Bhavesh.Quoted 48 lines · Adrian Chadd
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 39 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 20 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Hi Team,
If frame is large than RTS threshold, then RTS will be sent before the frame transmission.
What are the other cases when RTS frame will be sent?
Thanks,
Bhavesh.
Quoted 102 lines · Adrian Chadd
Hi,
ath9k_11n_rate_serieshas "Tries". That's how many attempts at that given rate series entry.
ar9002_set_txdesc()andar9003_set_txdesc()(where the latter is relevant for you, using an ar9380) turn that rate series information into hardware specific information.
ath_buf_set_rate()takes care of populating the bf->rates[] array, which is an array ofath9k_11n_rate_seriesentries. (Note - there's four of them. The hardware is limited to four.)Now, those fields in question behave slightly differently to what I think you expect:
* Retry limits (
D_RETRY_LIMIT)
Offset:0x1080+ (D << 2)3:0 - Frame RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the current transmission series is terminated. (A frame's RTS exchange fails if RTS is enabled for the frame, but when the MAC sends the RTS on the air, no CTS is received.) Resets to0x4. Note: A value of0x0is UNSUPPORTED.
7:4 - Reserved
13:8 - Station RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the CW is reset toCW_MIN. Resets to0x20. Note: A value of0x0is UNSUPPORTED.
19:14 - Station data failure limit. Specifies the number of times a
frame's data exchange may fail before CW is reset toCW_MIN. Resets to0x20. Note: A value of0x0is UNSUPPORTED.
31:20 - Reserved.. so frame RTS controls the RTS failure count; I think the rate series tries is the total attempts made to transmit the frame assuming RTS succeeds, and station RTS/station data have to do with contention window management.
Hope that helps,
-a
Quoted 55 lines · Bhavesh Kamani
Hi Adrian,
Can you please point me the exact file/function for rate schedule?
But still I am not able to understand the usage of these macros.
Thanks,
Bhavesh.Quoted 43 lines · Adrian Chadd
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 36 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 19 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Have a look through the driver code for when the RTS (and CTS, if interested) bits in the TX descriptor are set.
Then trace that back up through mac80211.
-a
Quoted 124 lines · Bhavesh Kamani
Hi Team,
If frame is large than RTS threshold, then RTS will be sent before the frame transmission.
What are the other cases when RTS frame will be sent?Thanks,
Bhavesh.Quoted 113 lines · Adrian Chadd
Hi,
ath9k_11n_rate_serieshas "Tries". That's how many attempts at that given rate series entry.
ar9002_set_txdesc()andar9003_set_txdesc()(where the latter is relevant for you, using an ar9380) turn that rate series information into hardware specific information.
ath_buf_set_rate()takes care of populating the bf->rates[] array, which is an array ofath9k_11n_rate_seriesentries. (Note - there's four of them. The hardware is limited to four.)Now, those fields in question behave slightly differently to what I think you expect:
* Retry limits (
D_RETRY_LIMIT)
Offset:0x1080+ (D << 2)3:0 - Frame RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the current transmission series is terminated. (A frame's RTS exchange fails if RTS
is
enabled for the frame, but when the MAC sends the RTS on the air, no CTS is received.) Resets to0x4. Note: A value of0x0
is UNSUPPORTED.
7:4 - Reserved
13:8 - Station RTS failure limit. Specifies the number of times a
frame's RTS exchange may fail before the CW is reset toCW_MIN.Resets to 0x20. Note: A value of 0x0 is UNSUPPORTED. 19:14 - Station data failure limit. Specifies the number of times a frame's data exchange may fail before CW is reset to CW_MIN. Resets to 0x20. Note: A value of 0x0 is UNSUPPORTED. 31:20 - Reserved.. so frame RTS controls the RTS failure count; I think the rate series tries is the total attempts made to transmit the frame assuming RTS succeeds, and station RTS/station data have to do with contention window management.
Hope that helps,
-a
Quoted 62 lines · Bhavesh Kamani
Hi Adrian,
Can you please point me the exact file/function for rate schedule?
But still I am not able to understand the usage of these macros.
Thanks,
Bhavesh.Quoted 48 lines · Adrian Chadd
There's also a maximum transmit retry counter in the rate schedule setup in the transmit descriptor.
-a
Quoted 39 lines · Bhavesh Kamani
Hi Team,
I am using this Ar9380 NIC as AP using hostapd 2.0.
Thanks,
Bhavesh.Quoted 20 lines · Bhavesh Kamani
Hi Team,
I have changed the values of following four macros and set it to 2 to change LongRetryLimit and ShortRetryLimit, but I am not able to see any difference.
File :
drivers/net/wireless/ath/ath9k/mac.h#define INIT_SH_RETRY 10 #define INIT_LG_RETRY 10 #define INIT_SSH_RETRY 32 #define INIT_SLG_RETRY 32After setting value 2, I am able to see more than 2 retries when ACK is not sent by WiFi client for particular packet.
Please let me know how to change LongRetryLimit and ShortRetryLimit. Is it the right place where I am changing the values? If yes, then what are the possible value ranges for LongRetryLimit and ShortRetryLimit?Quoted 5 lines
ath9k version : backports-3.12.8-1
Hardware : AR9380 miniPCIeThanks,
Bhavesh._______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel