Message ID | 20171231172925.24014-16-erik.stromdahl@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org> 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 C33C260362 for <patchwork-ath10k@patchwork.kernel.org>; Sun, 31 Dec 2017 17:33:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A93CC2886B for <patchwork-ath10k@patchwork.kernel.org>; Sun, 31 Dec 2017 17:33:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BCCB2887A; Sun, 31 Dec 2017 17:33:22 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4C1B02886B for <patchwork-ath10k@patchwork.kernel.org>; Sun, 31 Dec 2017 17:33:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Pn2xAAMONrUdy/9nB5R9gZQsWW8uzWQ8DzquW3etGiA=; b=tnp82Pu0QggQlkpLIFyHQh+A/B YpMVVtqh5iC97CKC6Fq5TTc8G/hcaE/cF+HN/q/Y4f5coJ84HFfls4eHIpgJImwlA+KpNgXmdH8Qx lsACtUU4zzMSLqou8MkBo3fxUpOGoxh+142KCQ5DveObCHaOeXYKZqrkRcgGMZ/y64GXnd+IHisg2 0G9DgrcCh53e6xfHy1DGLxwHT+m0GYol8albIY5Zq4GXWSLgn6IXpKkkJCweRoS2AZz1Qg2Po2NdV 7P33v5o8kRHB/PEYu5KUNFxz6255IXhELT7RWgD/qRnI9NmyM4qcdb8Uamv5T7XZu0vsHZ0UIB29E xRGHCuqQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eVhU3-0006yb-87; Sun, 31 Dec 2017 17:33:15 +0000 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eVhSf-00061d-9S for ath10k@lists.infradead.org; Sun, 31 Dec 2017 17:32:00 +0000 Received: by mail-lf0-x243.google.com with SMTP id e27so17426030lfb.9 for <ath10k@lists.infradead.org>; Sun, 31 Dec 2017 09:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l2hAtka9SIEUzMkzym19og+WiPJsjFdinCfaaiX59Io=; b=QB1yRMRBNL1YhYhihnFdlfV+xfywtyqaM0Yy5p4KFNc3tG4QlngSZFdZHW4Mri8ae1 mE369mvJNu3d1XSGtXHfGxwbhfCOhTz6RTNiAMolHj9BjuaJdeqs/CHPuyUlA2relWw1 uAkYwud8bTn8EtzRb+0wPojaPZLtdcHaMrdnhm0ge/6zOsycULBNE+B+GR9yGvFq0KXc n7z8YNLdZEHfluFO+OpgCFVJduAGIUvdC+uibE718vVWmMJwYsaDFNkP7d1+y34Daa7s g/1lNiwaxxmdbYtKBci5yW1uTEU6hMGbt0TJO38Ksw0+i8j9rmJldemzF4UYnN+odCih YCiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l2hAtka9SIEUzMkzym19og+WiPJsjFdinCfaaiX59Io=; b=EeSN+sJrLthJXCQ+wd91uGHeF612WjfjjiRYX5BBgFACJSeHkrBgo5PK+4zZA9TBUt CqN+oRJViJSqqMU0+Wbpk4NADvH5C3bhdqTzi5SH1y3WrbH3cF3FzYUWp4cY2wa+xp35 he/0HFj64Ko3RBqtpqaG+nbipuvEIDGAYBlv9ihX0mouIk5oFHCH9prmIEO1RjVgW/0/ NLfAYQgd4/O6LsVZP2WNB1iLc0WXZXivXmM+Gp9zZCDUJYxCHSGzxvVdAsLHTOk6ZLjP 0odhq7gATfcssAPtCl8XbyZseNOWkdnQwzfWo1ufpXgGzU8n9RR0bgrbKwoCEFCwrDkk bJsQ== X-Gm-Message-State: AKGB3mLPccPu9CKHNiwh2zZGHkmqrA1FfkliRIHuLmTvlgpwNysIoJH2 VKW3ebI3RLhUTNKMGYQ6BD6+0w== X-Google-Smtp-Source: ACJfBotfzHHP6pvZf4GfmI0SEM9cMeQlQOM2gUsbcALqeeVUmKupO9sSnFCgFwkYsYtcSdQzElQvXg== X-Received: by 10.25.26.211 with SMTP id a202mr15335935lfa.105.1514741507126; Sun, 31 Dec 2017 09:31:47 -0800 (PST) Received: from localhost.localdomain (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id o64sm5048449lfo.53.2017.12.31.09.31.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:46 -0800 (PST) From: Erik Stromdahl <erik.stromdahl@gmail.com> To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v4 15/18] ath10k: wmi: disable softirq's while calling ieee80211_rx Date: Sun, 31 Dec 2017 18:29:22 +0100 Message-Id: <20171231172925.24014-16-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171231172925.24014-1-erik.stromdahl@gmail.com> References: <20171231172925.24014-1-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171231_093149_504834_CD98C371 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <ath10k.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/ath10k>, <mailto:ath10k-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/ath10k/> List-Post: <mailto:ath10k@lists.infradead.org> List-Help: <mailto:ath10k-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/ath10k>, <mailto:ath10k-request@lists.infradead.org?subject=subscribe> Cc: Erik Stromdahl <erik.stromdahl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" <ath10k-bounces@lists.infradead.org> Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 58dc2189ba49..3a81d106789d 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2409,7 +2409,8 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb) status->freq, status->band, status->signal, status->rate_idx); - ieee80211_rx(ar->hw, skb); + ieee80211_rx_ni(ar->hw, skb); + return 0; }
This is done in order not to trig the below warning in ieee80211_rx_napi: WARN_ON_ONCE(softirq_count() == 0); ieee80211_rx_napi requires that softirq's are disabled during execution. Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com> --- drivers/net/wireless/ath/ath10k/wmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)