[PATCH v4 1/3] wifi: mt76: mt7921: fix country count limitation for CLC
Johannes Berg
johannes at sipsolutions.net
Fri Feb 23 02:12:39 PST 2024
On Wed, 2023-11-22 at 11:06 +0800, Mingyen Hsieh wrote:
> + buf_len = le16_to_cpu(clc->len) - sizeof(*clc);
clc->len is defined as __le32, so this rightfullyu introduced a sparse
warning. Please check which is correct (should len be __le16 + padding?
should it be le32_to_cpu() here?) and send a fix.
johannes
More information about the Linux-mediatek
mailing list