Browse Source

qcacmn: Add items for vdev start

Add hidden ssid flag and cac duration in vdev mlme obj, populate
vdev start param.
Register wmi ops extract_vdev_start_resp for target_if converge.

Change-Id: Iaebd49049fb791aaee39ef67611f96eed37d3605
CRs-Fixed: 2506245
Jianmin Zhu 5 years ago
parent
commit
1af0d55f56

+ 4 - 1
umac/mlme/include/wlan_vdev_mlme.h

@@ -231,9 +231,12 @@ struct vdev_mlme_mgmt_generic {
 
 /**
  * struct vdev_mlme_mgmt_ap - ap specific vdev mlme mgmt cfg
- * @.
+ * @hidden_ssid: flag to indicate whether it is hidden ssid
+ * @cac_duration_ms: cac duration in millseconds
  */
 struct vdev_mlme_mgmt_ap {
+	bool hidden_ssid;
+	uint32_t cac_duration_ms;
 };
 
 /**

+ 4 - 0
umac/mlme/vdev_mgr/core/src/vdev_mgr_ops.c

@@ -161,6 +161,10 @@ static QDF_STATUS vdev_mgr_start_param_update(
 	param->channel.reg_class_id = mlme_obj->mgmt.generic.reg_class_id;
 	param->bcn_tx_rate_code = mlme_obj->mgmt.rate_info.bcn_tx_rate;
 	param->ldpc_rx_enabled = mlme_obj->proto.generic.ldpc;
+	if (mlme_obj->mgmt.generic.type == WLAN_VDEV_MLME_TYPE_AP) {
+		param->hidden_ssid = mlme_obj->mgmt.ap.hidden_ssid;
+		param->cac_duration_ms = mlme_obj->mgmt.ap.cac_duration_ms;
+	}
 	wlan_vdev_mlme_get_ssid(vdev, param->ssid.mac_ssid,
 				&param->ssid.length);
 

+ 1 - 0
wmi/src/wmi_unified_tlv.c

@@ -12011,6 +12011,7 @@ struct wmi_ops tlv_ops =  {
 #ifdef TGT_IF_VDEV_MGR_CONV
 	.extract_vdev_delete_resp = extract_vdev_delete_resp_tlv,
 	.extract_vdev_stopped_param = extract_vdev_stopped_param_tlv,
+	.extract_vdev_start_resp = extract_vdev_start_resp_tlv,
 #endif
 	.extract_hw_mode_resp_event = extract_hw_mode_resp_event_status_tlv,
 };