From patchwork Wed Dec 17 16:00:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arik Nemtsov X-Patchwork-Id: 5507701 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7268C9F1CD for ; Wed, 17 Dec 2014 16:00:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A28E120A22 for ; Wed, 17 Dec 2014 16:00:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39786209E1 for ; Wed, 17 Dec 2014 16:00:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751163AbaLQQAq (ORCPT ); Wed, 17 Dec 2014 11:00:46 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:60138 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbaLQQAq (ORCPT ); Wed, 17 Dec 2014 11:00:46 -0500 Received: by mail-wi0-f169.google.com with SMTP id r20so17464421wiv.4 for ; Wed, 17 Dec 2014 08:00:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XMGbUVmw98mlnVhKEycfgKYBFFqY0oXwtygxAlWv9J0=; b=XIh7hjgEVjSDmKMxMcjMFCIDOyaQhDkOez9SjEFAf+Ug5paSWtaLd8jkAm5RsAFUYb caZwV6TAwgIUbdhBmz/0gWFDWXxCFd/I7PxYjwfn3F/73oMiqjxphaLP1LqCDGmKgFrj r9Zm1TZ6zMJY8rASuQ677jVesRHVEMBOROB0ZOZh3mbnkAP3ogv8Q/wJzfDfAOcA7qBL TQE77qp83F7t+OXOKeIMbyd7fR7pxeyFjIr4jJgIN50cReOarW1qrY7FSqSRHTHBhElT blu3PzBqWI1G7ae/5kl1uN7jFWPZR164+PNmx2EEZwXmzGLH2Yv5viFEhftSAk/h0TYu U06g== X-Gm-Message-State: ALoCoQkhNyg/cgidaL/mU4Igm9F9IzzZScI+jAht87qKRBiyFUrE8sPRmrVlUtB0ATCtS/4VzMKh X-Received: by 10.180.20.106 with SMTP id m10mr15902724wie.1.1418832044483; Wed, 17 Dec 2014 08:00:44 -0800 (PST) Received: from athena.amr.corp.intel.com (85-250-108-142.bb.netvision.net.il. [85.250.108.142]) by mx.google.com with ESMTPSA id b10sm6635803wiw.9.2014.12.17.08.00.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 08:00:43 -0800 (PST) From: Arik Nemtsov To: Cc: Johannes Berg , "Luis R. Rodriguez" , Arik Nemtsov Subject: [PATCH] nl80211: increase the max number of rules in regdomain Date: Wed, 17 Dec 2014 18:00:44 +0200 Message-Id: <1418832044-25582-1-git-send-email-arik@wizery.com> X-Mailer: git-send-email 1.9.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=-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 Some network cards (Intel) produce per-channel regdomains and rely on cfg80211 to merge rules as needed. This hits the max rules limit and fails. Signed-off-by: Arik Nemtsov --- include/uapi/linux/nl80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index c0383e9..18cb0aa 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -2112,7 +2112,7 @@ enum nl80211_attrs { #define NL80211_MAX_SUPP_RATES 32 #define NL80211_MAX_SUPP_HT_RATES 77 -#define NL80211_MAX_SUPP_REG_RULES 32 +#define NL80211_MAX_SUPP_REG_RULES 64 #define NL80211_TKIP_DATA_OFFSET_ENCR_KEY 0 #define NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY 16 #define NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY 24