From patchwork Wed Dec 4 10:46:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yeow Yeoh X-Patchwork-Id: 3281811 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 08A2FC0D4A for ; Wed, 4 Dec 2013 10:47:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E18332047C for ; Wed, 4 Dec 2013 10:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A149A20453 for ; Wed, 4 Dec 2013 10:47:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755318Ab3LDKrc (ORCPT ); Wed, 4 Dec 2013 05:47:32 -0500 Received: from mail-pd0-f171.google.com ([209.85.192.171]:48335 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754615Ab3LDKrb (ORCPT ); Wed, 4 Dec 2013 05:47:31 -0500 Received: by mail-pd0-f171.google.com with SMTP id z10so22139160pdj.30 for ; Wed, 04 Dec 2013 02:47:31 -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=gxlkTVloNFDT/JPYv4VTGninS4vIdTnta9ETqJR4Xzw=; b=AF/jx0jBkzl5HGHZeU1HYRCMgxc8/RejKvJFcqnhTohmtGYes/Wow8kJ8amTo+pMzu IhWiIFCAbG2NYjdQK/FBQO8mBStY3I9z+5Y6FwGWRhpQ2+M5nvqB//fUmWHGfAxtoba9 QeGgq8Xv2L/2EUxtOf8JYVeFCmH5N5f6UUtCIUgyowM5vqlJT2HcC6YBvTjTwu0j6zJs KW6RxjEXrVhBc90NhVswX4dckNHek7zF4tYgFVhuepuh0GH9xb6uhAa/YaSCwbtG8IVF afCMgXiEXKXEp3xVDVqj3TunCN1yZ8CwISlz9pxLseT3rz0hNRTLWv5jWlr+c7Dfb3e5 jGzg== X-Received: by 10.66.123.5 with SMTP id lw5mr79875538pab.83.1386154051475; Wed, 04 Dec 2013 02:47:31 -0800 (PST) Received: from localhost.localdomain ([58.26.233.145]) by mx.google.com with ESMTPSA id b3sm8989863pbu.38.2013.12.04.02.47.22 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 02:47:30 -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: enable dfs for mesh mode Date: Wed, 4 Dec 2013 18:46:54 +0800 Message-Id: <1386154014-24054-1-git-send-email-yeohchunyeow@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 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 Signed-off-by: Chun-Yeow Yeoh --- drivers/net/wireless/ath/ath9k/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 8f4c167..5a0b7e8 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -856,6 +856,9 @@ static const struct ieee80211_iface_limit if_limits[] = { static const struct ieee80211_iface_limit if_dfs_limits[] = { { .max = 1, .types = BIT(NL80211_IFTYPE_AP) | +#ifdef CONFIG_MAC80211_MESH + BIT(NL80211_IFTYPE_MESH_POINT) | +#endif BIT(NL80211_IFTYPE_ADHOC) }, };