From patchwork Mon Dec 13 15:00:29 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: 523896 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 E854DC4332F for ; Mon, 13 Dec 2021 14:58:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234016AbhLMO6b (ORCPT ); Mon, 13 Dec 2021 09:58:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234052AbhLMO63 (ORCPT ); Mon, 13 Dec 2021 09:58:29 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD96CC061751 for ; Mon, 13 Dec 2021 06:58:28 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 77-20020a1c0450000000b0033123de3425so14264272wme.0 for ; Mon, 13 Dec 2021 06:58: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=uTYixfrhf6bWN82g0Fi5qU9LAYUUaPAtaNL6sw+Jd4U=; b=BwgGHf/a3sgf+58Cy0bbtoeudPI8sMhx6nOqMqjkKkc4w8EFzteQelbbR50X3izWOK I1hxnFCA4TzztzjJcTw7rtiLpfmaa/HS1dWRwdpricIV/eONZrGpEE+b1k5UxkQfv/4q qMstzYPG9mGrTstflGtiZKDrlNRIYQEQEdQKxNKuqaqiw/3SsS5GlYXrCABaBTb1w/UW CwizmLGmsdshF6J8N5vB/KdIug2xxWc3ilFBXZ8javp62C17k5aYchxXg40/NXuRUG5E SkwkJ4hR+jcyGi4WsQ+AAxosAc7f8C86SAsb8+1M1Ur/6D4v6Bat878RMvOb8flSNT9K A5Sw== 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=uTYixfrhf6bWN82g0Fi5qU9LAYUUaPAtaNL6sw+Jd4U=; b=YhbmQDjaFTeg91l5pgEwyBzrPQvHbZGgL884/alfD8hGqvQkhLc/sc6Hl3jmfklRRs xlw+MIGnM0FAZILDtYd4hE4BNbJoPiCgT79fMZEebBFZhyTY6nrFP4mXio04L59xQKWQ eCvJAnkFZQOdr10KJPmnu7Oh6kGg29tTjH7ic5bLozVFJRggHX38vFfi6Xeem4IFb+iG e47+TRggQZAlbLjW5YGh8qhopBSCZ4/qldKg6enZiw9XbuCy5y+Nc9ZhkeKda9t7pa+i qTVlDv4VekbMdQMiEUPi8FNbrFmbl/9LZfQaTzI02rYea5soQF0auqa2ka1whSx5Fe1N eugQ== X-Gm-Message-State: AOAM5310ZrekW8+DgzKhniH5RUkLlHu30gPV8gkWPCo5nPB6YlnF8aD/ EHjAu6//i7PBB/Q5aXAZAfnuwA== X-Google-Smtp-Source: ABdhPJw/96B3Ift85NKuNZGxjnSUJpD5xNkWxu7JuHeoinuAWV3d3eLRThGTLYs8D3bd5IhvqB6fcQ== X-Received: by 2002:a1c:9dc7:: with SMTP id g190mr37974093wme.130.1639407507252; Mon, 13 Dec 2021 06:58:27 -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 o63sm7570112wme.2.2021.12.13.06.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 06:58: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 v2 1/3] wcn36xx: Fix beacon filter structure definitions Date: Mon, 13 Dec 2021 15:00:29 +0000 Message-Id: <20211213150031.1707955-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211213150031.1707955-1-bryan.odonoghue@linaro.org> References: <20211213150031.1707955-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 --- 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