From patchwork Fri Aug 25 02:30:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mitsyanko X-Patchwork-Id: 9921203 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B65CE600C5 for ; Fri, 25 Aug 2017 02:31:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F7C1205A4 for ; Fri, 25 Aug 2017 02:31:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94000205AF; Fri, 25 Aug 2017 02:31:45 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 08B06205A4 for ; Fri, 25 Aug 2017 02:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754462AbdHYCaw (ORCPT ); Thu, 24 Aug 2017 22:30:52 -0400 Received: from mail-cys01nam02on0041.outbound.protection.outlook.com ([104.47.37.41]:61440 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754347AbdHYCau (ORCPT ); Thu, 24 Aug 2017 22:30:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/RAs3RpxXzxNGUFoO/CLjmy2ued7jV3x/AZIQejaOQw=; b=zExcPZNPMhI7IzSpGGDXz2Its57rqXyvjCb2XAzXy9oyYRhNP2GAIJYVjH2W/elm3o9smo2Ggcmobhe2z4IEM/SAyy8CFzzWuFxi1IE7Th9uAVCgQl8S3/zyKOqgoZR3mynk3qibCoKChRp4O24CuJnzj+ffZ2cfg2q6SaCn8a0= Received: from dodo-dell.quantenna.com (12.131.200.68) by SN1PR0501MB2047.namprd05.prod.outlook.com (10.163.227.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.4; Fri, 25 Aug 2017 02:30:47 +0000 From: igor.mitsyanko.os@quantenna.com To: linux-wireless@vger.kernel.org Cc: sergey.matyukevich.os@quantenna.com, avinashp@quantenna.com, johannes@sipsolutions.net, Igor Mitsyanko Subject: [PATCH 04/27] qtnfmac: do not cache AP settings in driver structures Date: Thu, 24 Aug 2017 19:30:01 -0700 Message-Id: <20170825023024.10565-5-igor.mitsyanko.os@quantenna.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170825023024.10565-1-igor.mitsyanko.os@quantenna.com> References: <20170825023024.10565-1-igor.mitsyanko.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [12.131.200.68] X-ClientProxiedBy: CY4PR15CA0017.namprd15.prod.outlook.com (10.172.74.27) To SN1PR0501MB2047.namprd05.prod.outlook.com (10.163.227.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8957c2be-a6f3-47ee-51f5-08d4eb614bb2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN1PR0501MB2047; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0501MB2047; 3:7Frck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bKspiTtsx6OGnGT4/XwlGQIDSMNccY07e2JDkoncgb9dmMz1SEt0LUdkcq3ln+mFqTpj26ZU+77DNRNt21dw/LWuAlbCZ9UlXkry9lLQoaHx+aIJBfG+kqmBcoxZtLLoQmJ+kx0wHb83/VNDbyeI3BL+Mq4tvEWraV1KM94nRGem2LtXzJ79xqbHNrZRvQpYqPU6N6QETwlJw76IwDGN07BJiXcrEnowe20PwOwAox8HTfWxl1tPKpK0oE1IrmXZ81S6P2IaJY54EdS/OsXSydXV1Ven5rJ+vdQXBHcu6YWfzJTUooTj26dxAkEC2zZ6xiN42LjTgZx/WdgeLrd2vGVnbVb9uusbNdjG589RCNyMTDXqNjNmMYHXcvFxh0ViJLAuKZIVpdCJk/BcJw5L3qrYL40gYeOj+b0j9ABPXtNt1aZtPF+cGh6OEzlrSZfSOkaAlXiPY=; 4:UITcW76qcjNKyzdOURz3MBqNoJ/gO0+NoQ1yh+Y+ItpoZtAXLnTJX+8pDuUrTkUVHcBjfMdODRwY4BP5Rraf3Ch//FjeY8bWCB8NedeuYMqXfvDYf6xCd+FWAPYfguGoztLS3eLWOGvttwBteFPaRMJh4IoBPkJhoQmCp7CMACHSmE7e0wbViqrsOmzHu+0xPRw3nFYNREmJwwDL5Gw7Aar99fjaWcJwzP9lTYH9sDuTXufupV76WCA77GV/iDZo X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR0501MB2047; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR0501MB2047; X-Forefront-PRVS: 041032FF37 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(979002)(6009001)(39830400002)(199003)(189002)(76176999)(53416004)(50986999)(110136004)(7350300001)(6916009)(6666003)(2950100002)(47776003)(2906002)(9686003)(53936002)(66066001)(2361001)(106356001)(105586002)(2351001)(86362001)(305945005)(33646002)(7736002)(42186005)(81166006)(81156014)(107886003)(8676002)(103116003)(478600001)(85782001)(68736007)(50226002)(50466002)(3846002)(6486002)(25786009)(36756003)(97736004)(5660300001)(1076002)(6116002)(69596002)(5003940100001)(101416001)(4326008)(189998001)(48376002)(85772001)(309714004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0501MB2047; H:dodo-dell.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=igor.mitsyanko.os@quantenna.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0501MB2047; 23:QuiWZvNaHzBmN5nS0ULjW3Y3tDTcgPvLPGphxl8?= =?us-ascii?Q?w1C+K1e32Soe2uUUUcV/Hrhbnvg941gMhantfShyIdkBrJl4QJ1v1kTNfZ+7?= =?us-ascii?Q?YGW/Yi1pj2WHq8WYBxyJ1NWHMxwS2qD5KqGWAPPj4ZLEWYP/9VPBJFYJ5PaZ?= =?us-ascii?Q?VoTDb2s8GtzWMO5LY5neZQU+o0WfrBiM75QtswU2B4cRkzN811mjogHjY/bG?= =?us-ascii?Q?nON8E1JzV0nC9BLTzdFnsiV0ntY4banLFuG+crrK6Lo/6JRN98HV3OCdFDPz?= =?us-ascii?Q?8orwaVE9wzLo6tlSwU479AeKhmSnD4qt4Ops85kpGnFOIwoo821o9uNyK1qC?= =?us-ascii?Q?U1IgWghzCzk+smEPQgsA2gqQPCRDtovSNoot54zAph6Ih1s3S7snKfmdiLY5?= =?us-ascii?Q?PCz5RSAXz5cwSVXmnefDFJk7bYdntknGNcDWojNBzxRA1CX7asLdzGkL1o+e?= =?us-ascii?Q?b8LqRzztA24aSpeTTo851PzrWLgKcV9p1goGw8MPCoVhNnduNO90HhgL1oyH?= =?us-ascii?Q?FwLSh7jtr2THbu+tiMijciX9F6Bit0str7pTdjTssZAM1+BEVBzA5Fmp+NPv?= =?us-ascii?Q?5QDnm5I75Uswu2Z0lwn8SOOaimkKiOC816tyvKl+IIoKczbmpt0FswfGVO8s?= =?us-ascii?Q?claOXBCgEbdypoTMgsOmFNmmC6ObP0AkY7Hq45jbv3yF0zykwcPC3P7gI31i?= =?us-ascii?Q?3oN9sKBk7TYLOCG2mtDTwchLju9uJMWVtoP0LH4oAtNhDW2ku7B1zYAs0GDM?= =?us-ascii?Q?R4m2prYfa/+DqGGldwu6ijj9WmKWPKJynNI3qrfUxeAsl/f/REv0ezQp1vH6?= =?us-ascii?Q?n4Eldi6eXG4CwI8V4F8+49RKNTp2tgyCtQpBRbK6Exhg4asiwUhgdUptqKzW?= =?us-ascii?Q?mFIH+J9bG71Ar+SLnyLzranECd1hRus7zuX4gJ8/9EbOrDQ3OwR14axEERJU?= =?us-ascii?Q?eTbahuriXIZswpmjfniyAji2toF6JE9eJdLXplpVBaR3+OXWV09+nvtsluuW?= =?us-ascii?Q?HMeCFl2n8KwP8Em81qnib2udaOhYAfuwh/PEJjNa6iRewacQpincgwmB+S8h?= =?us-ascii?Q?6gL/2bxqvem7iAYn3GnlgeKwZoCYRbMFQPXkvRq8pMiKxwh09POoSuff3p5n?= =?us-ascii?Q?yuCjyqT1PpUSJTIE8q/LIayncbo/PO6gAHCDxLtj8hwrlMMNM5u26j2Pb7qK?= =?us-ascii?Q?qxXzl8eMukvDc53CeS6/qVlR7wdf8P+HdkToLb1nOTvqTKd7sM28e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K3oFk/wH0S8rU9XeltGN0aIU+6+d4B2sya3kWYJlusI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 02:30:47.4789 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0501MB2047 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 From: Igor Mitsyanko Cached AP setings are passed to WiFi card right away and never used. Signed-off-by: Igor Mitsyanko --- drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 17 +-------- drivers/net/wireless/quantenna/qtnfmac/commands.c | 46 +++++++++++------------ drivers/net/wireless/quantenna/qtnfmac/commands.h | 3 +- 3 files changed, 25 insertions(+), 41 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index 8bfe61d..f6eb681 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -267,7 +267,6 @@ static int qtnf_start_ap(struct wiphy *wiphy, struct net_device *dev, { struct qtnf_vif *vif = qtnf_netdev_get_priv(dev); struct qtnf_wmac *mac = wiphy_priv(wiphy); - struct qtnf_bss_config *bss_cfg; int ret; if (!cfg80211_chandef_identical(&mac->chandef, &settings->chandef)) { @@ -278,21 +277,7 @@ static int qtnf_start_ap(struct wiphy *wiphy, struct net_device *dev, settings->chandef.chan->center_freq); } - bss_cfg = &vif->bss_cfg; - memset(bss_cfg, 0, sizeof(*bss_cfg)); - - bss_cfg->bcn_period = settings->beacon_interval; - bss_cfg->dtim = settings->dtim_period; - bss_cfg->auth_type = settings->auth_type; - bss_cfg->privacy = settings->privacy; - - bss_cfg->ssid_len = settings->ssid_len; - memcpy(&bss_cfg->ssid, settings->ssid, bss_cfg->ssid_len); - - memcpy(&bss_cfg->crypto, &settings->crypto, - sizeof(struct cfg80211_crypto_settings)); - - ret = qtnf_cmd_send_config_ap(vif); + ret = qtnf_cmd_send_config_ap(vif, settings); if (ret) { pr_err("VIF%u.%u: failed to push config to FW\n", vif->mac->macid, vif->vifid); diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index 806b88b..b498019 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -181,10 +181,10 @@ int qtnf_cmd_send_start_ap(struct qtnf_vif *vif) return ret; } -int qtnf_cmd_send_config_ap(struct qtnf_vif *vif) +int qtnf_cmd_send_config_ap(struct qtnf_vif *vif, + const struct cfg80211_ap_settings *s) { struct sk_buff *cmd_skb; - struct qtnf_bss_config *bss_cfg = &vif->bss_cfg; struct cfg80211_chan_def *chandef = &vif->mac->chandef; struct qlink_tlv_channel *qchan; struct qlink_auth_encr aen; @@ -200,11 +200,13 @@ int qtnf_cmd_send_config_ap(struct qtnf_vif *vif) qtnf_bus_lock(vif->mac->bus); - qtnf_cmd_skb_put_tlv_arr(cmd_skb, WLAN_EID_SSID, bss_cfg->ssid, - bss_cfg->ssid_len); + if (s->ssid && s->ssid_len > 0 && s->ssid_len <= IEEE80211_MAX_SSID_LEN) + qtnf_cmd_skb_put_tlv_arr(cmd_skb, WLAN_EID_SSID, s->ssid, + s->ssid_len); + qtnf_cmd_skb_put_tlv_u16(cmd_skb, QTN_TLV_ID_BCN_PERIOD, - bss_cfg->bcn_period); - qtnf_cmd_skb_put_tlv_u8(cmd_skb, QTN_TLV_ID_DTIM, bss_cfg->dtim); + s->beacon_interval); + qtnf_cmd_skb_put_tlv_u8(cmd_skb, QTN_TLV_ID_DTIM, s->dtim_period); qchan = skb_put_zero(cmd_skb, sizeof(*qchan)); qchan->hdr.type = cpu_to_le16(QTN_TLV_ID_CHANNEL); @@ -214,26 +216,22 @@ int qtnf_cmd_send_config_ap(struct qtnf_vif *vif) ieee80211_frequency_to_channel(chandef->chan->center_freq)); memset(&aen, 0, sizeof(aen)); - aen.auth_type = bss_cfg->auth_type; - aen.privacy = !!bss_cfg->privacy; - aen.mfp = bss_cfg->mfp; - aen.wpa_versions = cpu_to_le32(bss_cfg->crypto.wpa_versions); - aen.cipher_group = cpu_to_le32(bss_cfg->crypto.cipher_group); - aen.n_ciphers_pairwise = cpu_to_le32( - bss_cfg->crypto.n_ciphers_pairwise); + aen.auth_type = s->auth_type; + aen.privacy = !!s->privacy; + aen.mfp = 0; + aen.wpa_versions = cpu_to_le32(s->crypto.wpa_versions); + aen.cipher_group = cpu_to_le32(s->crypto.cipher_group); + aen.n_ciphers_pairwise = cpu_to_le32(s->crypto.n_ciphers_pairwise); for (i = 0; i < QLINK_MAX_NR_CIPHER_SUITES; i++) - aen.ciphers_pairwise[i] = cpu_to_le32( - bss_cfg->crypto.ciphers_pairwise[i]); - aen.n_akm_suites = cpu_to_le32( - bss_cfg->crypto.n_akm_suites); + aen.ciphers_pairwise[i] = + cpu_to_le32(s->crypto.ciphers_pairwise[i]); + aen.n_akm_suites = cpu_to_le32(s->crypto.n_akm_suites); for (i = 0; i < QLINK_MAX_NR_AKM_SUITES; i++) - aen.akm_suites[i] = cpu_to_le32( - bss_cfg->crypto.akm_suites[i]); - aen.control_port = bss_cfg->crypto.control_port; - aen.control_port_no_encrypt = - bss_cfg->crypto.control_port_no_encrypt; - aen.control_port_ethertype = cpu_to_le16(be16_to_cpu( - bss_cfg->crypto.control_port_ethertype)); + aen.akm_suites[i] = cpu_to_le32(s->crypto.akm_suites[i]); + aen.control_port = s->crypto.control_port; + aen.control_port_no_encrypt =s->crypto.control_port_no_encrypt; + aen.control_port_ethertype = + cpu_to_le16(be16_to_cpu(s->crypto.control_port_ethertype)); qtnf_cmd_skb_put_tlv_arr(cmd_skb, QTN_TLV_ID_CRYPTO, (u8 *)&aen, sizeof(aen)); diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.h b/drivers/net/wireless/quantenna/qtnfmac/commands.h index e1bcb83..634b057 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.h +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.h @@ -33,7 +33,8 @@ int qtnf_cmd_send_del_intf(struct qtnf_vif *vif); int qtnf_cmd_get_mac_chan_info(struct qtnf_wmac *mac, struct ieee80211_supported_band *band); int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2); -int qtnf_cmd_send_config_ap(struct qtnf_vif *vif); +int qtnf_cmd_send_config_ap(struct qtnf_vif *vif, + const struct cfg80211_ap_settings *s); int qtnf_cmd_send_start_ap(struct qtnf_vif *vif); int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif); int qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg);