__func__, req->essid));
return -EBUSY;
} else {
- g_specific_ssid.SSID_len = min_t(unsigned char,
+ g_specific_ssid.SSID_len = min_t(size_t,
sizeof(g_specific_ssid.SSID),
req->essid_len);
memcpy(g_specific_ssid.SSID, req->essid,
if (wrqu->data.length == sizeof(struct iw_scan_req)) {
if (wrqu->data.flags & IW_SCAN_THIS_ESSID) {
struct iw_scan_req *req = (struct iw_scan_req *)extra;
- ssid.SSID_len = min_t(unsigned char, sizeof(ssid.SSID),
+ ssid.SSID_len = min_t(size_t, sizeof(ssid.SSID),
req->essid_len);
memcpy(ssid.SSID, req->essid, ssid.SSID_len);
ssid.SSID_len = htod32(ssid.SSID_len);
if (dwrq->length && extra) {
#if WIRELESS_EXT > 20
- g_ssid.SSID_len = min_t(unsigned char, sizeof(g_ssid.SSID),
+ g_ssid.SSID_len = min_t(size_t, sizeof(g_ssid.SSID),
dwrq->length);
#else
- g_ssid.SSID_len = min_t(unsigned char, sizeof(g_ssid.SSID),
+ g_ssid.SSID_len = min_t(size_t, sizeof(g_ssid.SSID),
dwrq->length - 1);
#endif
memcpy(g_ssid.SSID, extra, g_ssid.SSID_len);