diff options
Diffstat (limited to 'drivers/staging/vt6655/ioctl.c')
-rw-r--r-- | drivers/staging/vt6655/ioctl.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c index ddcf504cef5b..a4b0c939c40b 100644 --- a/drivers/staging/vt6655/ioctl.c +++ b/drivers/staging/vt6655/ioctl.c @@ -65,12 +65,11 @@ //static int msglevel =MSG_LEVEL_DEBUG; static int msglevel =MSG_LEVEL_INFO; -/*--------------------- Static Functions --------------------------*/ - #ifdef WPA_SM_Transtatus SWPAResult wpa_Result; #endif +/*--------------------- Static Functions --------------------------*/ /*--------------------- Export Variables --------------------------*/ @@ -101,7 +100,6 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { BYTE abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; LONG ldBm; - pReq->wResult = 0; switch(pReq->wCmdCode) { @@ -250,7 +248,6 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { break; case WLAN_CMD_SET_WEP: - DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "WLAN_CMD_SET_WEP Key. \n"); memset(&sWEPCmd, 0 ,sizeof(SCmdSetWEP)); if (copy_from_user(&sWEPCmd, pReq->data, sizeof(SCmdSetWEP))) { @@ -695,13 +692,13 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { wpa_Result.key_mgmt = 0; wpa_Result.eap_type = 0; wpa_Result.authenticated = FALSE; - pDevice->fWPA_Authened = FALSE; + pDevice->fWPA_Authened = FALSE; if (copy_from_user(&wpa_Result, pReq->data, sizeof(wpa_Result))) { result = -EFAULT; break; } - if(wpa_Result.authenticated==TRUE) { +if(wpa_Result.authenticated==TRUE) { #ifdef SndEvt_ToAPI { union iwreq_data wrqu; @@ -728,7 +725,6 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { break; #endif - default: DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Private command not support..\n"); } |