From patchwork Tue Nov 10 08:25:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengwei Yin X-Patchwork-Id: 56287 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp610542lbb; Mon, 9 Nov 2015 23:25:06 -0800 (PST) X-Received: by 10.66.63.8 with SMTP id c8mr3271310pas.107.1447140306850; Mon, 09 Nov 2015 23:25:06 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg5si3280903pbb.218.2015.11.09.23.25.06; Mon, 09 Nov 2015 23:25:06 -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 S1751228AbbKJHZE (ORCPT + 1 other); Tue, 10 Nov 2015 02:25:04 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:36521 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125AbbKJHZC (ORCPT ); Tue, 10 Nov 2015 02:25:02 -0500 Received: by pacdm15 with SMTP id dm15so201932403pac.3 for ; Mon, 09 Nov 2015 23:25:02 -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=r/bZxRVcT6qtpxKMRcKdxPxgDwVlgJ/MZqNDpJnEWsk=; b=uwtfmHYOfhXm3aqZKqyVwe8y+Wwor+l0JlRf4FkLYqo2H41H0v0eMQQq2DPIRQkqpQ Lv0wAQE67VtpORJcVoTk0oeW9/XJ8o4hxQkVHqkod5RBn/rc8BGSoeHOe+UmSBqa/BUC 8MIygpH1K5xUB/5nUlFzdQ1N7JxtUYzji28dVrPFdcfoJbLfqSeMXzJXxS4tEM6hniNh 2BbA1Zka8vuzdvy/uHrsV6Cg/iwF/mQcoRu3F7oye00B9f7QHeL7kI5A2MD7ZeyMzbv1 ELhKm5qPbjQEeM1Fx1DN/ttgbtqbcKB9zOtS4tujiERxMSB7pIFFDC9S54H4JexbYFmI N2aQ== 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=r/bZxRVcT6qtpxKMRcKdxPxgDwVlgJ/MZqNDpJnEWsk=; b=A5gj2KrzcqPi3l5ORbVPVoLWNNp9498KGWa4fjzfojrRslvLJsk1tfIrdmKvnXE/RA Ua396DrVB+cYmJNTnVExUBjXgvVApzuELNqWGqqcGBtNiW7evRBfyOnp6If2NgwxA3Tj KgbcqbQbq8dpEK5o/j4Cukb9nyymMmU1Tae1tY52n/G5RdrARgbnK7TThL8lgn9VkC5g P8ArYC7TU0oHV0UCiYFqr+rKULN9HpoU/3DZqbFXScHSlAO7P0YJLpoMZgZFKPj2iLmp Z788ztf7F+ooKVX/Fy3g0rOJs26gkVOkqvTSjvZ0PJlk3VqlRKzxAjsDNtZpp6B9WSz3 FNQg== X-Gm-Message-State: ALoCoQlKXrPhLwgX+WMPY3Y1JDbm38t1MqZtxjV/4pcc7/nLHWdWkg0qIHsLBaN+U0/aFtPF/Ea0 X-Received: by 10.66.218.170 with SMTP id ph10mr3318251pac.58.1447140302081; Mon, 09 Nov 2015 23:25:02 -0800 (PST) Received: from localhost.localdomain ([45.116.12.36]) by smtp.googlemail.com with ESMTPSA id dw5sm2224716pbb.3.2015.11.09.23.24.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Nov 2015 23:25:01 -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 v2 2/5] wcn36xx: swallow two wcn3620 IND messages Date: Tue, 10 Nov 2015 03:25:52 -0500 Message-Id: <1447143955-10304-3-git-send-email-fengwei.yin@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447143955-10304-1-git-send-email-fengwei.yin@linaro.org> References: <1447143955-10304-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 WCN3620 can asynchronously send two new kinds of indication message, since we can't handle them just accept them quietly. Signed-off-by: Andy Green --- v2: used one break for both in the second stanza 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,