X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fusb%2Fmain.c;h=5c09476b29a5592b63906c21067d70ce25969a41;hb=990ce9efaea1c6e46372a6758988aff6e9d202e9;hp=c2ad6c3d71fcc79fc4b1bc082430f796931745cd;hpb=6476369c2c6d4ba487408cb5daff8df0480d6b4a;p=carl9170fw.git diff --git a/carlfw/usb/main.c b/carlfw/usb/main.c index c2ad6c3..5c09476 100644 --- a/carlfw/usb/main.c +++ b/carlfw/usb/main.c @@ -4,7 +4,7 @@ * Copyright (c) 2000-2005 ZyDAS Technology Corporation * Copyright (c) 2007-2009 Atheros Communications, Inc. * Copyright 2009 Johannes Berg - * Copyright 2009 Christian Lamparter + * Copyright 2009-2011 Christian Lamparter * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -395,10 +395,11 @@ static void usb_handler(uint8_t usb_interrupt_level1) } if (usb_interrupt_level2 & AR9170_USB_INTR_SRC7_USB_RESUME) { + usb_resume_ack(); + fw.suspend_mode = CARL9170_HOST_AWAKE; - andl(AR9170_USB_REG_WAKE_UP, AR9170_USB_WAKE_UP_WAKE); + set(AR9170_USB_REG_WAKE_UP, 0); - usb_resume_ack(); reboot(); } } @@ -419,9 +420,4 @@ void handle_usb(void) void usb_timer(void) { -#ifdef CONFIG_CARL9170FW_WOL - if (fw.suspend_mode == CARL9170_AWAKE_HOST) { - orl(AR9170_USB_REG_WAKE_UP, AR9170_USB_WAKE_UP_WAKE); - } -#endif /* CONFIG_CARL9170FW_WOL */ }