From 9268e097cc83bb4e6831030968ab7b72796c8666 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 3 Nov 2017 08:18:24 -0700 Subject: [PATCH] qcacld-3.0: Fix hdd_string_to_u8_array() prototype Currently the prototype for hdd_string_to_u8_array() doesn't exactly match the signature of the implementation, so fix the prototype to match. In addition relocate the documentation to the header file. Change-Id: Idd2cb27dddddd14f12d0e11119131ecacdc369bb CRs-Fixed: 2138017 --- core/hdd/inc/wlan_hdd_cfg.h | 17 +++++++++++++++-- core/hdd/src/wlan_hdd_cfg.c | 13 ------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 7160d511feae..5f4a6856efb6 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -14288,8 +14288,21 @@ void hdd_get_pmkid_modes(struct hdd_context *hdd_ctx, void hdd_update_tgt_cfg(void *context, void *param); -QDF_STATUS hdd_string_to_u8_array(char *str, uint8_t *intArray, uint8_t *len, - uint8_t intArrayMaxLen); +/** + * hdd_string_to_u8_array() - used to convert decimal string into u8 array + * @str: Decimal string + * @array: Array where converted value is stored + * @len: Length of the populated array + * @array_max_len: Maximum length of the array + * + * This API is called to convert decimal string (each byte separated by + * a comma) into an u8 array + * + * Return: QDF_STATUS + */ +QDF_STATUS hdd_string_to_u8_array(char *str, uint8_t *array, + uint8_t *len, uint8_t array_max_len); + QDF_STATUS hdd_hex_string_to_u16_array(char *str, uint16_t *int_array, uint8_t *len, uint8_t int_array_max_len); diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 56f9aa5e9a5b..a8fa3b92e7e5 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -7463,19 +7463,6 @@ static QDF_STATUS hdd_hex_string_to_u8_array(char *str, uint8_t *hex_array, array_max_len, true); } -/** - * hdd_string_to_u8_array() - used to convert decimal string into u8 array - * @str: Decimal string - * @hex_array: Array where converted value is stored - * @len: Length of the populated array - * @array_max_len: Maximum length of the array - * - * This API is called to convert decimal string (each byte separated by - * a comma) into an u8 array - * - * Return: QDF_STATUS - */ - QDF_STATUS hdd_string_to_u8_array(char *str, uint8_t *array, uint8_t *len, uint8_t array_max_len) {