Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
Patch wl_linux.c for 5.17 kernel support
Browse files Browse the repository at this point in the history
  • Loading branch information
Skythrew authored Apr 3, 2022
1 parent 34633bb commit 60ad2f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wl/sys/wl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -2416,6 +2416,10 @@ wl_init_timer(wl_info_t *wl, void (*fn)(void *arg), void *arg, const char *tname

bzero(t, sizeof(wl_timer_t));

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
#define PDE_DATA pde_data
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0)
timer_setup(&t->timer, wl_timer, 0);
#else
Expand Down Expand Up @@ -3040,7 +3044,7 @@ _wl_add_monitor_if(wl_task_t *task)
else
dev->type = ARPHRD_IEEE80211_RADIOTAP;

bcopy(wl->dev->dev_addr, dev->dev_addr, ETHER_ADDR_LEN);
eth_hw_addr_set(dev, wl->dev->dev_addr);

#if defined(WL_USE_NETDEV_OPS)
dev->netdev_ops = &wl_netdev_monitor_ops;
Expand Down

0 comments on commit 60ad2f6

Please sign in to comment.