Esempio n. 1
0
static int r8192_wx_set_essid(struct net_device *dev,
			      struct iw_request_info *a,
			      union iwreq_data *wrqu, char *b)
{
	struct r8192_priv *priv = ieee80211_priv(dev);
	int ret;
	down(&priv->wx_sem);

	ret = ieee80211_wx_set_essid(priv->ieee80211,a,wrqu,b);

	up(&priv->wx_sem);

	return ret;
}
static int r8180_wx_set_essid(struct net_device *dev,
			      struct iw_request_info *a,
			      union iwreq_data *wrqu, char *b)
{
	struct r8180_priv *priv = ieee80211_priv(dev);

	int ret;

	if (priv->ieee80211->bHwRadioOff)
		return 0;

	down(&priv->wx_sem);
	if (priv->bInactivePs)
		IPSLeave(dev);

	ret = ieee80211_wx_set_essid(priv->ieee80211, a, wrqu, b);

	up(&priv->wx_sem);
	return ret;
}
Esempio n. 3
0
static int r8180_wx_set_essid(struct net_device *dev,
                              struct iw_request_info *a,
                              union iwreq_data *wrqu, char *b)
{
    struct r8180_priv *priv = ieee80211_priv(dev);

    int ret;

    if (priv->ieee80211->bHwRadioOff)
        return 0;

    down(&priv->wx_sem);
    /* printk("set essid ENABLE_IPS\n"); */
    if (priv->bInactivePs)
        IPSLeave(dev);
    /*	printk("haha:set essid %s essid_len = %d essid_flgs = %d\n",b,  wrqu->essid.length, wrqu->essid.flags);	*/

    ret = ieee80211_wx_set_essid(priv->ieee80211, a, wrqu, b);

    up(&priv->wx_sem);
    return ret;
}