Skip to content

Commit 3c5bc25

Browse files
committed
Support Linux 6.14 by updating get_tx_power
Linux kernel 6.14 introduced an additional link_id parameter to the get_tx_power callback. This commit updates vwifi_get_tx_power to match the new prototype while preserving compatibility with earlier kernels. ref: torvalds/linux@7a53af8
1 parent 62a3dd8 commit 3c5bc25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vwifi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,9 @@ static int vwifi_set_tx_power(struct wiphy *wiphy,
20512051
/* Get transmit power from the virtual interface */
20522052
static int vwifi_get_tx_power(struct wiphy *wiphy,
20532053
struct wireless_dev *wdev,
2054+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)
2055+
unsigned int link_id,
2056+
#endif
20542057
int *dbm)
20552058
{
20562059
struct vwifi_vif *vif = wdev_get_vwifi_vif(wdev);

0 commit comments

Comments
 (0)