1 /* 2 * Linux cfg80211 driver - Android related functions 3 * 4 * Copyright (C) 1999-2013, Broadcom Corporation 5 * 6 * Unless you and Broadcom execute a separate written software license 7 * agreement governing use of this software, this software is licensed to you 8 * under the terms of the GNU General Public License version 2 (the "GPL"), 9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 10 * following added to such license: 11 * 12 * As a special exception, the copyright holders of this software give you 13 * permission to link this software with independent modules, and to copy and 14 * distribute the resulting executable under terms of your choice, provided that 15 * you also meet, for each linked independent module, the terms and conditions of 16 * the license of that module. An independent module is a module which is not 17 * derived from this software. The special exception does not apply to any 18 * modifications of the software. 19 * 20 * Notwithstanding the above, under no circumstances may you combine this 21 * software in any way with any other Broadcom software provided under a license 22 * other than the GPL, without Broadcom's express prior written consent. 23 * 24 * $Id: wl_android.h 367305 2012-11-07 13:49:55Z $ 25 */ 26 27 #include <linux/module.h> 28 #include <linux/netdevice.h> 29 #include <wldev_common.h> 30 31 /* If any feature uses the Generic Netlink Interface, put it here to enable WL_GENL 32 * automatically 33 */ 34 35 36 37 /** 38 * Android platform dependent functions, feel free to add Android specific functions here 39 * (save the macros in dhd). Please do NOT declare functions that are NOT exposed to dhd 40 * or cfg, define them as static in wl_android.c 41 */ 42 43 /** 44 * wl_android_init will be called from module init function (dhd_module_init now), similarly 45 * wl_android_exit will be called from module exit function (dhd_module_cleanup now) 46 */ 47 int wl_android_init(void); 48 int wl_android_exit(void); 49 void wl_android_post_init(void); 50 int wl_android_wifi_on(struct net_device *dev); 51 int wl_android_wifi_off(struct net_device *dev); 52 int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd); 53 54 #if defined(CONFIG_WIFI_CONTROL_FUNC) 55 int wl_android_wifictrl_func_add(void); 56 void wl_android_wifictrl_func_del(void); 57 void* wl_android_prealloc(int section, unsigned long size); 58 59 int wifi_get_irq_number(unsigned long *irq_flags_ptr); 60 int wifi_set_power(int on, unsigned long msec); 61 int wifi_get_mac_addr(unsigned char *buf); 62 void *wifi_get_country_code(char *ccode); 63 #endif /* CONFIG_WIFI_CONTROL_FUNC */ 64