zebulon2 / rtl8812au

RTL8812AU/21AU Driver for Linux
82 stars 23 forks source link

Corrected TX_POWER_TO_MAX setting #1

Closed NovaCygni closed 7 years ago

NovaCygni commented 7 years ago

Fixes TX_Power to Max to that RegDoms allowed maximum, resolves issues with TLP and other powersaving affecting signal stability.

zebulon2 commented 7 years ago

Interesting. Can this have legal implications in some countries?

NovaCygni commented 7 years ago

Nope not even remotely, it sets the TX_Power by the max allowed by that countries RegDom, which, in turn is set by both the EEPROM on the Wireless device, and again by the card itself depending on what regions the AP's are that it detects. I Tried pointing this out to a few other driver maintainers but they preferred to take random guesses from people on YahooQuestions, and AskJeeves instead of checking :\ Feel free to Google me, as a Hacker yourll find I take a overly keen interest in making sure things "Do NOT" infringe on any laws.

Also... if people are using 8812au driver chipsets(The V1 and V2 Alfas using this chipset, have this issue), and have been having the endlessly fluctuating signal strenth on AP's they arnt close to, this will resolve the issue.

Techy stuff: Assuming your based in the USA, your Wireless TX_Power will be set to a default signal strength of 24DB, which will drop to 16DB if the AP is close or signal strength is high, and will rise to 30DB when the signal is low. TLP and some other power saving programs attempt to force the USB and Wireless peripherals into "low power mode", which, ofc, if you wanted to do yourdve done yourself.... this "Fix" will simply tell the drivers they are to run at the maximum allowed TX_Power for that connection until told otherwise, in this scenario it would have a resting TX_Power of 30. If you then took the same laptop, to say, Chile, and there maximum TX_Power is only 28, your wireless device would detect "RegDom 74=CL" (Example code not right one, it detects its regdom location by the regdom being advertised by all the APs nearby it detects), it would then know its "Max_TxPower" value, would be 28... this "Fix", would make the drivers rest at the strongest value, but, would not exceed the 28DB limit... thus, there is no way the drivers can break any laws or local limits.

zebulon2 commented 7 years ago

Alright, many thanks for your analysis. Merging now.