Skip to content

Commit f5fe174

Browse files
committed
Add link_id param to get_tx_power for Linux ≥ 6.14
Update vwifi_get_tx_power to match the new callback signature introduced in Linux commit 7a53af85 ("wifi: cfg80211: send MLO links tx power info in GET_INTERFACE"), which adds a link_id parameter to support reporting TX power on a per-link basis under Multi-Link Operation (MLO). Since vwifi does not support MLO, the implementation remains unchanged aside from updating the function prototype. Compatibility with older kernels is preserved using version checks.
1 parent d3114d3 commit f5fe174

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)