diff --git a/package/kernel/mac80211/patches/ath9k/999-ath9k-fix-5.15.patch b/package/kernel/mac80211/patches/ath9k/999-ath9k-fix-5.15.patch new file mode 100644 index 000000000..58acd03af --- /dev/null +++ b/package/kernel/mac80211/patches/ath9k/999-ath9k-fix-5.15.patch @@ -0,0 +1,18 @@ +--- a/drivers/net/wireless/ath/ath9k/init.c ++++ b/drivers/net/wireless/ath/ath9k/init.c +@@ -646,11 +646,13 @@ + ah->ah_flags &= ~AH_USE_EEPROM; + ah->ah_flags |= AH_NO_EEP_SWAP; + } +- ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0) ++ of_get_mac_address(np, common->macaddr); ++#else + mac = of_get_mac_address(np); + if (!IS_ERR(mac)) + ether_addr_copy(common->macaddr, mac); +- ++#endif + return 0; + } +