ccflags-y += -DEEPROM_OLD_FORMAT_SUPPORT=1
ccflags-y += -DUSE_FW_SOURCE_IMG_FILE
-ccflags-y += -DENABLE_GPIO_RADIO_CTL
ccflags-y += -DCONFIG_PM_RTL
ccflags-y += -DCONFIG_PM
ccflags-y += -DENABLE_DOT11D
RT_CLEAR_PS_LEVEL(pPSC, RT_RF_OFF_LEVL_HALT_NIC);
priv->bfirst_init = false;
-#ifdef ENABLE_GPIO_RADIO_CTL
if (priv->polling_timer_on == 0){
check_rfctrl_gpio_timer((unsigned long)dev);
}
-#endif
if (priv->rtllib->state != RTLLIB_LINKED)
rtllib_softmac_start_protocol(priv->rtllib, 0);
}
rtl8192_proc_init_one(dev);
-#ifdef ENABLE_GPIO_RADIO_CTL
if (priv->polling_timer_on == 0){
check_rfctrl_gpio_timer((unsigned long)dev);
}
-#endif
#ifdef CONFIG_RTL_RFKILL
if (priv->ops->init_before_adapter_start) {
priv->ops->init_before_adapter_start(dev);
priv = rtllib_priv(dev);
-#ifdef ENABLE_GPIO_RADIO_CTL
del_timer_sync(&priv->gpio_polling_timer);
cancel_delayed_work(&priv->gpio_change_rf_wq);
priv->polling_timer_on = 0;
-#endif
rtl_debug_module_remove(priv);
rtl8192_proc_remove_one(dev);
rtl8192_down(dev,true);
RT_TRACE(COMP_POWER, "============> r8192E suspend call.\n");
printk("============> r8192E suspend call.\n");
-#ifdef ENABLE_GPIO_RADIO_CTL
del_timer_sync(&priv->gpio_polling_timer);
cancel_delayed_work(&priv->gpio_change_rf_wq);
priv->polling_timer_on = 0;
-#endif
if (!netif_running(dev)){
printk("RTL819XE:UI is open out of suspend function\n");
pci_enable_wake(pdev, PCI_D0, 0);
-#ifdef ENABLE_GPIO_RADIO_CTL
if (priv->polling_timer_on == 0){
check_rfctrl_gpio_timer((unsigned long)dev);
}
-#endif
if (!netif_running(dev)){
printk("RTL819XE:UI is open out of resume function\n");