if (priv->status & STATUS_RF_KILL_SW) { IPW_WARNING("Radio disabled by module parameter.\n"); up(&priv->sem); return 0; } else if (rf_kill_active(priv)) { IPW_WARNING("Radio Frequency Kill Switch is On:\n" "Kill switch must be turned off for " "wireless networking to work.\n"); queue_delayed_work(priv->workqueue, &priv->rf_kill, 2 * HZ); up(&priv->sem); return 0; }
static int ipw_net_init(struct net_device *dev){	struct ipw_priv *priv = ieee80211_priv(dev);	down(&priv->sem);	if (priv->status & STATUS_RF_KILL_SW) {		IPW_WARNING("Radio disabled by module parameter.\n");		up(&priv->sem);		return 0;	} else if (rf_kill_active(priv)) {		IPW_WARNING("Radio Frequency Kill Switch is On:\n"			    "Kill switch must be turned off for "			    "wireless networking to work.\n");		queue_delayed_work(priv->workqueue, &priv->rf_kill, 2 * HZ);		up(&priv->sem);		return 0;	}	if (ipw_up(priv)) {		up(&priv->sem);		return -EIO;	}	up(&priv->sem);	return 0;}