qcacld-3.0: SAP CSA from 5G to 2G for modem N79

For SAP/P2P GO on 5G, when receive cmd to disable 5G band when
modem n79 band used, will move to 2G band via CSA.
1. If no active connection on 2G, select ch by safe list, or
channel 6.
2. If there is STA on 2G, force scc with it.
3. If there is SAP/GO on 2G, force scc with it.
4. Handle one race condition that if candidate is already
selected & FW has gone ahead with roaming or about to go ahead
when set_band comes, it will be complicated for FW to stop the
current roaming. Instead, host will check roam sync to make sure
the new AP is on 2G, or disconnect the AP.
5. If 2 SAP on 5G, move both to 2G and keep scc.

When Set band to enable 5G band again, restored all 5G SAP/Go..

Change-Id: I9b2b1ead3b4502022aeefc08359037457bb051f9
CRs-Fixed: 2580204
This commit is contained in:
Jianmin Zhu 2019-11-27 20:01:59 +08:00 • committed by Nitesh Shrivastav
commit 61d502d966
6 changed files with 171 additions and 2 deletions

View file

@ -76,6 +76,7 @@ typedef const enum policy_mgr_conc_next_action
* @CSA_REASON_UNSAFE_CHANNEL: Unsafe channel.
* @CSA_REASON_LTE_COEX: LTE coex.
* @CSA_REASON_CONCURRENT_NAN_EVENT: NAN concurrency.
* @CSA_REASON_BAND_RESTRICTED: band disabled or re-enabled
*
*/
enum sap_csa_reason_code {
@ -87,7 +88,8 @@ enum sap_csa_reason_code {
CSA_REASON_CONCURRENT_STA_CHANGED_CHANNEL,
CSA_REASON_UNSAFE_CHANNEL,
CSA_REASON_LTE_COEX,
CSA_REASON_CONCURRENT_NAN_EVENT
CSA_REASON_CONCURRENT_NAN_EVENT,
CSA_REASON_BAND_RESTRICTED
};
/**