From: Felix Fietkau Date: Mon, 2 Dec 2013 09:52:53 +0000 (+0100) Subject: wireless: fix htmode handling X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57bf943634acbdeaa41a0a67443e41627cc9c747;p=oweals%2Fnetifd.git wireless: fix htmode handling Signed-off-by: Felix Fietkau --- diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh index 7ae3695..3cb55a3 100644 --- a/scripts/netifd-wireless.sh +++ b/scripts/netifd-wireless.sh @@ -58,7 +58,7 @@ _wdev_prepare_channel() { ;; esac - [[ "$hwmode_n" = "$hwmode" ]] && { + [[ "$hwmode_n" = "$hwmode" ]] || { enable_ht=1 hwmode="$hwmode_n" @@ -283,7 +283,7 @@ for_each_interface() { } _wdev_common_device_config() { - config_add_string channel hwmode + config_add_string channel hwmode htmode } _wdev_common_iface_config() {