Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2075e10 authored by gaurank kathpalia's avatar gaurank kathpalia Committed by Srinivas Dasari
Browse files

qcacmn: Enable/Disable SRD support for vdev

Currently the driver enables the SRD channels
support for both P2P_GO and SAP if the SRD master
mode is enabled.

Have individual ini values to enable/disable
the SRD channel for each op-mode as required.
The ini etsi13_srd_chan_in_master_mode has the
following config for individual master modes:-
Bit map for enabling the SRD mode in various modes are as follows:-
BIT 0:- Enable/Disable SRD channels for SAP.
BIT 1:- Enable/Disable SRD channels for P2P-GO.
BIT 2:- Enable/Disable SRD channels for NAN.

Change-Id: Ia9ca9d49102405b307a410cbf28e3f8896114cac
CRs-Fixed: 2760002
parent 2d550f22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ QDF_STATUS wlan_regulatory_psoc_obj_created_notification(
	soc_reg_obj->vdev_cnt_11d = 0;
	soc_reg_obj->vdev_id_for_11d_scan = INVALID_VDEV_ID;
	soc_reg_obj->restart_beaconing = CH_AVOID_RULE_RESTART;
	soc_reg_obj->enable_srd_chan_in_master_mode = true;
	soc_reg_obj->enable_srd_chan_in_master_mode = 0xFF;
	soc_reg_obj->enable_11d_in_world_mode = false;
	soc_reg_obj->retain_nol_across_regdmn_update = false;

+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ struct wlan_regulatory_psoc_priv_obj {
	struct wlan_psoc_host_hal_reg_capabilities_ext
			reg_cap[PSOC_MAX_PHY_REG_CAP];
	bool force_ssc_disable_indoor_channel;
	bool enable_srd_chan_in_master_mode;
	uint8_t enable_srd_chan_in_master_mode;
	bool enable_11d_in_world_mode;
	qdf_spinlock_t cbk_list_lock;
	bool retain_nol_across_regdmn_update;
+1 −1
Original line number Diff line number Diff line
@@ -960,7 +960,7 @@ struct reg_config_vars {
	uint32_t indoor_chan_enabled;
	uint32_t force_ssc_disable_indoor_channel;
	enum restart_beaconing_on_ch_avoid_rule restart_beaconing;
	bool enable_srd_chan_in_master_mode;
	uint8_t enable_srd_chan_in_master_mode;
	bool enable_11d_in_world_mode;
	bool retain_nol_across_regdmn_update;
};