Skip to content

Instantly share code, notes, and snippets.

@supersonictw
Created August 22, 2025 03:01
Show Gist options
  • Select an option

  • Save supersonictw/d6cc4284b3d6aa931dfa6f7846c12c33 to your computer and use it in GitHub Desktop.

Select an option

Save supersonictw/d6cc4284b3d6aa931dfa6f7846c12c33 to your computer and use it in GitHub Desktop.
Set legal Tx-Power for Taiwan 2.4GHz
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