Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1821101imm; Mon, 3 Sep 2018 10:17:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbCsGA/Bxp+qxHQ1m9efE809yp/XZI/StpdJd/YMtCsAbtCdMs+A5fbqClD9lM3+Q0i6KA0 X-Received: by 2002:a63:6c89:: with SMTP id h131-v6mr19254318pgc.237.1535995047932; Mon, 03 Sep 2018 10:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995047; cv=none; d=google.com; s=arc-20160816; b=jD//wSUYTmyKB7yPRM7vXyWWOUnXyYS6hVdE9LBc0eAjwoJKwg70gujPK4jp31EHRs jJ5fQHVJdFQHVBNNKXda035ITrDPj5yxup3mi84dRGV1oV29nLoWwCz5JvWA/eFIll9A 9EHMX5duIGA6dOiUXLw6/7SeMbL3QUR/3dn51Dc2+gkZNtl1BVCj35Y2udpiUj8/P7lg oUh6qlYt+BtIpwcfor8eZK3JCXK2n2mKCe7G/iHWvbRB7TA5sS1VUc7Vqsp9SisWRQ+c ZR0m8jpFwjcYciGxD2dxy7HWOOEa6CkD23CWArncLm8l3CTta8L00Qc+pU4WFawGUCIl 1YrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fH5dSaAvR/+z2uw5swA0u26MEryLngS/tFXBLolCtsQ=; b=oUNNZqw/7OSB3qhLv+oqy0Jxn7KxhQeFjmGlG3pv9eUb3rhUxPPJ9YW4jXIXNxocpx ZLYaY1HS75EgNekeh7wTn13/3tpbF0k5IPsX3gjJgFF+pxNRcDo0Kk+vEB1/X12YvTuD tvYtl9F3CqxiSaMA6aoLXELFzcWD8WG08Kr67wRsSkIgjJVfKsEstRJ18OKn6uFhpMkm koFDZR08dGhpkL/kJnj//7is3bv2WfMbDcxyiO5GFzL4sFoiQkdTE0ghi+ONQWc6mu1l z9wC/kUapl+9dZRL/jS7Kqdeo0mdtBFoaLUhWvOzSbQGvkTek76xzWlpIql7SJfJJCmT x+gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 82-v6si18201481pfo.229.2018.09.03.10.17.12; Mon, 03 Sep 2018 10:17:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729820AbeICVhO (ORCPT + 99 others); Mon, 3 Sep 2018 17:37:14 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42510 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727942AbeICVhN (ORCPT ); Mon, 3 Sep 2018 17:37:13 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id AFDF3D09; Mon, 3 Sep 2018 17:16:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manikanta Pubbisetty , Johannes Berg , Sasha Levin Subject: [PATCH 4.14 006/165] mac80211: add stations tied to AP_VLANs during hw reconfig Date: Mon, 3 Sep 2018 18:54:52 +0200 Message-Id: <20180903165655.323783610@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: "mpubbise@codeaurora.org" [ Upstream commit 19103a4bfb42f320395daa5616ece3e89e759d63 ] As part of hw reconfig, only stations linked to AP interfaces are added back to the driver ignoring those which are tied to AP_VLAN interfaces. It is true that there could be stations tied to the AP_VLAN interface while serving 4addr clients or when using AP_VLAN for VLAN operations; we should be adding these stations back to the driver as part of hw reconfig, failing to do so can cause functional issues. In the case of ath10k driver, the following errors were observed. ath10k_pci : failed to install key for non-existent peer XX:XX:XX:XX:XX:XX Workqueue: events_freezable ieee80211_restart_work [mac80211] (unwind_backtrace) from (show_stack+0x10/0x14) (show_stack) (dump_stack+0x80/0xa0) (dump_stack) (warn_slowpath_common+0x68/0x8c) (warn_slowpath_common) (warn_slowpath_null+0x18/0x20) (warn_slowpath_null) (ieee80211_enable_keys+0x88/0x154 [mac80211]) (ieee80211_enable_keys) (ieee80211_reconfig+0xc90/0x19c8 [mac80211]) (ieee80211_reconfig]) (ieee80211_restart_work+0x8c/0xa0 [mac80211]) (ieee80211_restart_work) (process_one_work+0x284/0x488) (process_one_work) (worker_thread+0x228/0x360) (worker_thread) (kthread+0xd8/0xec) (kthread) (ret_from_fork+0x14/0x24) Also while bringing down the AP VAP, WARN_ONs and errors related to peer removal were observed. ath10k_pci : failed to clear all peer wep keys for vdev 0: -2 ath10k_pci : failed to disassociate station: 8c:fd:f0:0a:8c:f5 vdev 0: -2 (unwind_backtrace) (show_stack+0x10/0x14) (show_stack) (dump_stack+0x80/0xa0) (dump_stack) (warn_slowpath_common+0x68/0x8c) (warn_slowpath_common) (warn_slowpath_null+0x18/0x20) (warn_slowpath_null) (sta_set_sinfo+0xb98/0xc9c [mac80211]) (sta_set_sinfo [mac80211]) (__sta_info_flush+0xf0/0x134 [mac80211]) (__sta_info_flush [mac80211]) (ieee80211_stop_ap+0xe8/0x390 [mac80211]) (ieee80211_stop_ap [mac80211]) (__cfg80211_stop_ap+0xe0/0x3dc [cfg80211]) (__cfg80211_stop_ap [cfg80211]) (cfg80211_stop_ap+0x30/0x44 [cfg80211]) (cfg80211_stop_ap [cfg80211]) (genl_rcv_msg+0x274/0x30c) (genl_rcv_msg) (netlink_rcv_skb+0x58/0xac) (netlink_rcv_skb) (genl_rcv+0x20/0x34) (genl_rcv) (netlink_unicast+0x11c/0x204) (netlink_unicast) (netlink_sendmsg+0x30c/0x370) (netlink_sendmsg) (sock_sendmsg+0x70/0x84) (sock_sendmsg) (___sys_sendmsg.part.3+0x188/0x228) (___sys_sendmsg.part.3) (__sys_sendmsg+0x4c/0x70) (__sys_sendmsg) (ret_fast_syscall+0x0/0x44) These issues got fixed by adding the stations which are tied to AP_VLANs back to the driver. Signed-off-by: Manikanta Pubbisetty Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/mac80211/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -2068,7 +2068,8 @@ int ieee80211_reconfig(struct ieee80211_ if (!sta->uploaded) continue; - if (sta->sdata->vif.type != NL80211_IFTYPE_AP) + if (sta->sdata->vif.type != NL80211_IFTYPE_AP && + sta->sdata->vif.type != NL80211_IFTYPE_AP_VLAN) continue; for (state = IEEE80211_STA_NOTEXIST;