From: Felix Fietkau Date: Sat, 30 Nov 2013 18:44:14 +0000 (+0100) Subject: wireless: fix channel check X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3833d8708e387ffa02f5dca972b0119461cb8629;p=oweals%2Fnetifd.git wireless: fix channel check Signed-off-by: Felix Fietkau --- 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" ;;