Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5327933ybv; Tue, 11 Feb 2020 13:36:01 -0800 (PST) X-Google-Smtp-Source: APXvYqz0jdf/7B7ztRHupxUgAbe+JlXdxriVKrahQdhPAPqZ9NMKzpTr2ulIG4R12HzXd62GqumK X-Received: by 2002:aca:5f87:: with SMTP id t129mr4297281oib.36.1581456961539; Tue, 11 Feb 2020 13:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581456961; cv=none; d=google.com; s=arc-20160816; b=x9vYPE5K0tekVE9FPmS0wcI6jRw7W59toEAlzolWJ1FHBp4SeFY13sofFPcGSLtRpx WeW6kBeQksOaFRmVPVHV3JhhdkewW/9LaHvVr95lMs+XopOXzu+PP1XGRO3ZOQM5slGD D223CDmnQoWXoi0byG1AHAAkb0acTC/IOiV4DyPjIX5tRWOoeK7q1rYfzC9Q65OnhX/G hT5TdCB/2NpPbSDEcyShO+2RFk6/+Fmy9COQncn7yEV8gaqRjAGv8CR9Rltr06fa9Gij AR769duKz4kxhrjre2YwNYcZfNhFPcUl7SDTHLcyqdJQFF7mlqBioDJgbOxljXTj8Vvy jH8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature; bh=Wt8xNyJIiPUfFnO+TEUKnzTg1LxDNvsSL+qq+NVgZpA=; b=YRiNwnPEmoatuSe7d44mr/7KCnsaYwJk1L9y4n43NcPgS93rntDhCDrQGeYGmFkL+u ioVv7xuJcYBWILHsMFCp5VTQlkvGeB7LCxrh9UJk7CyWuF3XEWoqWe7Q1Rse7BBBFAZZ MgYP0HWSbnojY5xb7xvtwfYhqqG8rcM9uO/g9TC/z1FiBkYTIfYXrC5B7JZhgmB4tUXl zkQjo897QKN1I4ppjQN3YIY3tF6XmZQK2RZCpZqNQd0aTCi+9Kf7UGlCV/RAbLglY3+h trOPC+8F+BA6dJmCwf42Ddf3AtsHgCDn16VDfCKHogWN3aFfzg/sWFOnIlpQsqH1RcGM 01ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=IHhp7JFa; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 17si2785299otu.58.2020.02.11.13.35.50; Tue, 11 Feb 2020 13:36:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=IHhp7JFa; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729680AbgBKSiP (ORCPT + 99 others); Tue, 11 Feb 2020 13:38:15 -0500 Received: from mail27.static.mailgun.info ([104.130.122.27]:15593 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbgBKSiP (ORCPT ); Tue, 11 Feb 2020 13:38:15 -0500 X-Greylist: delayed 301 seconds by postgrey-1.27 at vger.kernel.org; Tue, 11 Feb 2020 13:38:14 EST DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1581446294; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=Wt8xNyJIiPUfFnO+TEUKnzTg1LxDNvsSL+qq+NVgZpA=; b=IHhp7JFaBngpl/FfIT4cUv4uAQ/fPZYrMpOGFqi9+fJF2M3pXfteVr86RUUQG3MlLbtEOE4K at6ffj5XC3tkFMYFd8Xlz1QYROMzE7w9AT1Z8vhKQXSfLkK5uwDeLmedXwpC7xNnWNqtVgH+ l6hI2Y0RnXBFVbPM6TU9ZIw//6w= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e42f363.7fa54a5e4b90-smtp-out-n01; Tue, 11 Feb 2020 18:33:07 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 962C6C4479C; Tue, 11 Feb 2020 18:33:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=2.0 tests=ALL_TRUSTED,MISSING_DATE, MISSING_MID,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 27B70C433A2; Tue, 11 Feb 2020 18:33:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 27B70C433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath11k: fix warn-on in disassociation From: Kalle Valo In-Reply-To: <1580865828-31330-1-git-send-email-periyasa@codeaurora.org> References: <1580865828-31330-1-git-send-email-periyasa@codeaurora.org> To: Karthikeyan Periyasamy Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Karthikeyan Periyasamy User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20200211183306.962C6C4479C@smtp.codeaurora.org> Date: Tue, 11 Feb 2020 18:33:06 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Karthikeyan Periyasamy wrote: > In multi AP VAP scenario, when user bring down the interfaces. mac80211 mark > the interface down for the duplicated VAP and removed from the > local->interfaces list. ath11k_mac_get_arvif() is dependent on > ieee80211_iterate_active_interfaces_atomic() API to find the vdev id > in a given radio. In disassociation path, ath11k_mac_get_arvif() not > able to find the given vdev id since that VAP is removed from the > local->interfaces list. since sta_state callback throws error, mac80211 log > the below WARN_ON_ONCE message. > > Fixed it by storing the allocated_vdev_map in each radio structure to maintain > the created vdev id bits. so that we can directly mask this against the given > vdev_id to find out the ar from the vdev_id. > > WARN LOG: > > WARNING: at net/mac80211/sta_info.c:1008 > CPU: 2 PID: 2135 Comm: hostapd Not tainted #1 > Hardware name: Qualcomm Technologies, Inc. IPQ807x/AP-HK01-C1 (DT) > task: ffffffc03a43d800 ti: ffffffc03a43d800 task.ti: ffffffc03a43d800 > PC is at sta_set_sinfo+0x9dc/0xad4 [mac80211] > LR is at sta_set_sinfo+0x9cc/0xad4 [mac80211] > pc : [] lr : [] pstate: 20000145 > sp : ffffffc02cedb5f0 > x29: ffffffc02cedb5f0 x28: ffffffc03a43d800 > x27: 0000000000000014 x26: 0000000000000001 > x25: ffffffc02cfc4000 x24: ffffffc036905508 > x23: 0000000000000012 x22: ffffffc02cedb670 > x21: ffffffc03bc64880 x20: ffffffc036904f80 > x19: ffffffc02ae31000 x18: 00000000b019f3a1 > x17: 0000000057f30331 x16: 00000000d8d1998e > x15: 0000000000000066 x14: 393a35383a36343a > x13: 6337203a6e6f6974 x12: 6174732065746169 > x11: 636f737361736964 x10: 206f742064656c69 > x9 : 6146203a31696669 x8 : 6337203a6e6f6974 > x7 : 6174732065746169 x6 : ffffffc0008c33f6 > x5 : 0000000000000000 x4 : 0000000000000000 > x3 : 0000000000000000 x2 : 00000000ffffff92 > x1 : 0000000000000000 x0 : ffffffbffcea1091 > ---[ end trace 63c4b1c527345d5a ]--- > Call trace: > [] sta_set_sinfo+0x9dc/0xad4 [mac80211] > [] __sta_info_flush+0xec/0x130 [mac80211] > [] ieee80211_nan_func_match+0x1a34/0x23e4 [mac80211] > [] __cfg80211_stop_ap+0x60/0xf0 [cfg80211] > [] __cfg80211_leave+0x110/0x150 [cfg80211] > [] cfg80211_leave+0x30/0x48 [cfg80211] > [] cfg80211_init_wdev+0x22c/0x808 [cfg80211] > [] notifier_call_chain+0x50/0x84 > [] raw_notifier_call_chain+0x14/0x1c > [] call_netdevice_notifiers_info+0x5c/0x6c > [] call_netdevice_notifiers+0x10/0x18 > [] __dev_close_many+0x54/0xc0 > [] dev_close_many+0x64/0xdc > [] rollback_registered_many+0x138/0x2f4 > [] rollback_registered+0x20/0x34 > [] unregister_netdevice_queue+0x68/0xa8 > [] ieee80211_if_remove+0x84/0xc0 [mac80211] > [] ieee80211_nan_func_match+0x2374/0x23e4 [mac80211] > [] cfg80211_wext_giwscan+0x1000/0x1140 [cfg80211] > [] backport_genlmsg_multicast_allns+0x158/0x1b4 [compat] > [] genl_family_rcv_msg+0x258/0x2c0 > [] genl_rcv_msg+0x48/0x6c > [] netlink_rcv_skb+0x5c/0xc4 > [] genl_rcv+0x34/0x48 > [] netlink_unicast+0x12c/0x1e0 > [] netlink_sendmsg+0x2bc/0x2dc > [] sock_sendmsg+0x18/0x2c > [] ___sys_sendmsg+0x1bc/0x248 > [] __sys_sendmsg+0x40/0x68 > [] SyS_sendmsg+0x10/0x20 > [] el0_svc_naked+0x24/0x28 > > Signed-off-by: Karthikeyan Periyasamy > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 79c080dbe35b ath11k: fix warn-on in disassociation -- https://patchwork.kernel.org/patch/11365673/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches