瀏覽代碼

qcacld-3.0: Refine API wlan_sap_update_next_channel()

See change "qcacld-3.0: Refine API wlansap_open()" for the API
history.  Update wlan_sap_update_next_channel() to use the true
struct pointer type.

Change-Id: I10226f1bc7d4e47fb363de54b4bc0bc7784416ef
CRs-Fixed: 2116267
Jeff Johnson 7 年之前
父節點
當前提交
cd1ee1eedd
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 5 3
      core/sap/inc/sap_api.h
  2. 3 4
      core/sap/src/sap_module.c

+ 5 - 3
core/sap/inc/sap_api.h

@@ -936,14 +936,16 @@ QDF_STATUS wlansap_stop_bss(struct sap_context *pSapCtx);
 /**
  * wlan_sap_update_next_channel() - Update next channel configured using vendor
  * command in SAP context
- * @ctx: SAP context
+ * @sap_ctx: SAP context
  * @channel: channel number
  * @chan_bw: channel width
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_sap_update_next_channel(void *ctx, uint8_t channel,
-				       enum phy_ch_width chan_bw);
+QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
+					uint8_t channel,
+					enum phy_ch_width chan_bw);
+
 QDF_STATUS wlan_sap_set_pre_cac_status(void *ctx, bool status,
 		tHalHandle handle);
 QDF_STATUS wlan_sap_set_chan_before_pre_cac(void *ctx,

+ 3 - 4
core/sap/src/sap_module.c

@@ -1591,11 +1591,10 @@ QDF_STATUS wlansap_cancel_remain_on_channel(struct sap_context *pSapCtx,
 	return QDF_STATUS_E_FAULT;
 }
 
-QDF_STATUS wlan_sap_update_next_channel(void *ctx, uint8_t channel,
-				       enum phy_ch_width chan_bw)
+QDF_STATUS wlan_sap_update_next_channel(struct sap_context *sap_ctx,
+					uint8_t channel,
+					enum phy_ch_width chan_bw)
 {
-	struct sap_context *sap_ctx = CDS_GET_SAP_CB(ctx);
-
 	if (!sap_ctx) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
 			  "%s: Invalid SAP pointer", __func__);