From patchwork Mon Nov 9 10:02:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengwei Yin X-Patchwork-Id: 7581721 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 519A5C05C6 for ; Mon, 9 Nov 2015 09:01:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9B21320774 for ; Mon, 9 Nov 2015 09:01:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BCBC320461 for ; Mon, 9 Nov 2015 09:01:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752602AbbKIJBc (ORCPT ); Mon, 9 Nov 2015 04:01:32 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36228 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752272AbbKIJBb (ORCPT ); Mon, 9 Nov 2015 04:01:31 -0500 Received: by pacdm15 with SMTP id dm15so168910665pac.3 for ; Mon, 09 Nov 2015 01:01:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cOXH/dTUjNGsKl7L2Ckn9390kC1JVLOp4GGP+xFSDOg=; b=Q7CXOngDMkGif0rlRHxFTkpAxf/R24ADFLDsHVhDWYPNh+ISDiO3U2xVeWVWZPnnlg AGseaqQ+9GfxChqDhAZBKfMCofTFB+6U+/A1BYgFfGuhkdb3oh7i38Nb9y3IRo8E1ucR R/LTaPaHFrrGeq5jKR7WLUVrs/TzmcFPrD5pP8XYEjJbN8GZERziEHF06ngAilOT6EB0 j/zOYZOvzRp0u/QOpSHMz1fpdHULntg8FBc78Dszd5CELKkmn/lHZ8BfSWpt/4szTxV1 ygwxJAlRcIN2u1ASb3bPqkYff5zjUvXN/5bH3WQBvL/YnbLXpdcX1zd4P4iBuDuOSWwc VDnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cOXH/dTUjNGsKl7L2Ckn9390kC1JVLOp4GGP+xFSDOg=; b=cCb5cU6TU2L+9awu8FjXHP6OW9VedPaf0P6flnj3+k2kUiawsl5P7sgz5X4028ER44 ZhzC9UxoSRzkSv3U+o/yQLQWeLSL+PUvThNqkj3raDY7JtMlnphOaSp+XVE6NvP4MSO6 oafaRmFcYyIFvuyaDTqP+sgBtO2fXWiny+ZmZjXQTigp2j9FnAvDC8Eku9UW07W4cVT0 GkoqEL9QrUHDIsLih8u1FdDQZlsVoRihLT1dTuoEmf1Oa1mTUEinZvh8rQK0IMSmK0nC mE1XkQNJy6XBsYqNpRa6QCZwBnZI//11UJE1BOIAYHE1uYxwI5SzUnTaCcEOOyrQDX55 YJDA== X-Gm-Message-State: ALoCoQntdlSt2Jtk5lZq6U/mq/idjCx9luatH1jtTAShdrhmK6Vc9xs6ltt4N6ipub2AthXHPtqV X-Received: by 10.68.200.66 with SMTP id jq2mr19129535pbc.4.1447059690851; Mon, 09 Nov 2015 01:01:30 -0800 (PST) Received: from localhost.localdomain ([45.116.12.36]) by smtp.googlemail.com with ESMTPSA id ck9sm15005136pad.28.2015.11.09.01.01.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Nov 2015 01:01:30 -0800 (PST) From: "Yin, Fengwei" To: andy.green@linaro.org, linux-wireless@vger.kernel.org, wcn36xx@lists.infradead.org, me@bobcopeland.com, k.eugene.e@gmail.com, bjorn.andersson@sonymobile.com Cc: fengwei.yin@linaro.org Subject: [PATCH 2/5] wcn36xx: swallow two wcn3620 IND messages Date: Mon, 9 Nov 2015 05:02:39 -0500 Message-Id: <1447063362-27322-3-git-send-email-fengwei.yin@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447063362-27322-1-git-send-email-fengwei.yin@linaro.org> References: <1447063362-27322-1-git-send-email-fengwei.yin@linaro.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Andy Green From: Andy Green WCN3620 can asynchronously send two new kinds of indication message, since we can't handle them just accept them quietly. v2: used one break for both in the second stanza Signed-off-by: Andy Green --- drivers/net/wireless/ath/wcn36xx/smd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index c9263e1..be317f4 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2128,6 +2128,8 @@ static void wcn36xx_smd_rsp_process(struct wcn36xx *wcn, void *buf, size_t len) complete(&wcn->hal_rsp_compl); break; + case WCN36XX_HAL_COEX_IND: + case WCN36XX_HAL_AVOID_FREQ_RANGE_IND: case WCN36XX_HAL_OTA_TX_COMPL_IND: case WCN36XX_HAL_MISSED_BEACON_IND: case WCN36XX_HAL_DELETE_STA_CONTEXT_IND: @@ -2174,6 +2176,9 @@ static void wcn36xx_ind_smd_work(struct work_struct *work) msg_header = (struct wcn36xx_hal_msg_header *)hal_ind_msg->msg; switch (msg_header->msg_type) { + case WCN36XX_HAL_COEX_IND: + case WCN36XX_HAL_AVOID_FREQ_RANGE_IND: + break; case WCN36XX_HAL_OTA_TX_COMPL_IND: wcn36xx_smd_tx_compl_ind(wcn, hal_ind_msg->msg,