Why I am seeing an error while trying to build lrd-11 in Yocto?

I am seeing an error: error: 'struct net_device' has no member named 'ieee80211_ptr' while trying to build the lrd-11.0 release in Yocto.

This is due to a change in kernel 5.19 and higher, (lrd-11.0 is built against 6.1 kernel backports), where there is a requirement to add cfg80211 to your image.

To accomplish this:

  1. Edit your kernel configuration by entering bitbake -c menuconfig virtual/kernel
  2. Edit Networking support/Wireless and set cfg80211 to "M" for module
  3. Save your changes.
  4. Run your build again.