mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-09 23:57:10 +00:00
A minor fix to scanning (according to upstream)
This commit is contained in:
parent
6ed82d886c
commit
7f778d288b
@ -9496,9 +9496,12 @@ struct ieee80211_supported_band *band;
|
|||||||
/* wiphy->flags |= WIPHY_FLAG_OFFCHAN_TX | WIPHY_FLAG_HAVE_AP_SME; */
|
/* wiphy->flags |= WIPHY_FLAG_OFFCHAN_TX | WIPHY_FLAG_HAVE_AP_SME; */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_PM) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0) && \
|
#if defined(CONFIG_PM) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0))
|
||||||
LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
|
||||||
wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
|
wiphy->max_sched_scan_reqs = 1;
|
||||||
|
#else
|
||||||
|
wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_PNO_SUPPORT
|
#ifdef CONFIG_PNO_SUPPORT
|
||||||
wiphy->max_sched_scan_ssids = MAX_PNO_LIST_COUNT;
|
wiphy->max_sched_scan_ssids = MAX_PNO_LIST_COUNT;
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user