We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34fe3b5 + 4a4d55e commit bb2350bCopy full SHA for bb2350b
vwifi.c
@@ -1677,8 +1677,13 @@ static int vwifi_start_ap(struct wiphy *wiphy,
1677
1678
/* Initialize hrtimer of beacon */
1679
pr_info("vwifi: init beacon_timer.\n");
1680
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0)
1681
+ hrtimer_setup(&vif->beacon_timer, vwifi_beacon, CLOCK_MONOTONIC,
1682
+ HRTIMER_MODE_ABS_SOFT);
1683
+#else
1684
hrtimer_init(&vif->beacon_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_SOFT);
1685
vif->beacon_timer.function = vwifi_beacon;
1686
+#endif
1687
1688
if (!hrtimer_is_queued(&vif->beacon_timer)) {
1689
u64 tsf, until_tbtt;
0 commit comments