mr scripts: dos2unix on some files
[wilink8-wlan/wl18xx-target-scripts.git] / mr / ChToFreq.sh
1 CHANNEL=$1
2 CHANNEL_FREQ=0
4 if [ "$CHANNEL" -ge 149] ; then 
5         let "CHANNEL_FREQ = (($CHANNEL - 149) * 5) + 5745"
6 elif [ "$CHANNEL" -ge 36 ] ; then 
7         let "CHANNEL_FREQ = (($CHANNEL - 36) * 5) + 5180"
8 elif [ "$CHANNEL" -ge 1 ] ; then 
9         let "CHANNEL_FREQ = (($CHANNEL - 1) * 5) + 2412"
10 else
11         echo "CH in not in range" 
12 fi
14 echo $CHANNEL_FREQ