Example #1
0
static int ar6000_pm_resume(struct platform_device *dev)
{
    int i;
    for (i = 0; i < MAX_AR6000; i++) {
        AR_SOFTC_T *ar;

        if (ar6000_devices[i] == NULL)
            continue;
        ar = (AR_SOFTC_T*)netdev_priv(ar6000_devices[i]);
        AR_DEBUG_PRINTF(ATH_DEBUG_SUSPEND,("%s: enter status %d\n", __func__, ar->arOsPowerCtrl));
        switch (ar->arOsPowerCtrl) {
        case WLAN_PWR_CTRL_CUT_PWR:
            ar6000_pwr_on(ar);
            break;
        case WLAN_PWR_CTRL_WOW:
            /* nothing to do. keep the power on */
            break;
        case WLAN_PWR_CTRL_DEEP_SLEEP:
            /* fall through */
        case WLAN_PWR_CTRL_DEEP_SLEEP_DISABLED:
            /* nothing to do. keep the power on */
            break;
        default:
            AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Something is strange for ar6000_pm_resume %d\n", ar->arOsPowerCtrl));
            break;
       }
    }
    return 0;
}
Example #2
0
static int ar6000_pm_probe(struct platform_device *pdev)
{
    ar6000_pwr_on(NULL);
    return 0;
}