add setting for automatic channel selection
authorFelix Fietkau <nbd@openwrt.org>
Wed, 8 Mar 2006 19:44:55 +0000 (19:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 8 Mar 2006 19:44:55 +0000 (19:44 +0000)
SVN-Revision: 3337

openwrt/package/webif/files/www/cgi-bin/webif/wireless-config.sh

index e85fb4d3a50f9c95fbc0ea0a5386852471570572..6709098fe220541614527664a51bbdf9deeb90ae 100755 (executable)
@@ -8,10 +8,10 @@ case "$CC" in
        All|all|ALL) CHANNELS="1 2 3 4 5 6 7 8 9 10 11 12 13 14"; CHANNEL_MAX=14 ;;
        *) CHANNELS="1 2 3 4 5 6 7 8 9 10 11"; CHANNEL_MAX=11 ;;
 esac
-F_CHANNELS=""
+F_CHANNELS="option|0|@TR<<Auto>>"
 for ch in $CHANNELS; do
-       F_CHANNELS="${F_CHANNELS}option|$ch
-"
+       F_CHANNELS="${F_CHANNELS}
+option|$ch"
 done
 
 if empty "$FORM_submit"; then
@@ -117,7 +117,7 @@ wep|FORM_key4|@TR<<WEP Key>> 4||$FORM_key4";;
 int|FORM_radio|wl0_radio|required min=0 max=1|$FORM_radio
 int|FORM_broadcast|wl0_closed|required min=0 max=1|$FORM_broadcast
 string|FORM_ssid|@TR<<ESSID>>|required|$FORM_ssid
-int|FORM_channel|@TR<<Channel>>|required min=1 max=$CHANNEL_MAX|$FORM_channel
+int|FORM_channel|@TR<<Channel>>|required min=0 max=$CHANNEL_MAX|$FORM_channel
 $V_WEP
 $V_RADIUS
 $V_PSK