/****************************************************************************** Network Interface Control & Statistical functions ******************************************************************************/ static int islpci_open(struct net_device *ndev) { u32 rc; islpci_private *priv = netdev_priv(ndev); /* reset data structures, upload firmware and reset device */ rc = islpci_reset(priv,1); if (rc) { prism54_bring_down(priv); return rc; /* Returns informative message */ } netif_start_queue(ndev); /* Turn off carrier if in STA or Ad-hoc mode. It will be turned on * once the firmware receives a trap of being associated * (GEN_OID_LINKSTATE). In other modes (AP or WDS or monitor) we * should just leave the carrier on as its expected the firmware * won't send us a trigger. */ if (priv->iw_mode == IW_MODE_INFRA || priv->iw_mode == IW_MODE_ADHOC) netif_carrier_off(ndev); else netif_carrier_on(ndev); return 0; }
static int islpci_close(struct net_device *ndev) { islpci_private *priv = netdev_priv(ndev); printk(KERN_DEBUG "%s: islpci_close ()\n", ndev->name); netif_stop_queue(ndev); return prism54_bring_down(priv); }
/****************************************************************************** Network Interface Control & Statistical functions ******************************************************************************/ static int islpci_open(struct net_device *ndev) { u32 rc; islpci_private *priv = netdev_priv(ndev); /* reset data structures, upload firmware and reset device */ rc = islpci_reset(priv,1); if (rc) { prism54_bring_down(priv); return rc; /* Returns informative message */ } netif_start_queue(ndev); /* netif_mark_up( ndev ); */ return 0; }