}
#endif
-extern int rk29sdk_wifi_power(int on);
+extern int rockchip_wifi_power(int on);
void bcm_wlan_power_on(int flag)
{
if (flag == 1) {
printk("======== PULL WL_REG_ON HIGH! ========\n");
- rk29sdk_wifi_power(1);
+ rockchip_wifi_power(1);
msleep(100);
} else {
printk("======== PULL WL_REG_ON HIGH! (flag = %d) ========\n", flag);
- rk29sdk_wifi_power(1);
+ rockchip_wifi_power(1);
msleep(100);
}
}
{
if (flag == 1) {
printk("======== Card detection to remove SDIO card! ========\n");
- rk29sdk_wifi_power(0);
+ rockchip_wifi_power(0);
} else {
printk("======== PULL WL_REG_ON LOW! (flag = %d) ========\n", flag);
- rk29sdk_wifi_power(0);
+ rockchip_wifi_power(0);
}
}
}
#include "wifi_version.h"
-extern int rk29sdk_wifi_power(int on);
+extern int rockchip_wifi_power(int on);
static int __init rockchip_wifi_init_module(void)
{
printk("==== Launching Wi-Fi driver! (Powered by Rockchip) ====\n");
printk("=======================================================\n");
printk("Realtek 8188EU USB WiFi driver (Powered by Rockchip,Ver %s) init.\n", RTL8192_DRV_VERSION);
- rk29sdk_wifi_power(0);
+ rockchip_wifi_power(0);
msleep(100);
- rk29sdk_wifi_power(1);
+ rockchip_wifi_power(1);
return rtw_drv_entry();
}
printk("=======================================================\n");
printk("Realtek 8188EU USB WiFi driver (Powered by Rockchip,Ver %s) init.\n", RTL8192_DRV_VERSION);
rtw_drv_halt();
- rk29sdk_wifi_power(0);
+ rockchip_wifi_power(0);
}
late_initcall(rockchip_wifi_init_module);
struct rksdmmc_gpio GPS_LAN; //pin33--GPS_LAN
};
-void *rk29sdk_mem_prealloc(int section, unsigned long size);
-int rk29sdk_wifi_power(int on);
-int rk29sdk_wifi_reset(int on);
-int rk29sdk_wifi_mac_addr(unsigned char *buf);
-void *rk29sdk_wifi_country_code(char *ccode);
+void *rockchip_mem_prealloc(int section, unsigned long size);
+int rockchip_wifi_power(int on);
+int rockchip_wifi_reset(int on);
+int rockchip_wifi_mac_addr(unsigned char *buf);
+void *rockchip_wifi_country_code(char *ccode);
#endif
{NULL, (WLAN_SECTION_SIZE_5 + PREALLOC_WLAN_SECTION_HEADER)}
};
-static int __init rk29sdk_init_wifi_mem(void)
+static int __init rockchip_init_wifi_mem(void)
{
int i;
int j;
return -ENOMEM;
}
-void *rk29sdk_mem_prealloc(int section, unsigned long size)
+void *rockchip_mem_prealloc(int section, unsigned long size)
{
if (section == PREALLOC_WLAN_SEC_NUM)
return wlan_static_skb;
return wifi_mem_array[section].mem_ptr;
}
#else
-void *rk29sdk_mem_prealloc(int section, unsigned long size) { return NULL;}
+void *rockchip_mem_prealloc(int section, unsigned long size) { return NULL;}
#endif
-EXPORT_SYMBOL(rk29sdk_mem_prealloc);
+EXPORT_SYMBOL(rockchip_mem_prealloc);
/**************************************************************************
*
* 1 -> power on
*
*************************************************************************/
-int rk29sdk_wifi_power(int on)
+int rockchip_wifi_power(int on)
{
struct rfkill_wlan_data *mrfkill = g_rfkill;
struct rksdmmc_gpio *poweron, *reset;
return 0;
}
-EXPORT_SYMBOL(rk29sdk_wifi_power);
+EXPORT_SYMBOL(rockchip_wifi_power);
/**************************************************************************
*
* Wifi Reset Func
*
*************************************************************************/
-int rk29sdk_wifi_reset(int on)
+int rockchip_wifi_reset(int on)
{
return 0;
}
-EXPORT_SYMBOL(rk29sdk_wifi_reset);
+EXPORT_SYMBOL(rockchip_wifi_reset);
/**************************************************************************
*
#include <linux/etherdevice.h>
u8 wifi_custom_mac_addr[6] = {0,0,0,0,0,0};
extern char GetSNSectorInfo(char * pbuf);
-int rk29sdk_wifi_mac_addr(unsigned char *buf)
+int rockchip_wifi_mac_addr(unsigned char *buf)
{
char mac_buf[20] = {0};
LOG("%s: enter.\n", __func__);
#endif
return 0;
}
-EXPORT_SYMBOL(rk29sdk_wifi_mac_addr);
+EXPORT_SYMBOL(rockchip_wifi_mac_addr);
/**************************************************************************
*
static struct cntry_locales_custom country_cloc;
-void *rk29sdk_wifi_country_code(char *ccode)
+void *rockchip_wifi_country_code(char *ccode)
{
struct cntry_locales_custom *mcloc;
return mcloc;
}
+EXPORT_SYMBOL(rockchip_wifi_country_code);
/**************************************************************************/
static int rfkill_rk_setup_gpio(struct rksdmmc_gpio *gpio, const char* prefix, const char* name)
}
#if BCM_STATIC_MEMORY_SUPPORT
- rk29sdk_init_wifi_mem();
+ rockchip_init_wifi_mem();
#endif
#if defined(CONFIG_HAS_EARLYSUSPEND)
{ .compatible = "wlan-platdata" },
{ }
};
-MODULE_DEVICE_TABLE(of, pwm_backlight_of_match);
+MODULE_DEVICE_TABLE(of, wlan_platdata_of_match);
#endif //CONFIG_OF
static struct platform_driver rfkill_wlan_driver = {