From patchwork Sat Sep 25 08:34:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 208782 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 o8P8ZQ2t006573 for ; Sat, 25 Sep 2010 08:35:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635Ab0IYIfQ (ORCPT ); Sat, 25 Sep 2010 04:35:16 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:35873 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751019Ab0IYIfO convert rfc822-to-8bit (ORCPT ); Sat, 25 Sep 2010 04:35:14 -0400 Received: by fxm3 with SMTP id 3so1119098fxm.19 for ; Sat, 25 Sep 2010 01:35:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=VuG6HcX/46wSwIp8IX6miNQUtAwXSGiGOY9EHwjpNMQ=; b=UVD2q+Sd0RWhiBPpvYwyXseX/ab9+XZEL8lJOXKZsX8hApHEXHCxRFZmg47EJJZ6GL m8MdvNIxvOcZCCva3BqgTUXeBwhNhGA8og/Pr0XqLp5kag8NQssddhgB3+T9cvrhvoIz FBgWNx45u1Y1yydzV8CX76dnVQY059/Ky6PSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=Ovruz9GDHq/4+vKT/zqrDDCB9VTIa3fNTsooQ/HTglGkPIV/udUWtVSvZHmeHSQ2r5 HDiNboKxWm8WoGzpnIeERbX03EdWC/o5iOwietqswsxOeyNnCCnC8O9KVpzjG5/22bs6 PzmC5rd6JLi2d1sDLD19fAJNPX/xQGWRCHA6c= Received: by 10.223.116.19 with SMTP id k19mr4621744faq.48.1285403713192; Sat, 25 Sep 2010 01:35:13 -0700 (PDT) Received: from helmutmobil.site (p5495C191.dip.t-dialin.net [84.149.193.145]) by mx.google.com with ESMTPS id c20sm1404960fak.33.2010.09.25.01.35.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 25 Sep 2010 01:35:12 -0700 (PDT) From: Helmut Schaa To: Joshua Smith Subject: Re: Question about starting up an AP Date: Sat, 25 Sep 2010 10:34:24 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34.7-0.3-desktop; KDE/4.5.1; x86_64; ; ) Cc: linux-wireless@vger.kernel.org, rt2x00 Users List References: In-Reply-To: MIME-Version: 1.0 Message-Id: <201009251034.24993.helmut.schaa@googlemail.com> 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]); Sat, 25 Sep 2010 08:35:26 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index c7076de..058de10 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -277,7 +277,7 @@ int rt2800_wait_wpdma_ready(struct rt2x00_dev *rt2x00dev) unsigned int i; u32 reg; - for (i = 0; i < REGISTER_BUSY_COUNT; i++) { + for (i = 0; i < 100; i++) { rt2800_register_read(rt2x00dev, WPDMA_GLO_CFG, ®); if (!rt2x00_get_field32(reg, WPDMA_GLO_CFG_TX_DMA_BUSY) && !rt2x00_get_field32(reg, WPDMA_GLO_CFG_RX_DMA_BUSY))