diff options
| -rw-r--r-- | CORE/SAP/src/sapApiLinkCntl.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CORE/SAP/src/sapApiLinkCntl.c b/CORE/SAP/src/sapApiLinkCntl.c index 130a8dbe3446..1fe613868e1f 100644 --- a/CORE/SAP/src/sapApiLinkCntl.c +++ b/CORE/SAP/src/sapApiLinkCntl.c @@ -192,6 +192,16 @@ WLANSAP_ScanCallback "%s: ACS scan id: %d (skipped ACS SCAN)", __func__, scanID); #endif operChannel = sapSelectChannel(halHandle, psapContext, pResult); + if (!operChannel) { + VOS_TRACE(VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, + FL("No channel was selected from preferred channel for Operating channel")); + + operChannel = psapContext->acs_cfg->start_ch; + + VOS_TRACE(VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, + FL("Selecting operating channel as starting channel from preferred channel list: %d"), + operChannel); + } sme_ScanResultPurge(halHandle, pResult); break; @@ -410,6 +420,16 @@ WLANSAP_PreStartBssAcsScanCallback } #endif operChannel = sapSelectChannel(halHandle, psapContext, pResult); + if (!operChannel) { + VOS_TRACE(VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, + FL("No channel was selected from preferred channel for Operating channel")); + + operChannel = psapContext->acs_cfg->start_ch; + + VOS_TRACE(VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, + FL("Selecting operating channel as starting channel from preferred channel list: %d"), + operChannel); + } sme_ScanResultPurge(halHandle, pResult); } |
