--- zzzz-none-000/linux-4.9.276/net/wireless/core.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/net/wireless/core.c 2023-04-05 08:19:02.000000000 +0000 @@ -39,6 +39,7 @@ /* RCU-protected (and RTNL for writers) */ LIST_HEAD(cfg80211_rdev_list); +EXPORT_SYMBOL(cfg80211_rdev_list); int cfg80211_rdev_list_generation; /* for debugfs */ @@ -440,6 +441,8 @@ } } + rdev->scan_expire_time = IEEE80211_SCAN_RESULT_EXPIRE; + INIT_LIST_HEAD(&rdev->wiphy.wdev_list); INIT_LIST_HEAD(&rdev->beacon_registrations); spin_lock_init(&rdev->beacon_registrations_lock); @@ -538,9 +541,9 @@ CFG80211_MAX_NUM_DIFFERENT_CHANNELS)) return -EINVAL; - /* DFS only works on one channel. */ + /* Two different channels allowed by WLAN driver during CSA */ if (WARN_ON(c->radar_detect_widths && - (c->num_different_channels > 1))) + (c->num_different_channels > 2))) return -EINVAL; if (WARN_ON(!c->n_limits)) @@ -966,6 +969,12 @@ } EXPORT_SYMBOL(cfg80211_unregister_wdev); +struct workqueue_struct *cfg80211_get_cfg80211_wq(void) +{ + return cfg80211_wq; +} +EXPORT_SYMBOL(cfg80211_get_cfg80211_wq); + static const struct device_type wiphy_type = { .name = "wlan", };