mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-26 06:23:38 +00:00
rtl8188eu: Fix build for kernel 4.7 and later
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
551ec1598c
commit
2d546792fc
1 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,13 @@
|
||||||
|
|
||||||
#include "ioctl_cfg80211.h"
|
#include "ioctl_cfg80211.h"
|
||||||
|
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0))
|
||||||
|
#define ieee80211_band nl80211_band
|
||||||
|
#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
|
||||||
|
#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
|
||||||
|
#define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RTW_MAX_MGMT_TX_CNT (8)
|
#define RTW_MAX_MGMT_TX_CNT (8)
|
||||||
|
|
||||||
#define RTW_SCAN_IE_LEN_MAX 2304
|
#define RTW_SCAN_IE_LEN_MAX 2304
|
||||||
|
@ -1743,6 +1750,11 @@ exit:
|
||||||
void rtw_cfg80211_indicate_scan_done(struct rtw_wdev_priv *pwdev_priv, bool aborted)
|
void rtw_cfg80211_indicate_scan_done(struct rtw_wdev_priv *pwdev_priv, bool aborted)
|
||||||
{
|
{
|
||||||
unsigned long irqL;
|
unsigned long irqL;
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0))
|
||||||
|
struct cfg80211_scan_info info = {
|
||||||
|
.aborted = aborted
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
spin_lock_bh(&pwdev_priv->scan_req_lock);
|
spin_lock_bh(&pwdev_priv->scan_req_lock);
|
||||||
if (pwdev_priv->scan_request != NULL)
|
if (pwdev_priv->scan_request != NULL)
|
||||||
|
@ -1761,7 +1773,11 @@ void rtw_cfg80211_indicate_scan_done(struct rtw_wdev_priv *pwdev_priv, bool abor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0))
|
||||||
|
cfg80211_scan_done(pwdev_priv->scan_request, &info);
|
||||||
|
#else
|
||||||
cfg80211_scan_done(pwdev_priv->scan_request, aborted);
|
cfg80211_scan_done(pwdev_priv->scan_request, aborted);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
pwdev_priv->scan_request = NULL;
|
pwdev_priv->scan_request = NULL;
|
||||||
|
|
Loading…
Reference in a new issue