wlan.c (1239B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * All Rights Reserved.$ 7 * 8 * WLAN initializers 9 */ 10 #if defined(INCLUDE_L3) 11 12 #include <sal/core/libc.h> 13 14 #include <soc/drv.h> 15 #include <soc/mem.h> 16 #include <soc/l2u.h> 17 #include <soc/util.h> 18 #include <soc/debug.h> 19 20 #include <bcm/port.h> 21 #include <bcm/error.h> 22 #include <bcm/wlan.h> 23 24 /* 25 * Function: 26 * bcm_wlan_client_t_init 27 * Purpose: 28 * Initialize the WLAN client struct 29 * Parameters: 30 * wlan_vpn_config - Pointer to the struct to be init'ed 31 */ 32 void 33 bcm_wlan_client_t_init(bcm_wlan_client_t *wlan_client) 34 { 35 if (wlan_client != NULL) { 36 sal_memset(wlan_client, 0, sizeof(*wlan_client)); 37 } 38 return; 39 } 40 41 /* 42 * Function: 43 * bcm_wlan_port_t_init 44 * Purpose: 45 * Initialize the WLAN port struct 46 * Parameters: 47 * port_info - Pointer to the struct to be init'ed 48 */ 49 void 50 bcm_wlan_port_t_init(bcm_wlan_port_t *port_info) 51 { 52 if (port_info != NULL) { 53 sal_memset(port_info, 0, sizeof(*port_info)); 54 } 55 return; 56 } 57 58 #else 59 int _bcm_wlan_not_empty; 60 #endif /* INCLUDE_L3 */ 61