beacon.c (17deb9c2db01c7813611291d251d8c7dbdfd3c9d) beacon.c (1e516ca7c9ceeeec4ed87f549a14bc3b73427f83)
1/*
2 * Copyright (c) 2008-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

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

329 * not don't try to post another, skip this period
330 * and wait for the next. Missed beacons indicate
331 * a problem and should not occur. If we miss too
332 * many consecutive beacons reset the device.
333 */
334 if (ath9k_hw_numtxpending(ah, sc->beacon.beaconq) != 0) {
335 sc->beacon.bmisscnt++;
336
1/*
2 * Copyright (c) 2008-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

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

329 * not don't try to post another, skip this period
330 * and wait for the next. Missed beacons indicate
331 * a problem and should not occur. If we miss too
332 * many consecutive beacons reset the device.
333 */
334 if (ath9k_hw_numtxpending(ah, sc->beacon.beaconq) != 0) {
335 sc->beacon.bmisscnt++;
336
337 ath9k_hw_check_nav(ah);
338
337 if (!ath9k_hw_check_alive(ah))
338 ieee80211_queue_work(sc->hw, &sc->hw_check_work);
339
340 if (sc->beacon.bmisscnt < BSTUCK_THRESH * sc->nbcnvifs) {
341 ath_dbg(common, BSTUCK,
342 "missed %u consecutive beacons\n",
343 sc->beacon.bmisscnt);
344 ath9k_hw_stop_dma_queue(ah, sc->beacon.beaconq);

--- 441 unchanged lines hidden ---
339 if (!ath9k_hw_check_alive(ah))
340 ieee80211_queue_work(sc->hw, &sc->hw_check_work);
341
342 if (sc->beacon.bmisscnt < BSTUCK_THRESH * sc->nbcnvifs) {
343 ath_dbg(common, BSTUCK,
344 "missed %u consecutive beacons\n",
345 sc->beacon.bmisscnt);
346 ath9k_hw_stop_dma_queue(ah, sc->beacon.beaconq);

--- 441 unchanged lines hidden ---