From patchwork Wed Nov 12 08:40:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 5286471 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 31F91C11AC for ; Wed, 12 Nov 2014 08:40:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 743CE20155 for ; Wed, 12 Nov 2014 08:40:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D3D920165 for ; Wed, 12 Nov 2014 08:40:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644AbaKLIkd (ORCPT ); Wed, 12 Nov 2014 03:40:33 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:58180 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbaKLIkc (ORCPT ); Wed, 12 Nov 2014 03:40:32 -0500 Received: by mail-pa0-f51.google.com with SMTP id kq14so12406820pab.24 for ; Wed, 12 Nov 2014 00:40:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Fp7ESI54POM2ACHzDSjnCfuMkQ35a0IHqCVuC1cOVzg=; b=Z7wsfCyYHV/1l/K/CG7Q27FN2jf5/ZLsj9EzF/xZMMlWwEl1yJqFap5da5kVEMyt3B J9pK748oM6+tEZoXceCGBLcP9A+xbGzZ2D85hF7m2O2HjubyMCnE8vPdRMTjwQWdGgrV Pp7UkULy9eTUlJqBFDuqK343HY3k1jtuwaXU1nmswNlqp7P1BCurHZMT2Y1f1YRdDd/I iRVpJZEambYv/mQyF+iKwxus0/G2y1sABSLCFKEe/gf3AvLxTA4tNmaJGlQLaxp7p+rd jMuJNNhkIkgoEF4y5vTPj+efnfoUhAkAbAzdcdeT7y8DUEDO8/D13041Wp1Ir69iuWwI QdHg== X-Received: by 10.68.201.130 with SMTP id ka2mr45879705pbc.112.1415781632315; Wed, 12 Nov 2014 00:40:32 -0800 (PST) Received: from localhost.localdomain ([58.26.233.145]) by mx.google.com with ESMTPSA id hb6sm21467548pbc.31.2014.11.12.00.40.30 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Nov 2014 00:40:31 -0800 (PST) From: Chun-Yeow Yeoh To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, ath9k-devel@lists.ath9k.org, Chun-Yeow Yeoh Subject: [PATCH] ath9k: fix the assignment of hw queues for mesh interface Date: Wed, 12 Nov 2014 16:40:19 +0800 Message-Id: <1415781619-4384-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 2.1.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We need to assign the hw queues for mesh interface. Otherwise, we are not able to bring up the mesh interface due to the IEEE80211_INVAL_HW_QUEUE error. Signed-off-by: Chun-Yeow Yeoh --- drivers/net/wireless/ath/ath9k/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 644552c..88a5cf2 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -1188,7 +1188,8 @@ static void ath9k_assign_hw_queues(struct ieee80211_hw *hw, for (i = 0; i < IEEE80211_NUM_ACS; i++) vif->hw_queue[i] = i; - if (vif->type == NL80211_IFTYPE_AP) + if (vif->type == NL80211_IFTYPE_AP || + vif->type == NL80211_IFTYPE_MESH_POINT) vif->cab_queue = hw->queues - 2; else vif->cab_queue = IEEE80211_INVAL_HW_QUEUE;