. /usr/lib/network/functions
+# Read network settings
+network_settings_read
+
action="${1}"
assert isset action
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}" \