atheros_wifi/common_src/util/util.c
QOSAL_UINT16
Util_Ieee2freq(QOSAL_INT32 chan)
{
    if (chan == 14) {
        return (QOSAL_UINT16)2484;
    }
    if (chan < 14) {    /* 0-13 */
        return (QOSAL_UINT16)(2407 + (chan*5));
    }
    if (chan < 27) {    /* 15-26 */
        return (QOSAL_UINT16)(2512 + ((chan-15)*20));
    }
    return (QOSAL_UINT16)(5000 + (chan*5));
}
/*
 * converts ieee channel number to frequency
 */
converts ieee channel number to frequency
converts ieee channel number to frequency
QOSAL_UINT16
Util_Ieee2freq(QOSAL_INT32 chan)
{
    if (chan == 14) {
        return (QOSAL_UINT16)2484;
    }
    if (chan < 14) {    
        return (QOSAL_UINT16)(2407 + (chan*5));
    }
    if (chan < 27) {    
        return (QOSAL_UINT16)(2512 + ((chan-15)*20));
    }
    return (QOSAL_UINT16)(5000 + (chan*5));
}
QOSAL_UINT16 Util_Ieee2freq ( QOSAL_INT32 chan ) { if ( chan == 14 ) { return ( QOSAL_UINT16 ) 2484 ; } if ( chan < 14 ) { return ( QOSAL_UINT16 ) ( 2407 + ( chan * 5 ) ) ; } if ( chan < 27 ) { return ( QOSAL_UINT16 ) ( 2512 + ( ( chan - 15 ) * 20 ) ) ; } return ( QOSAL_UINT16 ) ( 5000 + ( chan * 5 ) ) ; }
converts ieee channel number to frequency
converts ieee channel number to frequency
/* 0-13 */ /* 15-26 */