cfg80211.c (d91e8eee046e0d4ae7a8a585616b5ce800f54568) cfg80211.c (081c7a84e969453716e2a7bd315417067c3643ad)
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 1961 unchanged lines hidden (view full) ---

1970skip_arp:
1971 ret = ath6kl_wmi_set_wow_mode_cmd(ar->wmi, vif->fw_vif_idx,
1972 ATH6KL_WOW_MODE_ENABLE,
1973 filter,
1974 WOW_HOST_REQ_DELAY);
1975 if (ret)
1976 return ret;
1977
1/*
2 * Copyright (c) 2004-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 1961 unchanged lines hidden (view full) ---

1970skip_arp:
1971 ret = ath6kl_wmi_set_wow_mode_cmd(ar->wmi, vif->fw_vif_idx,
1972 ATH6KL_WOW_MODE_ENABLE,
1973 filter,
1974 WOW_HOST_REQ_DELAY);
1975 if (ret)
1976 return ret;
1977
1978 clear_bit(HOST_SLEEP_MODE_CMD_PROCESSED, &vif->flags);
1979
1978 ret = ath6kl_wmi_set_host_sleep_mode_cmd(ar->wmi, vif->fw_vif_idx,
1979 ATH6KL_HOST_MODE_ASLEEP);
1980 if (ret)
1981 return ret;
1982
1980 ret = ath6kl_wmi_set_host_sleep_mode_cmd(ar->wmi, vif->fw_vif_idx,
1981 ATH6KL_HOST_MODE_ASLEEP);
1982 if (ret)
1983 return ret;
1984
1985 left = wait_event_interruptible_timeout(ar->event_wq,
1986 test_bit(HOST_SLEEP_MODE_CMD_PROCESSED, &vif->flags),
1987 WMI_TIMEOUT);
1988 if (left == 0) {
1989 ath6kl_warn("timeout, didn't get host sleep cmd "
1990 "processed event\n");
1991 ret = -ETIMEDOUT;
1992 } else if (left < 0) {
1993 ath6kl_warn("error while waiting for host sleep cmd "
1994 "processed event %d\n", left);
1995 ret = left;
1996 }
1997
1983 if (ar->tx_pending[ar->ctrl_ep]) {
1984 left = wait_event_interruptible_timeout(ar->event_wq,
1985 ar->tx_pending[ar->ctrl_ep] == 0, WMI_TIMEOUT);
1986 if (left == 0) {
1987 ath6kl_warn("clear wmi ctrl data timeout\n");
1988 ret = -ETIMEDOUT;
1989 } else if (left < 0) {
1990 ath6kl_warn("clear wmi ctrl data failed: %d\n", left);

--- 1038 unchanged lines hidden ---
1998 if (ar->tx_pending[ar->ctrl_ep]) {
1999 left = wait_event_interruptible_timeout(ar->event_wq,
2000 ar->tx_pending[ar->ctrl_ep] == 0, WMI_TIMEOUT);
2001 if (left == 0) {
2002 ath6kl_warn("clear wmi ctrl data timeout\n");
2003 ret = -ETIMEDOUT;
2004 } else if (left < 0) {
2005 ath6kl_warn("clear wmi ctrl data failed: %d\n", left);

--- 1038 unchanged lines hidden ---