diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 9d3f1234fa..6e4951bf36 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -1537,6 +1537,19 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, hdd_device_mode_to_string(pAdapter->device_mode), pAdapter->device_mode); + /* + * IBSS vdev does not have peers on other macs, + * so it does not support scan on other band, + * and IBSS vdev does not need to scan to establish + * IBSS connection. If IBSS vdev need to support scan, + * Firmware need to make the change to add self peer + * per mac for IBSS vdev. + */ + if (policy_mgr_is_hw_dbs_capable(pHddCtx->hdd_psoc) && + (QDF_IBSS_MODE == pAdapter->device_mode)) { + hdd_err("Scan not supported for IBSS in if HW support DBS"); + return -EINVAL; + } cfg_param = pHddCtx->config; pScanInfo = &pAdapter->scan_info;