From patchwork Wed May 6 13:20:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Pierre TOSONI X-Patchwork-Id: 6349621 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D1DF89F373 for ; Wed, 6 May 2015 13:20:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 00113202EC for ; Wed, 6 May 2015 13:20:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CBCF2201FE for ; Wed, 6 May 2015 13:20:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751135AbbEFNUZ (ORCPT ); Wed, 6 May 2015 09:20:25 -0400 Received: from smtp05.msg.oleane.net ([62.161.4.5]:35627 "EHLO smtp05.msg.oleane.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750965AbbEFNUY convert rfc822-to-8bit (ORCPT ); Wed, 6 May 2015 09:20:24 -0400 Received: from acksys.fr ([195.6.104.67]) (authenticated) by smtp05.msg.oleane.net (MTA) with ESMTP id t46DKLh8012682 for ; Wed, 6 May 2015 15:20:21 +0200 Content-class: urn:content-classes:message Subject: [RFC] ath9k: allow up to 8 access point vifs on DFS channels Date: Wed, 6 May 2015 15:20:19 +0200 Message-ID: <773DB8A82AB6A046AE0195C68612A31901A7192A@sbs2003.acksys.local> MIME-Version: 1.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] ath9k: allow up to 8 access point vifs on DFS channels X-MimeOLE: Produced By Microsoft Exchange V6.5.7235.2 Thread-Index: AdCH/zUX9yS6rF7QR7qDjqf01aTV5w== From: "Jean-Pierre TOSONI" To: X-Backend: vm-smtp-sophos16v3 X-PMX-Spam: Probability=8% X-PFSI-Info: PMX 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.5.6.130915 (no antivirus check) X-Orange-Auth: bWMxNDg4LTg= 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Allow the combination of 8 (AP + mesh) interfaces on radar channels Tested with hostapd, 2 and 8 BSSIDs, 1 or 2 DFS channels, BW 20 MHz TODO: test AP+mesh combination TODO: test 40 MHz BW --- This patch was done with quilt on Openwrt against compat-wireless 2014-11-04 BIT(NL80211_CHAN_WIDTH_40), } --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -723,6 +723,14 @@ static const struct ieee80211_iface_limi BIT(NL80211_IFTYPE_ADHOC) }, }; +static const struct ieee80211_iface_limit if_dfs_limits_mvap[] = { + { .max = 8, .types = +#ifdef CPTCFG_MAC80211_MESH + BIT(NL80211_IFTYPE_MESH_POINT) | +#endif + BIT(NL80211_IFTYPE_AP) }, +}; + static const struct ieee80211_iface_combination if_comb[] = { { .limits = if_limits, @@ -746,6 +754,16 @@ static const struct ieee80211_iface_comb .num_different_channels = 1, .beacon_int_infra_match = true, .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | + BIT(NL80211_CHAN_WIDTH_20) | + BIT(NL80211_CHAN_WIDTH_40), + }, + { + .limits = if_dfs_limits_mvap, + .n_limits = ARRAY_SIZE(if_dfs_limits_mvap), + .max_interfaces = 8, + .num_different_channels = 1, + .beacon_int_infra_match = true, + .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | BIT(NL80211_CHAN_WIDTH_20) |