Created
August 22, 2025 03:01
-
-
Save supersonictw/d6cc4284b3d6aa931dfa6f7846c12c33 to your computer and use it in GitHub Desktop.
Set legal Tx-Power for Taiwan 2.4GHz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo tee /etc/network/if-up.d/wifi-txpower > /dev/null << 'EOF' | |
| #!/bin/sh | |
| # Only apply to wlan0 interface | |
| [ "$IFACE" = "wlan0" ] || exit 0 | |
| # Set legal Tx-Power for Taiwan 2.4GHz | |
| iwconfig wlan0 txpower 15 | |
| # Disable Wi-Fi power-save (optional) | |
| iw dev wlan0 set power_save off | |
| EOF | |
| sudo chmod +x /etc/network/if-up.d/wifi-txpower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment