Merge pull request #427 from giuliobenetti/fix/linux-before-6.0.0

Re-introduce code for Linux version < 6.0.0.
This commit is contained in:
lwfinger 2022-10-17 18:30:31 -05:00 committed by GitHub
commit c4908ca4ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -706,6 +706,10 @@ check_bss:
RTW_INFO(FUNC_ADPT_FMT" call cfg80211_roamed\n", FUNC_ADPT_ARG(padapter)); RTW_INFO(FUNC_ADPT_FMT" call cfg80211_roamed\n", FUNC_ADPT_ARG(padapter));
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
roam_info.channel = notify_channel;
roam_info.bssid = cur_network->network.MacAddress;
#endif
roam_info.req_ie = roam_info.req_ie =
pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2; pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2;
roam_info.req_ie_len = roam_info.req_ie_len =