added mr Android.mk and licence file
[wilink8-wlan/wl18xx-target-scripts.git] / mr / ChToFreq.sh
1 CHANNEL=$1\r
2 CHANNEL_FREQ=0\r
3 \r
4 if [ "$CHANNEL" -ge 149] ; then \r
5         let "CHANNEL_FREQ = (($CHANNEL - 149) * 5) + 5745"\r
6 elif [ "$CHANNEL" -ge 36 ] ; then \r
7         let "CHANNEL_FREQ = (($CHANNEL - 36) * 5) + 5180"\r
8 elif [ "$CHANNEL" -ge 1 ] ; then \r
9         let "CHANNEL_FREQ = (($CHANNEL - 1) * 5) + 2412"\r
10 else\r
11         echo "CH in not in range" \r
12 fi\r
13 \r
14 echo $CHANNEL_FREQ\r
15 \r
16 \r