From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Hansen Date: Sat, 23 May 2009 11:30:50 -0600 (MDT) Subject: [ath9k-devel] (no subject) Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Hello, I have a TrendNet 652-BRP running OpenWRT + ath9k very well. The only problem is that the beacon gets stuck maybe once a day. After Vasanthakumar Thiagarajan's "ath9k: cleanup beacon parameters configuration" patch, ath9k would nearly re-configure the beacons after it detected the stuck beacon, and did a reset. But it would fail the SC_OP_TSF_RESET check in ath_beacon_config_ap. This patch gets the beacon fully reconfigured after the reset. -Jeff --------------------------------------------------- "If someone's gotta do it, it might as well be me." x at jeffhansen.com -------------- next part -------------- --- ./drivers/net/wireless/ath/ath9k/beacon.c.orig 2009-05-20 12:53:01.000000000 +0000 +++ ./drivers/net/wireless/ath/ath9k/beacon.c 2009-05-23 13:36:10.000000000 +0000 @@ -411,6 +411,7 @@ } else if (sc->beacon.bmisscnt >= BSTUCK_THRESH) { DPRINTF(sc, ATH_DBG_BEACON, "beacon is officially stuck\n"); + sc->sc_flags |= SC_OP_TSF_RESET; ath_reset(sc, false); }