From patchwork Tue Oct 12 02:17:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Randolf X-Patchwork-Id: 246671 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9C2HfxA000368 for ; Tue, 12 Oct 2010 02:17:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756803Ab0JLCRj (ORCPT ); Mon, 11 Oct 2010 22:17:39 -0400 Received: from mail30f.wh2.ocn.ne.jp ([220.111.41.203]:38775 "HELO mail30f.wh2.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756450Ab0JLCRj (ORCPT ); Mon, 11 Oct 2010 22:17:39 -0400 Received: from vs3009.wh2.ocn.ne.jp (125.206.180.237) by mail30f.wh2.ocn.ne.jp (RS ver 1.0.95vs) with SMTP id 0-0910929856 for ; Tue, 12 Oct 2010 11:17:37 +0900 (JST) Received: (qmail 31758 invoked from network); 12 Oct 2010 02:17:35 -0000 Received: from unknown (HELO tt-desk.localnet) (220.110.201.18) by with SMTP; 12 Oct 2010 02:17:35 -0000 From: Bruno Randolf To: "kivuli" Subject: Re: add delays in pcu.c and qcu.c of ath5k when creating mesh-network on routerstation pro with ar71xx board and atheros 5213A Date: Tue, 12 Oct 2010 11:17:45 +0900 User-Agent: KMail/1.13.2 (Linux/2.6.32-25-generic; KDE/4.4.2; x86_64; ; ) Cc: "linux-wireless" References: <201010090959043021161@gmail.com> In-Reply-To: <201010090959043021161@gmail.com> MIME-Version: 1.0 Message-Id: <201010121117.45101.br1@einfach.org> X-SF-Loop: 1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 12 Oct 2010 02:17:41 +0000 (UTC) diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c index 095d30b..6dc01d6 100644 --- a/drivers/net/wireless/ath/ath5k/pcu.c +++ b/drivers/net/wireless/ath/ath5k/pcu.c @@ -615,8 +615,9 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 if (ah->ah_sc->opmode == NL80211_IFTYPE_AP || ah->ah_sc->opmode == NL80211_IFTYPE_MESH_POINT) ath5k_hw_reg_write(ah, 0, AR5K_TIMER0); + else + ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0); - ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0); ath5k_hw_reg_write(ah, timer1, AR5K_TIMER1); ath5k_hw_reg_write(ah, timer2, AR5K_TIMER2);