fix: add Linux 6.17+ compatibility for get_tx_power callback

Add radio_idx and changed parameters to rwnx_cfg80211_get_tx_power function
to match the updated cfg80211 API signature introduced in Linux 6.17+. This
fixes compilation errors on kernel 6.19 and later versions.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Shen Mintao
2026-03-11 10:33:27 +08:00
co-authored by Claude Sonnet 4.5
parent 6a2d56d055
commit f2e73a92ab
+4
View File
@@ -4513,6 +4513,10 @@ int radio_idx,
static int rwnx_cfg80211_get_tx_power(struct wiphy *wiphy,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)
struct wireless_dev *wdev,
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)
int radio_idx,
unsigned int changed,
#endif
int *mbm)
{