瀏覽代碼

qcacld-3.0: Fix long line in wlan_hdd_wext.h

Checkpatch has detected an instance of "line over 80 characters" so
fix it.

Change-Id: I093b691d0e05fa739d3c31a1780296ce6102dbd8
CRs-Fixed: 2120619
Jeff Johnson 7 年之前
父節點
當前提交
4e63267a77
共有 2 個文件被更改,包括 21 次插入19 次删除
  1. 14 1
      core/hdd/inc/wlan_hdd_wext.h
  2. 7 18
      core/hdd/src/wlan_hdd_wext.c

+ 14 - 1
core/hdd/inc/wlan_hdd_wext.h

@@ -396,9 +396,22 @@ int wlan_hdd_update_phymode(struct net_device *net, tHalHandle hal,
 			    int new_phymode, struct hdd_context *phddctx);
 
 int wlan_hdd_get_temperature(struct hdd_adapter *adapter, int *temperature);
-int wlan_hdd_get_link_speed(struct hdd_adapter *sta_adapter, uint32_t *link_speed);
+
+/**
+ * wlan_hdd_get_link_speed() - get link speed
+ * @adapter:     pointer to the adapter
+ * @link_speed:   pointer to link speed
+ *
+ * This function fetches per bssid link speed.
+ *
+ * Return: if associated, link speed shall be returned.
+ *         if not associated, link speed of 0 is returned.
+ *         On error, error number will be returned.
+ */
+int wlan_hdd_get_link_speed(struct hdd_adapter *adapter, uint32_t *link_speed);
 
 struct iw_request_info;
+
 /**
  * hdd_check_standard_wext_control() - Check to see if standard
  *      wireless extensions ioctls are allowed

+ 7 - 18
core/hdd/src/wlan_hdd_wext.c

@@ -3843,22 +3843,11 @@ return_cached_value:
 	return ret;
 }
 
-/**
- * wlan_hdd_get_link_speed() - get link speed
- * @adapter:     pointer to the adapter
- * @link_speed:   pointer to link speed
- *
- * This function fetches per bssid link speed.
- *
- * Return: if associated, link speed shall be returned.
- *         if not associated, link speed of 0 is returned.
- *         On error, error number will be returned.
- */
-int wlan_hdd_get_link_speed(struct hdd_adapter *sta_adapter, uint32_t *link_speed)
+int wlan_hdd_get_link_speed(struct hdd_adapter *adapter, uint32_t *link_speed)
 {
-	struct hdd_context *hddctx = WLAN_HDD_GET_CTX(sta_adapter);
+	struct hdd_context *hddctx = WLAN_HDD_GET_CTX(adapter);
 	struct hdd_station_ctx *hdd_stactx =
-				WLAN_HDD_GET_STATION_CTX_PTR(sta_adapter);
+				WLAN_HDD_GET_STATION_CTX_PTR(adapter);
 	int ret;
 
 	ret = wlan_hdd_validate_context(hddctx);
@@ -3866,10 +3855,10 @@ int wlan_hdd_get_link_speed(struct hdd_adapter *sta_adapter, uint32_t *link_spee
 		return ret;
 
 	/* Linkspeed is allowed only for P2P mode */
-	if (sta_adapter->device_mode != QDF_P2P_CLIENT_MODE) {
+	if (adapter->device_mode != QDF_P2P_CLIENT_MODE) {
 		hdd_err("Link Speed is not allowed in Device mode %s(%d)",
-			hdd_device_mode_to_string(sta_adapter->device_mode),
-			sta_adapter->device_mode);
+			hdd_device_mode_to_string(adapter->device_mode),
+			adapter->device_mode);
 		return -ENOTSUPP;
 	}
 
@@ -3881,7 +3870,7 @@ int wlan_hdd_get_link_speed(struct hdd_adapter *sta_adapter, uint32_t *link_spee
 
 		qdf_copy_macaddr(&bssid, &hdd_stactx->conn_info.bssId);
 
-		ret = wlan_hdd_get_linkspeed_for_peermac(sta_adapter, &bssid,
+		ret = wlan_hdd_get_linkspeed_for_peermac(adapter, &bssid,
 							 link_speed);
 		if (ret) {
 			hdd_err("Unable to retrieve SME linkspeed");