Skip to content

Commit 7631b20

Browse files
committed
fix api change of get_tx_power since v6.14
1 parent 409e705 commit 7631b20

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/wl_cfg80211.c

+10-2
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,11 @@ wl_cfg80211_set_tx_power(struct wiphy *wiphy,
631631
#endif /* WL_CFG80211_P2P_DEV_IF */
632632
#if defined(WL_CFG80211_P2P_DEV_IF)
633633
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy,
634-
struct wireless_dev *wdev, s32 *dbm);
634+
struct wireless_dev *wdev,
635+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)
636+
unsigned int link_id,
637+
#endif
638+
s32 *dbm);
635639
#else
636640
static s32 wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm);
637641
#endif /* WL_CFG80211_P2P_DEV_IF */
@@ -7665,7 +7669,11 @@ wl_cfg80211_set_tx_power(struct wiphy *wiphy,
76657669
static s32
76667670
#if defined(WL_CFG80211_P2P_DEV_IF)
76677671
wl_cfg80211_get_tx_power(struct wiphy *wiphy,
7668-
struct wireless_dev *wdev, s32 *dbm)
7672+
struct wireless_dev *wdev,
7673+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)
7674+
unsigned int link_id,
7675+
#endif
7676+
s32 *dbm)
76697677
#else
76707678
wl_cfg80211_get_tx_power(struct wiphy *wiphy, s32 *dbm)
76717679
#endif /* WL_CFG80211_P2P_DEV_IF */

0 commit comments

Comments
 (0)