From patchwork Mon Jun 25 17:01:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seth Forshee X-Patchwork-Id: 167171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id ECD58B6FAC for ; Tue, 26 Jun 2012 03:01:58 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SjCfb-0002cN-F3; Mon, 25 Jun 2012 17:01:47 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SjCfZ-0002cI-HU for kernel-team@lists.ubuntu.com; Mon, 25 Jun 2012 17:01:45 +0000 Received: from 64-126-113-183.dyn.everestkc.net ([64.126.113.183] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SjCfZ-0007tJ-8P for kernel-team@lists.ubuntu.com; Mon, 25 Jun 2012 17:01:45 +0000 From: Seth Forshee To: kernel-team@lists.ubuntu.com Subject: [pull-request][Quantal] brcmsmac regulatory rework Date: Mon, 25 Jun 2012 12:01:33 -0500 Message-Id: <1340643703-22932-1-git-send-email-seth.forshee@canonical.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com brcmsmac has it's own internal implementation for adhering to regulatory rules governing wireless spectrum use. This is an inferior duplication of the support contained in mac80211. These two implementations can be in conflict, causing wireless frequencies that should be usable to be disabled. These patches represent an extensive rewrite of brcmsmac's regulatory support to remove the internal implementation and integrate with the support in mac80211. These are all clean cherry-picks from wireless-testing. I've been testing the patches for the past couple of months while working to get them accepted upstream. I'm proposing we pick them up for quantal to increase test coverage and to improve the behavior of brcmsmac if we end up releasing with a 3.5 kernel. The pull request follows. I'm also sending the patches to ease reviewing. Thanks, Seth The following changes since commit ee611cc51e4f742d0d950cbf631cfff694395f8a: UBUNTU: Ubuntu-3.5.0-1.1 (2012-06-19 00:03:29 -0700) are available in the git repository at: git://kernel.ubuntu.com/sforshee/ubuntu-quantal.git lp950320 for you to fetch changes up to 505c3befd7de19832411022aa2d96ff133eab6d0: UBUNTU: SAUCE: (drop after 3.5) brcmsmac: fix NULL pointer crash in brcms_c_regd_init() (2012-06-25 10:59:43 -0500) ---------------------------------------------------------------- Arend van Spriel (1): UBUNTU: SAUCE: (drop after 3.5) brcmsmac: fix NULL pointer crash in brcms_c_regd_init() Seth Forshee (9): UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: don't set up tx power limits during initialization UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: always set channel specified by mac80211 UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: remove unused code for 40MHz channels UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: clean up channel.c UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: inform mac80211 of the X2 regulatory domain UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: enable/disable radio on regulatory updates UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: use mac80211 channel data for tx power limits UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: don't validate channels against internal regulatory data UBUNTU: SAUCE: (drop after 3.5) brcm80211: smac: use current regulatory domain when checking whether OFDM is allowed drivers/net/wireless/brcm80211/brcmsmac/channel.c | 1226 ++++---------------- drivers/net/wireless/brcm80211/brcmsmac/channel.h | 4 +- .../net/wireless/brcm80211/brcmsmac/mac80211_if.c | 2 + drivers/net/wireless/brcm80211/brcmsmac/main.c | 36 +- 4 files changed, 266 insertions(+), 1002 deletions(-)