qcacld-3.0: Avoid keeping in DBS mode when STA connect 5G AP

If Connect candidate has two or more APs in different band,
switch to DBS firstly. After associated 5G AP, will check and
try to switch to single MAC mode.  But during DUT STA-AP key
negotiation, set hw mode cmd is refused to avoid EAPOL fail.

Fix: Delay N sec to check and set hw mode after associated, let
EAPOL handshake finish first.

Change-Id: I7d975fb56fedc30d66c21782607d148137e53e82
CRs-Fixed: 2372485
This commit is contained in:
Jianmin Zhu 2018-12-25 20:12:51 +08:00 committed by nshrivas
parent 5b39c24385
commit 5252e04745

View File

@ -3285,9 +3285,8 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
policy_mgr_check_concurrent_intf_and_restart_sap(
hdd_ctx->psoc);
if (roam_info->pBssDesc)
policy_mgr_checkn_update_hw_mode_single_mac_mode
(hdd_ctx->psoc,
roam_info->pBssDesc->channelId);
policy_mgr_check_n_start_opportunistic_timer(
hdd_ctx->psoc);
} else {
bool connect_timeout = false;
/* do we need to change the HW mode */