qca / open-ath9k-htc-firmware

The firmware for QCA AR7010/AR9271 802.11n USB NICs
Other
429 stars 182 forks source link

Disable rate control #60

Closed stathopou closed 8 years ago

stathopou commented 10 years ago

Greetings,

In order to do some measurements, I need to disable rate control in ath9k_htc. Having disabled minstrel and PID rate control algorithms I expected that no rate control would be applied. However, I recently discovered that rate control in ath9k_htc goes back to the firmware. So, it there any way to disable rate control in the firmware? If so, is there a patch that I can apply to the source code? Any help is appreciated.

Thank in advance, Nikos Stathopoulos

olerem commented 10 years ago

No, there is no patch, but you are welcome to provide one. Best place to start is here: https://github.com/qca/open-ath9k-htc-firmware/blob/master/target_firmware/wlan/ar5416_phy.c

stathopou commented 10 years ago

I am not experienced with firmware and drivers. So,I'm trying to figure out what do from the starting point you gave me. It seems to me that these are the rates that can be used by each mode (b/g/n etc). One hint I found was that:

/* Hardware workaround - remove rates 6, 9 from rate ctrl / / 6 Mb */ { AH_FALSE, OFDM, 60, 60, 60, 6000, 0x0b, 0x00, 12, 4 }. However, changing all the entries from AH_TRUE to AH_FALSE, didn't have any effect. Then I tried to trace the uses of function "ar5416GetRateTable", but I ended up to dead end.

Any more hints?

sreekrishnapandi commented 9 years ago

Hi, Did you find any solution to this problem? I am facing the same issue. I want to set manual rates on the ath_9k_htc device.

EduardoFF commented 8 years ago

Hi, I'm also trying to disable the rate control. Any news regarding this issue?

sreekrishnapandi commented 8 years ago

Ugly ugly fix https://github.com/rpp0/open-ath9k-htc-firmware

This worked for me. image

EduardoFF commented 8 years ago

Ugly fix but it works. Thanks a lot.

erikarn commented 8 years ago

Hi,

I'd like to merge this stuff into the main firmware branch. Is someone able/willing to tidy up the fixed rate definition stuff a bit? (eg hardcoding short-GI.)

psyborg55 commented 8 years ago

why do they listed as a feature at rpp0:

Dynamically configure a fixed data rate.

if we can only hardcode a single rate?

another thing, 6 and 9 Mbps are set to false in both github repos, is there some problem when using those rates?

cagrazia commented 6 years ago

Hi all,

I'm interested in this (old) topic. The solution of @sreekrishnapandi seems to be tailored for old kernels, is anyone here aware of some new patch/firmware to disable rate control on ath9k_htc??

Thank you all so much

erikarn commented 6 years ago

Hi,

I think we have to add rate control WMI commands to the firmware API.

-adrian