From patchwork Fri Dec 17 21:27:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meelis Roos X-Patchwork-Id: 75988 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 50A9C1007D3 for ; Sat, 18 Dec 2010 08:28:01 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756452Ab0LQV1x (ORCPT ); Fri, 17 Dec 2010 16:27:53 -0500 Received: from smtp1.it.da.ut.ee ([193.40.5.66]:50388 "EHLO smtp1.it.da.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751570Ab0LQV1w (ORCPT ); Fri, 17 Dec 2010 16:27:52 -0500 Received: from math.ut.ee (math.ut.ee [193.40.36.2]) by smtp1.it.da.ut.ee (Postfix) with ESMTP id B94686E4E2B; Fri, 17 Dec 2010 23:27:50 +0200 (EET) Received: by math.ut.ee (Postfix, from userid 1014) id C1D6EDAF81; Fri, 17 Dec 2010 23:27:50 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by math.ut.ee (Postfix) with ESMTP id B3B3ADAF80; Fri, 17 Dec 2010 23:27:50 +0200 (EET) Date: Fri, 17 Dec 2010 23:27:50 +0200 (EET) From: Meelis Roos To: David Miller cc: j@w1.fi, netdev@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH] hostap: remove netif_stop_queue from init In-Reply-To: <20101210.094747.193727608.davem@davemloft.net> Message-ID: References: <20101209.195315.193716225.davem@davemloft.net> <20101210.094747.193727608.davem@davemloft.net> User-Agent: Alpine 1.00 (SOC 882 2007-12-20) MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fix runtime warning with backtrace from hostap by removing netif_stop_queue() call before register_netdev. Tested to work fine on hostap_pci Prism 2.5. Signed-off-by: Meelis Roos Acked-by: David S. Miller diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 25a2722..1d9aed6 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c @@ -891,7 +891,6 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local, SET_ETHTOOL_OPS(dev, &prism2_ethtool_ops); - netif_stop_queue(dev); } static int hostap_enable_hostapd(local_info_t *local, int rtnl_locked)