|
@@ -1033,9 +1033,14 @@ void sme_sched_obss_scan(struct wpa_supplicant *wpa_s, int enable)
|
|
|
if (!enable)
|
|
|
return;
|
|
|
|
|
|
- if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) || ssid == NULL ||
|
|
|
- ssid->mode != IEEE80211_MODE_INFRA)
|
|
|
- return; /* Not using station SME in wpa_supplicant */
|
|
|
+ /*
|
|
|
+ * Schedule OBSS scan if driver is using station SME in wpa_supplicant
|
|
|
+ * or it expects OBSS scan to be performed by wpa_supplicant.
|
|
|
+ */
|
|
|
+ if (!((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) ||
|
|
|
+ (wpa_s->drv_flags & WPA_DRIVER_FLAGS_OBSS_SCAN)) ||
|
|
|
+ ssid == NULL || ssid->mode != IEEE80211_MODE_INFRA)
|
|
|
+ return;
|
|
|
|
|
|
if (!wpa_s->hw.modes)
|
|
|
return;
|