/* To find CTL index(0~23) return 24(AR5416_NUM_CTLS)=>no desired index found  */
u8_t zfFindCtlEdgesIndex(zdev_t *dev, u8_t desired_CtlIndex)
/* To find CTL index(0~23) return 24(AR5416_NUM_CTLS)=>no desired index found  */
u8_t zfFindCtlEdgesIndex(zdev_t *dev, u8_t desired_CtlIndex)
{
    u8_t i;
    struct zsHpPriv* hpPriv;
    struct ar5416Eeprom* eepromImage;
    zmw_get_wlan_dev(dev);
    hpPriv = wd->hpPrivate;
    eepromImage = (struct ar5416Eeprom*)&(hpPriv->eepromImage[(1024+512)/4]);
    for (i = 0; i < AR5416_NUM_CTLS; i++)
    {
        if(desired_CtlIndex == eepromImage->ctlIndex[i])
            break;
    }
    return i;
}