(DHD_DATA_ON() && (chan != SDPCM_CONTROL_CHANNEL))))) {
prhex("Tx Frame", frame, len);
} else if (DHD_HDRS_ON()) {
- prhex("TxHdr", frame, min(len, 16));
+ prhex("TxHdr", frame, min_t(u16, len, 16));
}
#endif
if (DHD_BYTES_ON() && DHD_CTL_ON())
prhex("Tx Frame", frame, len);
else if (DHD_HDRS_ON())
- prhex("TxHdr", frame, min(len, 16));
+ prhex("TxHdr", frame, min_t(u16, len, 16));
#endif
do {
break;
}
sdaddr = 0;
- dsize = min(SBSDIO_SB_OFT_ADDR_LIMIT, size);
+ dsize = min_t(uint, SBSDIO_SB_OFT_ADDR_LIMIT, size);
}
}
#ifdef DHD_DEBUG
if (DHD_GLOM_ON()) {
prhex("SUPERFRAME", PKTDATA(pfirst),
- min(PKTLEN(pfirst), 48));
+ min_t(int, PKTLEN(pfirst), 48));
}
#endif
PKTLEN(pfirst), PKTNEXT(pfirst),
PKTLINK(pfirst)));
prhex("", (u8 *) PKTDATA(pfirst),
- min(PKTLEN(pfirst), 32));
+ min_t(int, PKTLEN(pfirst), 32));
}
#endif /* DHD_DEBUG */
}
ssids->ssid, ssids->ssid_len));
memset(&sr->ssid, 0, sizeof(sr->ssid));
sr->ssid.SSID_len =
- min(sizeof(sr->ssid.SSID), ssids->ssid_len);
+ min_t(u8, sizeof(sr->ssid.SSID), ssids->ssid_len);
if (sr->ssid.SSID_len) {
memcpy(sr->ssid.SSID, ssids->ssid, sr->ssid.SSID_len);
sr->ssid.SSID_len = htod32(sr->ssid.SSID_len);
key.index = key_idx;
swap_key_to_BE(&key);
memset(¶ms, 0, sizeof(params));
- params.key_len = (u8) min(DOT11_MAX_KEY_SIZE, key.len);
+ params.key_len = (u8) min_t(u8, DOT11_MAX_KEY_SIZE, key.len);
memcpy(params.key, key.data, params.key_len);
err = wl_dev_ioctl(dev, WLC_GET_WSEC, &wsec, sizeof(wsec));