From: Michael Tremer Date: Sun, 23 Jun 2019 10:30:17 +0000 (+0000) Subject: wireless: Do not attempt DFS when reg domain is set to world X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=038a7f3628f6b7648f89bb3ef6813e757fed6fec;p=network.git wireless: Do not attempt DFS when reg domain is set to world Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.wireless b/src/functions/functions.wireless index 733a3562..860b2dd9 100644 --- a/src/functions/functions.wireless +++ b/src/functions/functions.wireless @@ -555,6 +555,11 @@ wireless_supports_dfs() { local device="${1}" assert isset device + # DFS is not supported if wireless reg domain is set to world + if [ -n "${WIRELESS_REGULATORY_DOMAIN}" ] || [ "${WIRELESS_REGULATORY_DOMAIN}" = "00" ]; then + return ${EXIT_FALSE} + fi + local phy="$(device_get_phy "${device}")" if ! isset phy; then log ERROR "Could not determine PHY for ${device}"