From patchwork Wed Oct 17 19:33:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Prestwood X-Patchwork-Id: 10646025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF097157A for ; Wed, 17 Oct 2018 19:29:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB4B12870C for ; Wed, 17 Oct 2018 19:29:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE1682870F; Wed, 17 Oct 2018 19:29:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69CC92870C for ; Wed, 17 Oct 2018 19:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728192AbeJRD0j (ORCPT ); Wed, 17 Oct 2018 23:26:39 -0400 Received: from mga17.intel.com ([192.55.52.151]:10315 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727128AbeJRD0j (ORCPT ); Wed, 17 Oct 2018 23:26:39 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2018 12:29:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,393,1534834800"; d="scan'208";a="266547712" Received: from jprestwo.jf.intel.com ([10.54.74.38]) by orsmga005.jf.intel.com with ESMTP; 17 Oct 2018 12:29:29 -0700 From: James Prestwood To: linux-wireless@vger.kernel.org Cc: James Prestwood Subject: [PATCH v2 0/2] Configuring iftype/cipher support Date: Wed, 17 Oct 2018 12:33:05 -0700 Message-Id: <20181017193307.1780-1-james.prestwood@linux.intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is V2 of my original patch, but a lot has changed: - (extended) feature support has been completely removed due to (extended) features being set in core driver code. There was no way to set all (extended) features in JUST mac80211_hwsim. - Iftype support was changed to a bit mask, and checks were added to ensure only iftypes that mac80211_hwsim already supported were allowed to be enabled/disabled. The interface limit rules are now built dynamically rather than being static structures. This was done because limit verification code complains if you have a limit rule for an iftype that you do not support. - A new patch was added to allow supported ciphers to be configured. James Prestwood (2): mac80211_hwsim: allow setting iftype support mac80211_hwsim: allow configurable cipher types drivers/net/wireless/mac80211_hwsim.c | 218 ++++++++++++++++++-------- drivers/net/wireless/mac80211_hwsim.h | 4 + 2 files changed, 156 insertions(+), 66 deletions(-)