Index: staging/drivers/staging/rtl8712/rtl871x_ioctl_linux.c =================================================================== --- staging.orig/drivers/staging/rtl8712/rtl871x_ioctl_linux.c +++ staging/drivers/staging/rtl8712/rtl871x_ioctl_linux.c @@ -1293,12 +1293,18 @@ static int r8711_wx_set_essid(struct net struct list_head *phead; u32 len; - if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) + if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY)) { + printk(KERN_INFO "*********** in %s - Returned -EBUSY\n", __func__); return -EBUSY; - if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) + } + if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING)) { + printk(KERN_INFO "*********** in %s - Returned 0\n", __func__); return 0; - if (wrqu->essid.length > IW_ESSID_MAX_SIZE) + } + if (wrqu->essid.length > IW_ESSID_MAX_SIZE) { + printk(KERN_INFO "*********** in %s - Returned -E2BIG\n", __func__); return -E2BIG; + } authmode = padapter->securitypriv.ndisauthtype; if (wrqu->essid.flags && wrqu->essid.length) { len = (wrqu->essid.length < IW_ESSID_MAX_SIZE) ? @@ -1338,6 +1344,7 @@ static int r8711_wx_set_essid(struct net } r8712_set_802_11_authentication_mode(padapter, authmode); r8712_set_802_11_ssid(padapter, &ndis_ssid); + printk(KERN_INFO "r8712u: Set ESSID to %s\n", ndis_ssid.Ssid); } return -EINPROGRESS; }