1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-08-16 08:34:15 +02:00

Second attampt at ensuring compilation for 4.8-rc (#148)

This commit is contained in:
Fjodor42 2016-09-13 12:29:25 +02:00 committed by Harshavardhana
parent 6bd11fc5bb
commit e4566b49ae

View File

@ -1700,7 +1700,18 @@ void rtw_cfg80211_indicate_scan_done(struct rtw_wdev_priv *pwdev_priv, bool abor
}
else
{
cfg80211_scan_done(pwdev_priv->scan_request, aborted);
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0))
if(aborted) {
struct cfg80211_scan_info info = {
.aborted = aborted,
};
cfg80211_scan_done(pwdev_priv->scan_request, &info);
}
#else
cfg80211_scan_done(pwdev_priv->scan_request, aborted);
#endif
}
pwdev_priv->scan_request = NULL;