diff options
Diffstat (limited to 'drivers/staging/vt6656/wpactl.c')
| -rw-r--r-- | drivers/staging/vt6656/wpactl.c | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/vt6656/wpactl.c b/drivers/staging/vt6656/wpactl.c index 9f1b413ce86..0a067151eca 100644 --- a/drivers/staging/vt6656/wpactl.c +++ b/drivers/staging/vt6656/wpactl.c @@ -38,8 +38,7 @@  #include "wmgr.h"  #include "iocmd.h"  #include "iowpa.h" -#include "control.h" -#include "rndis.h" +#include "usbpipe.h"  #include "rf.h"  static int msglevel = MSG_LEVEL_INFO; @@ -67,7 +66,7 @@ int wpa_set_keys(struct vnt_private *pDevice, void *ctx)  	u64 KeyRSC;  	u8 byKeyDecMode = KEY_CTL_WEP;  	int ret = 0; -	int uu; +	u8 uu;  	int ii;  	if (param->u.wpa_key.alg_name > WPA_ALG_CCMP) @@ -86,7 +85,7 @@ int wpa_set_keys(struct vnt_private *pDevice, void *ctx)  		return ret;  	} -	if (param->u.wpa_key.key && param->u.wpa_key.key_len > sizeof(abyKey)) +	if (param->u.wpa_key.key_len > sizeof(abyKey))  		return -EINVAL;  	memcpy(&abyKey[0], param->u.wpa_key.key, param->u.wpa_key.key_len); @@ -227,7 +226,7 @@ int wpa_set_keys(struct vnt_private *pDevice, void *ctx)  			DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Pairwise Key Set\n");  		} else {  			// Key Table Full -			if (!compare_ether_addr(¶m->addr[0], pDevice->abyBSSID)) { +			if (ether_addr_equal(param->addr, pDevice->abyBSSID)) {  				//DBG_PRN_WLAN03(("return NDIS_STATUS_INVALID_DATA -Key Table Full.2\n"));  				return -EINVAL;  			} else {  | 
