atheros_wifi/common_src/util/util.c
QOSAL_UINT32
Util_Freq2ieee(QOSAL_UINT16 freq)
{
    if (freq == 2484)
        return (QOSAL_UINT32)14;
    if (freq < 2484)
        return (QOSAL_UINT32)((freq - 2407) / 5);
    if (freq < 5000)
        return (QOSAL_UINT32)(15 + ((freq - 2512) / 20));
    return (QOSAL_UINT32)((freq - 5000) / 5);
}
/*
 * Converts MHz frequency to IEEE channel number.
 */
Converts MHz frequency to IEEE channel number.
Converts MHz frequency to IEEE channel number .
QOSAL_UINT32
Util_Freq2ieee(QOSAL_UINT16 freq)
{
    if (freq == 2484)
        return (QOSAL_UINT32)14;
    if (freq < 2484)
        return (QOSAL_UINT32)((freq - 2407) / 5);
    if (freq < 5000)
        return (QOSAL_UINT32)(15 + ((freq - 2512) / 20));
    return (QOSAL_UINT32)((freq - 5000) / 5);
}
QOSAL_UINT32 Util_Freq2ieee ( QOSAL_UINT16 freq ) { if ( freq == 2484 ) return ( QOSAL_UINT32 ) 14 ; if ( freq < 2484 ) return ( QOSAL_UINT32 ) ( ( freq - 2407 ) / 5 ) ; if ( freq < 5000 ) return ( QOSAL_UINT32 ) ( 15 + ( ( freq - 2512 ) / 20 ) ) ; return ( QOSAL_UINT32 ) ( ( freq - 5000 ) / 5 ) ; }
Converts MHz frequency to IEEE channel number.
Converts MHz frequency to IEEE channel number .