blob: c91f899f7a49a02800346d57c634b5b4fbc888e8 [file] [log] [blame]
Sungmin Choi5fd819d2012-07-18 01:49:40 -07001/*
2 * Copyright 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef __WFC_UTIL_COMMON_H__
18#define __WFC_UTIL_COMMON_H__
19
20/*
21 * wfc_util_htoa
22 *
23 * return : void
24 */
25extern void wfc_util_htoa(unsigned char *pHexaBuff, int szHexaBuff, char *pAsciiStringBuff, int szAsciiStringBuff);
26
27/*
28 * wfc_util_atoh
29 *
30 * return : void
31 */
32extern void wfc_util_atoh(char *pAsciiString, int szAsciiString, unsigned char *pHexaBuff, int szHexaBuff);
33
34/*
35 * wfc_util_is_random_mac
36 *
37 * return : it will return 1 if [mac_add] is same with WFC_UTIL_RANDOM_MAC_HEADER
38 * or will return 0 if not.
39 */
40extern int wfc_util_is_random_mac(char *mac_add);
41
42/*
43 * wfc_util_random_mac
44 *
45 * Create random MAC address
46 *
47 * return : void
48 */
49void wfc_util_random_mac(unsigned char* mac_addr);
50
51#endif