rtl8812au-ct: fix build with mac80211 6.9.9 backport
authorShiji Yang <yangshiji66@qq.com>
Sat, 13 Jul 2024 08:50:59 +0000 (16:50 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 13 Jul 2024 12:25:36 +0000 (14:25 +0200)
commit419ceead119b1c0d50012970f217d190f1441aaf
treeec1877e585563d46e52b7e1aa50b4eff9c4a0c00
parent192afd31e3c58c1b855d46650e9954534f5f6851
rtl8812au-ct: fix build with mac80211 6.9.9 backport

The change_beacon() API has been updated since the 6.7 kernel. Ref:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.9.9&id=66f85d57b7109baf8a7d5ee04049ac9412611d35

Fix build error:
../rtl8812au-ct-2022.10.26~9b2b203a/os_dep/linux/ioctl_cfg80211.c:5984:26: error: initialization of 'int (*)(struct wiphy *, struct net_device *, struct cfg80211_ap_update *)' from incompatible pointer type 'int (*)(struct wiphy *, struct net_device *, struct cfg80211_beacon_data *)' [-Werror=incompatible-pointer-types]
 5984 |         .change_beacon = cfg80211_rtw_change_beacon,
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
../rtl8812au-ct-2022.10.26~9b2b203a/os_dep/linux/ioctl_cfg80211.c:5984:26: note: (near initialization for 'rtw_cfg80211_ops.change_beacon')

Link: https://patchwork.ozlabs.org/project/openwrt/patch/TYCP286MB0895A26BA1C0517F2CBE71F0BCA72@TYCP286MB0895.JPNP286.PROD.OUTLOOK.COM/
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
package/kernel/rtl8812au-ct/patches/009-fix-build-on-linux-6.7-kernel.patch [new file with mode: 0644]