Explorar el Código

qcacld-3.0: Refactor SAP module to use channel frequency

Update SAP data structures to use channel frequency values instead
of using the channel id values to support 6GHz channels in SAP.

Change-Id: I9ef5857e8dcf3f7d879495d3f3c3ead083fe0bf0
CRs-Fixed: 2513083
Kiran Kumar Lokere hace 5 años
padre
commit
b258eddc0b

+ 1 - 2
cmn_services/policy_mgr/inc/wlan_policy_mgr_api.h

@@ -1292,8 +1292,7 @@ struct policy_mgr_hdd_cbacks {
 				bool forced);
 	QDF_STATUS (*wlan_hdd_get_channel_for_sap_restart)(
 				struct wlan_objmgr_psoc *psoc,
-				uint8_t vdev_id, uint8_t *channel,
-				uint8_t *sec_ch);
+				uint8_t vdev_id, uint8_t *channel);
 	enum policy_mgr_con_mode (*get_mode_for_non_connected_vdev)(
 				struct wlan_objmgr_psoc *psoc,
 				uint8_t vdev_id);

+ 2 - 3
cmn_services/policy_mgr/src/wlan_policy_mgr_action.c

@@ -1728,7 +1728,7 @@ static void __policy_mgr_check_sta_ap_concurrent_ch_intf(void *data)
 	struct sta_ap_intf_check_work_ctx *work_info = NULL;
 	uint32_t mcc_to_scc_switch, cc_count = 0, i, go_index_start;
 	QDF_STATUS status;
-	uint8_t channel, sec_ch;
+	uint8_t channel;
 	uint8_t operating_channel[MAX_NUMBER_OF_CONC_CONNECTIONS];
 	uint8_t vdev_id[MAX_NUMBER_OF_CONC_CONNECTIONS];
 
@@ -1799,8 +1799,7 @@ static void __policy_mgr_check_sta_ap_concurrent_ch_intf(void *data)
 				continue;
 			status = pm_ctx->hdd_cbacks.
 				wlan_hdd_get_channel_for_sap_restart
-					(psoc,
-					vdev_id[i], &channel, &sec_ch);
+					(psoc, vdev_id[i], &channel);
 			if (status == QDF_STATUS_SUCCESS) {
 				policy_mgr_info("SAP restarts due to MCC->SCC switch, old chan :%d new chan: %d"
 					, operating_channel[i], channel);