]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/helpers/hostapd-config-helper
wireless-ap: Allow setting the wireless environment (indoor/outdoor)
[people/ms/network.git] / src / helpers / hostapd-config-helper
old mode 100755 (executable)
new mode 100644 (file)
index 668945b..d3292c3
@@ -21,6 +21,9 @@
 
 . /usr/lib/network/functions
 
+# Read network settings
+network_settings_read
+
 action="${1}"
 assert isset action
 
@@ -32,13 +35,15 @@ config_file="$(port_config_dir ${port})/hostapd.conf"
 case "${action}" in
        create)
                # Create the configuration file for this port.
-               port_config_read ${port} || exit $?
+               port_settings_read ${port} || exit $?
 
                hostapd_config_write ${port} ${config_file} \
                        --broadcast-ssid="${BROADCAST_SSID}" \
                        --channel="${CHANNEL}" \
-                       --country-code="${COUNTRY_CODE}" \
+                       --channel-bandwidth="${CHANNEL_BANDWIDTH}" \
+                       --dfs="${DFS}" \
                        --encryption="${ENCRYPTION}" \
+                       --environment="${ENVIRONMENT}" \
                        --key="${KEY}" \
                        --mode="${MODE}" \
                        --ssid="${SSID}" \