Explorar o código

Merge pull request #324 from wiktorek140/hotfix-6.3.0

fix function usage on 6.3.0
Tomás Pinho %!s(int64=2) %!d(string=hai) anos
pai
achega
6aaaf9fdb0
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      os_dep/linux/ioctl_cfg80211.c

+ 3 - 1
os_dep/linux/ioctl_cfg80211.c

@@ -419,8 +419,10 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, u8
 
 
  #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
  #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
-#else
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
+#else
+	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
 #endif
 #endif
 
 
 #else
 #else