Skip to content

Commit 4146848

Browse files
committed
8189 fix patch
1 parent 684eaf4 commit 4146848

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
--- a/os_dep/linux/ioctl_cfg80211.c
2+
+++ b/os_dep/linux/ioctl_cfg80211.c
3+
@@ -3253,7 +3253,7 @@ exit:
4+
return ret;
5+
}
6+
7+
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,17,0)
8+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,17,0) || defined (BUILD_OPENWRT))
9+
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, int ifindex, u32 changed)
10+
#else
11+
static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
12+
@@ -4165,7 +4165,7 @@ static int cfg80211_rtw_set_txpower(stru
13+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
14+
struct wireless_dev *wdev,
15+
#endif
16+
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,17,0)
17+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,17,0) || defined (BUILD_OPENWRT))
18+
int ifindex,
19+
#endif
20+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE)
21+
@@ -4230,10 +4230,10 @@ static int cfg80211_rtw_get_txpower(stru
22+
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
23+
struct wireless_dev *wdev,
24+
#endif
25+
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,17,0)
26+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,17,0) || defined (BUILD_OPENWRT))
27+
int ifindex,
28+
#endif
29+
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
30+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0) || defined (BUILD_OPENWRT))
31+
unsigned int link_id,
32+
#endif
33+
int *dbm)

0 commit comments

Comments
 (0)