mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-22 02:01:55 +00:00
fix: Add radio_idx parameter where required
In Linux Kernel commit b74947b4f6ff7c122a1bb6eb38bb7ecfbb1d3820 several function signatures where extended to accept an integer radio_idx for some internal reasons. This has to be followed here.
This commit is contained in:
parent
c3192d7153
commit
cc1e66fc78
@ -3327,7 +3327,11 @@ exit:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
|
||||
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, int radio_idx, u32 changed)
|
||||
#else
|
||||
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
|
||||
#endif
|
||||
{
|
||||
#if 0
|
||||
struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
|
||||
@ -4375,6 +4379,9 @@ static int cfg80211_rtw_set_txpower(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,
|
||||
#endif
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
enum nl80211_tx_power_setting type, int mbm)
|
||||
#else
|
||||
@ -4437,6 +4444,9 @@ static int cfg80211_rtw_get_txpower(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,
|
||||
#endif
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
|
||||
unsigned int link_id,
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user