]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
wpa-supplicant: add patch to check for kernel header version when compiling macsec
authorJon Mason <jdmason@kudzu.us>
Mon, 16 Sep 2024 23:53:49 +0000 (19:53 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Sep 2024 11:15:57 +0000 (12:15 +0100)
commit373d8d4f5316416d70eb2c0733d9838e57419ac3
tree84c1ffcb5b3c7dfd13ff6d27b3defb4d230a06f8
parentfea1bb917ebb1f99c83dbbc87a6f0ffc3627879a
wpa-supplicant: add patch to check for kernel header version when compiling macsec

When using Arm binary toolchain, version 2.11 of wpa-supplicant is
failing to compile with the following error:

| ../src/drivers/driver_macsec_linux.c:81:29: error: field ‘offload’ has incomplete type
|    81 |         enum macsec_offload offload;
|       |

Backport a recent patch that corrects the issue by adding a check for
the version of kernel headers being used in compilation and disabling
that enum if too old a version is being used (or is used by the
binary toolchain).

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/0001-macsec_linux-Hardware-offload-requires-Linux-headers.patch [new file with mode: 0644]
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.11.bb