qcacld-3.0: Cleanup P2P GO support on indoor channel

Rename policy_mgr_is_sap_allowed_on_indoor() to
policy_mgr_is_sap_go_interface_allowed_on_indoor() since
it is common between SAP and GO. Cleanup the API as well.

Change-Id: I8380bd81c5050e9f12c00fff830455f14135c2b4
CRs-Fixed: 3423703
This commit is contained in:
Surya Prakash Sivaraj
2023-03-24 20:53:22 +05:30
committed by Madan Koyyalamudi
parent fbe284ddd4
commit 34ec96337f
7 changed files with 62 additions and 41 deletions

View File

@@ -125,7 +125,7 @@
/*
* <ini>
* p2p_go_on_indoor_chan - Allow P2P GO to operate on 5 GHz indoor channels
* p2p_go_on_5ghz_indoor_chan - Allow P2P GO to operate on 5 GHz indoor channels
*
* @Min: 0
* @Max: 1
@@ -142,15 +142,16 @@
*
* </ini>
*/
#define CFG_P2P_GO_ON_INDOOR_CHANNEL CFG_INI_BOOL("p2p_go_on_indoor_chan", \
"0", \
"Allow P2P GO on 5 GHz indoor channels")
#define CFG_P2P_GO_ON_5GHZ_INDOOR_CHANNEL CFG_INI_BOOL(\
"p2p_go_on_5ghz_indoor_chan", \
"0", \
"Allow P2P GO on 5 GHz indoor channels")
#define CFG_P2P_ALL \
CFG(CFG_ACTION_FRAME_RANDOM_SEQ_NUM_ENABLED) \
CFG(CFG_GO_KEEP_ALIVE_PERIOD) \
CFG(CFG_GO_LINK_MONITOR_PERIOD) \
CFG(CFG_P2P_DEVICE_ADDRESS_ADMINISTRATED) \
CFG(CFG_P2P_GO_ON_INDOOR_CHANNEL)
CFG(CFG_P2P_GO_ON_5GHZ_INDOOR_CHANNEL)
#endif