diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-02 10:52:53 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-02 10:52:53 +0100 |
commit | 57bf943634acbdeaa41a0a67443e41627cc9c747 (patch) | |
tree | 44fde9960aaa761b33573e26bc686c2d02a824f4 /scripts/netifd-wireless.sh | |
parent | 4a954d36788bd5fc68a641b9005dbbf988a5ef7e (diff) |
wireless: fix htmode handling
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'scripts/netifd-wireless.sh')
-rw-r--r-- | scripts/netifd-wireless.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |