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: 56191 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp65335lbb; Mon, 9 Nov 2015 01:01:34 -0800 (PST) X-Received: by 10.68.170.98 with SMTP id al2mr37563893pbc.121.1447059694008; Mon, 09 Nov 2015 01:01:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xu3si21064054pab.194.2015.11.09.01.01.33; Mon, 09 Nov 2015 01:01:33 -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; 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; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752602AbbKIJBc (ORCPT + 1 other); 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 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(+) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,