From patchwork Thu Jul 21 13:49:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 994912 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6LDnHxd012423 for ; Thu, 21 Jul 2011 13:49:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751122Ab1GUNtQ (ORCPT ); Thu, 21 Jul 2011 09:49:16 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:58072 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802Ab1GUNtP (ORCPT ); Thu, 21 Jul 2011 09:49:15 -0400 Received: by yxi11 with SMTP id 11so654219yxi.19 for ; Thu, 21 Jul 2011 06:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0IHHjHeLEjlv9FL6CWY3GE2AfCwHjuU+anF4/NRo2fs=; b=jcoK2Kl6x8VH/qDN2wrFM4KWO6aqyk5H1HXz3L94wH8LGyf+ssDEkOj2PB/YX6jmaJ e2Z2Pd0Crn3bEAhLqTPeVtgElyDXhiOxwjLgaUIW6+fd8LQJA8pC4mkq7Q/RJmD9RZO1 ghxOnOf1Z6kcwo7vyPT2QcSEmfYEnAfmVw7SI= MIME-Version: 1.0 Received: by 10.236.184.74 with SMTP id r50mr410623yhm.189.1311256154308; Thu, 21 Jul 2011 06:49:14 -0700 (PDT) Received: by 10.236.178.6 with HTTP; Thu, 21 Jul 2011 06:49:14 -0700 (PDT) In-Reply-To: References: <201107201536.01392.helmut.schaa@googlemail.com> <201107201709.42141.helmut.schaa@googlemail.com> Date: Thu, 21 Jul 2011 15:49:14 +0200 Message-ID: Subject: Re: rt2x00, AP mode, 802.11n is not working properly From: Helmut Schaa To: Stanislav Demakov Cc: linux-wireless@vger.kernel.org, users@rt2x00.serialmonkey.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.6 (demeter2.kernel.org [140.211.167.43]); Thu, 21 Jul 2011 13:49:17 +0000 (UTC) On Thu, Jul 21, 2011 at 1:53 PM, Stanislav Demakov wrote: > So eventually, are you going to fix or discover this bug yourself? Please try this on top of a current compat-wireless. It improved STA mode stability in rt2800usb for me quite a bit. But this is not a valid fix, it's just for tracking down the problem a bit further. Thanks, Helmut --- -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 1ac1f39..3d9d152 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -4194,8 +4194,7 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) /* * Disable powersaving as default on PCI devices. */ - if (rt2x00_is_pci(rt2x00dev) || rt2x00_is_soc(rt2x00dev)) - rt2x00dev->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; + rt2x00dev->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT; /* * Initialize all hw fields. diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index f9c58cd..602677c 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c @@ -527,7 +527,7 @@ static void rt2800usb_txdone(struct rt2x00_dev *rt2x00dev) entry = NULL; while (!rt2x00queue_empty(queue)) { entry = rt2x00queue_get_entry(queue, Q_INDEX_DONE); - if (rt2800usb_txdone_entry_check(entry, reg)) + /*if (rt2800usb_txdone_entry_check(entry, reg))*/ break; } @@ -820,7 +820,7 @@ static const struct data_queue_desc rt2800usb_queue_rx = { }; static const struct data_queue_desc rt2800usb_queue_tx = { - .entry_num = 64, + .entry_num = 8, .data_size = AGGREGATION_SIZE, .desc_size = TXINFO_DESC_SIZE + TXWI_DESC_SIZE, .priv_size = sizeof(struct queue_entry_priv_usb),