summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-30 19:44:14 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-11-30 19:44:14 +0100
commit3833d8708e387ffa02f5dca972b0119461cb8629 (patch)
treeac3ac32284b1c72ad01b6cbb7dc69a5caf24390d
parent37769eb666aa614b76df9b537db35c2c70e3ac7a (diff)
wireless: fix channel check
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--scripts/netifd-wireless.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh
index 67ba38b..a67e350 100644
--- a/scripts/netifd-wireless.sh
+++ b/scripts/netifd-wireless.sh
@@ -46,11 +46,11 @@ _wdev_prepare_channel() {
hwmode_n="${hwmode##n}"
case "$channel" in
- 0|auto)
+ ""|0|auto)
channel=0
auto_channel=1
;;
- [0-9]+) ;;
+ [0-9]*) ;;
*)
wireless_setup_failed "INVALID_CHANNEL"
;;