From 4e63267a77ffba2b53082fbae8e71c73caea9ee9 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 3 Oct 2017 11:40:51 -0700 Subject: [PATCH] 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 --- core/hdd/inc/wlan_hdd_wext.h | 15 ++++++++++++++- core/hdd/src/wlan_hdd_wext.c | 25 +++++++------------------ 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_wext.h b/core/hdd/inc/wlan_hdd_wext.h index b1365e790807..6aa9f7f68224 100644 --- a/core/hdd/inc/wlan_hdd_wext.h +++ b/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 diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index c010c9f0c91c..3b0031071a18 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/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");