From 3833d8708e387ffa02f5dca972b0119461cb8629 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 30 Nov 2013 19:44:14 +0100 Subject: [PATCH] wireless: fix channel check Signed-off-by: Felix Fietkau --- scripts/netifd-wireless.sh | 4 ++-- 1 file 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" ;; -- 2.25.1