|
@@ -1781,7 +1781,7 @@ static int wl3501_get_encode(struct net_device *dev,
|
|
keys, len_keys);
|
|
keys, len_keys);
|
|
if (rc)
|
|
if (rc)
|
|
goto out;
|
|
goto out;
|
|
- tocopy = min_t(u8, len_keys, wrqu->encoding.length);
|
|
|
|
|
|
+ tocopy = min_t(u16, len_keys, wrqu->encoding.length);
|
|
tocopy = min_t(u8, tocopy, 100);
|
|
tocopy = min_t(u8, tocopy, 100);
|
|
wrqu->encoding.length = tocopy;
|
|
wrqu->encoding.length = tocopy;
|
|
memcpy(extra, keys, tocopy);
|
|
memcpy(extra, keys, tocopy);
|