From patchwork Tue Apr 1 05:13:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Kulakowski X-Patchwork-Id: 3918921 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 0E5A1BF540 for ; Tue, 1 Apr 2014 05:13:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2DA49203C4 for ; Tue, 1 Apr 2014 05:13:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 49650203B8 for ; Tue, 1 Apr 2014 05:13:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751233AbaDAFNh (ORCPT ); Tue, 1 Apr 2014 01:13:37 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:37517 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbaDAFNg (ORCPT ); Tue, 1 Apr 2014 01:13:36 -0400 Received: by mail-wi0-f179.google.com with SMTP id z2so2644416wiv.0 for ; Mon, 31 Mar 2014 22:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=UTysoPoKgTPZyWDK51EW6hrXDc1hT7k2FbPDje8NacA=; b=E4F6zgpCpRVH13h25dQ8DCvYvxfJ7a496BSs3srDLsoq4Ob2atNmkWEacp4L6qfQ2y +Gk+PYl/HuWVX2zak5slVMDyBwvsvq293tvk/eurpNOQQYYZp/hFQF3+AxwIM6gKSVBq VE/RomOPpBOPDuqj3MfKTDn1vj16UMhXrGjkw= 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=UTysoPoKgTPZyWDK51EW6hrXDc1hT7k2FbPDje8NacA=; b=gP8HL5LBTyLXR2zKhlKhMF+Fy8bZ5YzN1ppqF/LViE40T6R+QbH/Hk42lIPzFXlOiq Oxjqcg7ox0jZ6d0LwlrsFg7raxkWIDwG9ZqqEZMq2gCnJ7J+sMxlydd3W7Vj+V89r7Ta pka4iRYIRPXlXCAV3kncl1vLXezI773Y/vwYof1+dqMCEysJBeSmMhKEtUy/V+ANc7MM k1uMgTCJk74F9T/6IILwVn3uIKD9hOTiC4n/uEZ+mfhQa1iPKT3RWOzpsVfaQxvDUZtF 6muuHnk7SW6gEkJFAGtxda8NYirL/Q9jhXXD5FD8Gc0zEJyxporzxkm7uo5LIjvC+wL7 iqaA== X-Gm-Message-State: ALoCoQlfEh8wCdWCQT1bJ540bPMjyJzbZgGNzqWtsOZSk9bGa91cQNdjZo8pmU+IN5eMuqpaaYmJsDKebDUcIs8XbvRSjlAZIvbUk5onHhjE8YWOYZZGBEQ= X-Received: by 10.194.173.193 with SMTP id bm1mr10909688wjc.55.1396329214948; Mon, 31 Mar 2014 22:13:34 -0700 (PDT) Received: from localhost.localdomain ([91.198.246.8]) by mx.google.com with ESMTPSA id m42sm37831454eex.21.2014.03.31.22.13.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 22:13:34 -0700 (PDT) From: Pawel Kulakowski To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, Pawel Kulakowski Subject: [PATCH] mac80211: Allow disabling LDPC Date: Tue, 1 Apr 2014 07:13:21 +0200 Message-Id: <1396329202-2549-1-git-send-email-pawel.kulakowski@tieto.com> X-Mailer: git-send-email 1.7.9.5 X-DomainID: tieto.com 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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 This allows user-space (wpa_supplicant) to disable LDPC coding. Signed-off-by: Pawel Kulakowski --- net/mac80211/ht.c | 4 ++++ net/mac80211/main.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index c150b68..1495b9e 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c @@ -86,6 +86,10 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata, __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, IEEE80211_HT_CAP_MAX_AMSDU); + /* Allow user to disable LDPC */ + __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, + IEEE80211_HT_CAP_LDPC_CODING); + /* Allow user to decrease AMPDU factor */ if (ht_capa_mask->ampdu_params_info & IEEE80211_HT_AMPDU_PARM_FACTOR) { diff --git a/net/mac80211/main.c b/net/mac80211/main.c index b055f6a5..cfc24e9 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -444,7 +444,8 @@ static const struct ieee80211_ht_cap mac80211_ht_capa_mod_mask = { .cap_info = cpu_to_le16(IEEE80211_HT_CAP_SUP_WIDTH_20_40 | IEEE80211_HT_CAP_MAX_AMSDU | IEEE80211_HT_CAP_SGI_20 | - IEEE80211_HT_CAP_SGI_40), + IEEE80211_HT_CAP_SGI_40 | + IEEE80211_HT_CAP_LDPC_CODING), .mcs = { .rx_mask = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, },