]> git.ipfire.org Git - network.git/commitdiff
hostapd: Always enable Transmit Power Control
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Mar 2019 10:45:03 +0000 (11:45 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Mar 2019 10:45:03 +0000 (11:45 +0100)
Also advertise this to clients

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.hostapd

index eb177fe26f8d5fa82f5453b0276486b8d72e1f95..dd52e5644b4190c22ddded4cfef63ca83061b2a0 100644 (file)
@@ -232,6 +232,10 @@ hostapd_config_write() {
                                ;;
                esac
 
+               # Always advertise TPC
+               print "local_pwr_constraint=3"
+               print "spectrum_mgmt_required=1"
+
                # Enable Radar Detection
                if enabled dfs && wireless_supports_dfs "${device}"; then
                        print "ieee80211h=1"