From patchwork Tue Dec 14 13:46:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 524503 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3100C433EF for ; Tue, 14 Dec 2021 13:44:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234509AbhLNNob (ORCPT ); Tue, 14 Dec 2021 08:44:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhLNNo2 (ORCPT ); Tue, 14 Dec 2021 08:44:28 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E1DCC061574 for ; Tue, 14 Dec 2021 05:44:28 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id az34-20020a05600c602200b0033bf8662572so13807051wmb.0 for ; Tue, 14 Dec 2021 05:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iH31IPcSjhrHBMlbPkShOp+GZgBxks+YGO36i19sp8s=; b=oTFQvwJcXHMQj5RirhlFbzNf6Dxs1er3O+vMZmGwr9KSJ/vS3JgWSX7GhPr2CJBCzn 5nlF1Kwuf8A6AUbi2sse6ATGdPlL1n3ufaEFtTruDZ19aKXxsY3APiJ+mIQXRCD3bCw9 45/VNpzMrygI/1i88P9AbwDdqphtv+N8b1TmL5V4uZFpBrn8erITKuWHjlLQe8qWVtaz QnkIs+0IVInJpJmVZmvx/Jy3Kj98Jfs85EXognRpQ5gn8PmnPdylyEEvKmhTVvk/dLee 5/aXWLIbZrE/ov/Fpv6y5kLablLVdXWB1OR3jNYcODp/7tB/DJ0PiFs0e9DLy1SmWINc 5Grg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iH31IPcSjhrHBMlbPkShOp+GZgBxks+YGO36i19sp8s=; b=QNmqlpdtFO8wW4dH29ZtL2l3iWLf7uayYIizb6uVs1YtaOZ+FUt9/RpxlOH32QBwyC tr9SWIiMfW2MYyEJFwuljP7yUyACzX1OwgXMiFbGCYeGHYGF8yn1vvhF9/carWMNd78l NWE1qfD4Ldq2ZcpQPzZ/eDbG1f/iGyYt0Nc9UTZ6qviirvbSYFvCEB7q4GdJh1tNqvV2 rnyEnue7L9Zr7ESnwNrAFxPvd5qzJq9EH/aQD6k+t5YL1UcQ9Ca1FohOcfRsY+M0+CnM ddCumB9JEyWKtuQ7ZQt2KwlMOBltCdRH99tvYq5rpXgjdck/0r6QYFeSXBU5vmS/GsDv yKTA== X-Gm-Message-State: AOAM532/Ysnhp455VwE43EcH3bZxyMQadM6Pmc8yBPZtLoA2aIYZOccZ pMyZje+bl8D+gff33Wi3yFq4QKaiqyx5Yw== X-Google-Smtp-Source: ABdhPJyg0oekeYgXitdty2AZ5tLSUQRaZ8CoO68o52OvnhAi/kQ1VbtRwCogwdaiHIGakldnTk8WLA== X-Received: by 2002:a05:600c:4ed2:: with SMTP id g18mr7216822wmq.25.1639489466870; Tue, 14 Dec 2021 05:44:26 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id g19sm2309592wmg.12.2021.12.14.05.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Dec 2021 05:44:26 -0800 (PST) From: Bryan O'Donoghue To: kvalo@codeaurora.org, linux-wireless@vger.kernel.org, wcn36xx@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: loic.poulain@linaro.org, benl@squareup.com, bryan.odonoghue@linaro.org Subject: [PATCH v3 1/3] wcn36xx: Fix beacon filter structure definitions Date: Tue, 14 Dec 2021 13:46:28 +0000 Message-Id: <20211214134630.2214840-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211214134630.2214840-1-bryan.odonoghue@linaro.org> References: <20211214134630.2214840-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The beacon filter structures need to be packed. Right now its fine because we don't yet use these structures so just pack them without marking it for backporting. Signed-off-by: Bryan O'Donoghue Reviewed-by: Loic Poulain --- drivers/net/wireless/ath/wcn36xx/hal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/wcn36xx/hal.h b/drivers/net/wireless/ath/wcn36xx/hal.h index 9bea2b01f9aab..9bce71592f743 100644 --- a/drivers/net/wireless/ath/wcn36xx/hal.h +++ b/drivers/net/wireless/ath/wcn36xx/hal.h @@ -3469,7 +3469,7 @@ struct beacon_filter_ie { u8 value; u8 bitmask; u8 ref; -}; +} __packed; struct wcn36xx_hal_add_bcn_filter_req_msg { struct wcn36xx_hal_msg_header header; @@ -3480,14 +3480,14 @@ struct wcn36xx_hal_add_bcn_filter_req_msg { u16 ie_num; u8 bss_index; u8 reserved; -}; +} __packed; struct wcn36xx_hal_rem_bcn_filter_req { struct wcn36xx_hal_msg_header header; u8 ie_Count; u8 rem_ie_id[1]; -}; +} __packed; #define WCN36XX_HAL_IPV4_ARP_REPLY_OFFLOAD 0 #define WCN36XX_HAL_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1