Return-path: Received: from mail-qa0-f51.google.com ([209.85.216.51]:58625 "EHLO mail-qa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbbA0U54 (ORCPT ); Tue, 27 Jan 2015 15:57:56 -0500 Received: by mail-qa0-f51.google.com with SMTP id f12so13281578qad.10 for ; Tue, 27 Jan 2015 12:57:56 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20150118050741.31866.36490.stgit@114-36-241-182.dynamic.hinet.net> <20150118051100.31866.37997.stgit@114-36-241-182.dynamic.hinet.net> Date: Wed, 28 Jan 2015 04:57:49 +0800 Message-ID: (sfid-20150127_215800_213036_CCC8826E) Subject: Re: [PATCH 4/7] net: wireless: wcn36xx: introduce WCN36XX_HAL_AVOID_FREQ_RANGE_IND From: Andy Green To: Eugene Krasnikov Cc: Kalle Valo , wcn36xx , linux-wireless , netdev Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 28 January 2015 at 04:01, Eugene Krasnikov wrote: > Do you know when is this message used? sounds important. It's related to BT coexistance or radar... prima expects this payload with it #define WLAN_HAL_MAX_AVOID_FREQ_RANGE 4 typedef PACKED_PRE struct PACKED_POST { tANI_U32 startFreq; tANI_U32 endFreq; } tHalFreqRange, *tpHalFreqRange; typedef PACKED_PRE struct PACKED_POST { tANI_U32 avoidCnt; tHalFreqRange avoidRange[WLAN_HAL_MAX_AVOID_FREQ_RANGE]; Basically wcn firmware can propose up to 4 frequency ranges to not use for whatever reason... prima looks like it tries to disable channels accordingly. -Andy > 2015-01-18 5:11 GMT+00:00 Andy Green : >> WCN3620 firmware introduces a new async indication, we need to >> add it as a known message type so we can accept it >> >> Signed-off-by: Andy Green >> --- >> drivers/net/wireless/ath/wcn36xx/hal.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/net/wireless/ath/wcn36xx/hal.h b/drivers/net/wireless/ath/wcn36xx/hal.h >> index a1f1127..b947de0 100644 >> --- a/drivers/net/wireless/ath/wcn36xx/hal.h >> +++ b/drivers/net/wireless/ath/wcn36xx/hal.h >> @@ -345,6 +345,8 @@ enum wcn36xx_hal_host_msg_type { >> WCN36XX_HAL_DHCP_START_IND = 189, >> WCN36XX_HAL_DHCP_STOP_IND = 190, >> >> + WCN36XX_HAL_AVOID_FREQ_RANGE_IND = 233, >> + >> WCN36XX_HAL_MSG_MAX = WCN36XX_HAL_MSG_TYPE_MAX_ENUM_SIZE >> }; >> >> > > > > -- > Best regards, > Eugene