]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.hostapd
hostapd: Disable DFS automatically when not supported by hardware
[people/ms/network.git] / src / functions / functions.hostapd
index e19f9b3f16d34103d00c9b4dcc75227439313044..b8559947d81ef56dd751467b9bef1df4fd97cec2 100644 (file)
@@ -181,7 +181,7 @@ hostapd_config_write() {
                print "ieee80211d=1"
 
                # Enable Radar Detection
-               if enabled dfs; then
+               if enabled dfs && wireless_supports_dfs "${device}"; then
                        print "ieee80211h=1"
                else
                        print "ieee80211h=0"