From patchwork Sat Sep 25 08:18:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 208772 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 o8P8LvPm004977 for ; Sat, 25 Sep 2010 08:21:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383Ab0IYITu (ORCPT ); Sat, 25 Sep 2010 04:19:50 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:57168 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017Ab0IYITr (ORCPT ); Sat, 25 Sep 2010 04:19:47 -0400 Received: by fxm3 with SMTP id 3so1117113fxm.19 for ; Sat, 25 Sep 2010 01:19:46 -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=As0WZdjQa1kJCattC0bVfD3vnfA34SVxrF9c7GeTEjM=; b=iEGq+99/9nQOlfqmZmBPYaG8bm5ZvPopH0/hveq8z6y4QvaIHHjQCXogC2sZm9Jz+6 1GZby0qVO3nEx/FbfobfUNRs5S4b4QAh3icrENFPEq5KVkXXkUieYBcMt6mr4Vxmq+RU 6TcLkh0IPW3cQfWDkOAghwxRBNk81BRPznm5Q= 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=JL0S6e8h1IWQmhSHpjCBMb9aabXG4Kp+fwj71T5TZD5RfQcs2vuf83LtWxo8vtC49w 4C4m2m58CAWBaaD+aepOwFTVgAFxLO44zAycAdFFMRrUWX5a4W0ne1p4gpQAJKcl0+Py lLjuNnzYX30MQdArasoM0Z9aRvDPZjTubYtZ0= Received: by 10.223.105.78 with SMTP id s14mr3128214fao.1.1285402786493; Sat, 25 Sep 2010 01:19:46 -0700 (PDT) Received: from helmutmobil.site (p5495C191.dip.t-dialin.net [84.149.193.145]) by mx.google.com with ESMTPS id c20sm1402541fak.9.2010.09.25.01.19.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 25 Sep 2010 01:19:45 -0700 (PDT) From: Helmut Schaa To: Joshua Smith Subject: Re: Question about starting up an AP Date: Sat, 25 Sep 2010 10:18:56 +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: <201009251018.56907.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:21:57 +0000 (UTC) diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 053fdd3..193fada 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c @@ -909,10 +909,8 @@ int rt2x00lib_start(struct rt2x00_dev *rt2x00dev) /* Enable the radio */ retval = rt2x00lib_enable_radio(rt2x00dev); - if (retval) { - rt2x00queue_uninitialize(rt2x00dev); + if (retval) return retval; - } set_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags);