strcpy(priv->nick, "rtl8192E");
-#ifdef _ENABLE_SW_BEACON
- priv->rtllib->softmac_features = IEEE_SOFTMAC_SCAN |
- IEEE_SOFTMAC_ASSOCIATE | IEEE_SOFTMAC_PROBERQ |
- IEEE_SOFTMAC_PROBERS | IEEE_SOFTMAC_TX_QUEUE |
- IEEE_SOFTMAC_BEACONS;
-#else
priv->rtllib->softmac_features = IEEE_SOFTMAC_SCAN |
IEEE_SOFTMAC_ASSOCIATE | IEEE_SOFTMAC_PROBERQ |
IEEE_SOFTMAC_PROBERS | IEEE_SOFTMAC_TX_QUEUE /* |
IEEE_SOFTMAC_BEACONS*/;
-#endif
priv->rtllib->tx_headroom = sizeof(TX_FWINFO_8190PCI);
priv->rtllib->SetBWModeHandler = rtl8192_SetBWMode;
priv->rf_set_chan = rtl8192_phy_SwChnl;
-#ifdef _ENABLE_SW_BEACON
- priv->rtllib->start_send_beacons = NULL;
- priv->rtllib->stop_send_beacons = NULL;
-#else
priv->rtllib->start_send_beacons = rtl8192e_start_beacon;
priv->rtllib->stop_send_beacons = rtl8192_stop_beacon;
-#endif
priv->rtllib->sta_wake_up = rtl8192_hw_wakeup;
priv->rtllib->enter_sleep_state = rtl8192_hw_to_sleep;
if (tcb_desc->queue_index != BEACON_QUEUE) {
idx = (ring->idx + skb_queue_len(&ring->queue)) % ring->entries;
} else {
-#ifdef _ENABLE_SW_BEACON
- idx = (ring->idx + skb_queue_len(&ring->queue)) % ring->entries;
-#else
idx = 0;
-#endif
}
pdesc = &ring->desc[idx];
if (inta & IMR_BDOK) {
RT_TRACE(COMP_INTR, "beacon interrupt!\n");
-#ifdef _ENABLE_SW_BEACON
- rtl8192_tx_isr(dev, BEACON_QUEUE);
-#endif
}
if (inta & IMR_MGNTDOK ) {
if (inta & IMR_BcnInt) {
RT_TRACE(COMP_INTR, "prepare beacon for interrupt!\n");
-#ifndef _ENABLE_SW_BEACON
tasklet_schedule(&priv->irq_prepare_beacon_tasklet);
-#endif
}
if (inta & IMR_RDU) {