diff --git a/drivers/staging/wlags49_h2/wl_wext.c b/drivers/staging/wlags49_h2/wl_wext.c index 187fc060de26bc732a434790c159b2274a83ebfc..404fda18eb81f9eeeef3bef2f723ad0e7a492533 100644 --- a/drivers/staging/wlags49_h2/wl_wext.c +++ b/drivers/staging/wlags49_h2/wl_wext.c @@ -3354,7 +3354,7 @@ void wl_wext_event_essid( struct net_device *dev ) the call to wireless_send_event() must also point to where the ESSID lives */ wrqu.essid.length = strlen( lp->NetworkName ); - wrqu.essid.pointer = (caddr_t)lp->NetworkName; + wrqu.essid.pointer = (void __user *)lp->NetworkName; wrqu.essid.flags = 1; wireless_send_event( dev, SIOCSIWESSID, &wrqu, lp->NetworkName ); @@ -3419,7 +3419,7 @@ void wl_wext_event_encode( struct net_device *dev ) /* Only provide the key if permissions allow */ if( capable( CAP_NET_ADMIN )) { - wrqu.encoding.pointer = (caddr_t)lp->DefaultKeys.key[index].key; + wrqu.encoding.pointer = (void __user *)lp->DefaultKeys.key[index].key; wrqu.encoding.length = lp->DefaultKeys.key[index].len; } else { wrqu.encoding.flags |= IW_ENCODE_NOKEY;