- dec_size = decode_rle((char *) wmac_data->eeprom_data,
- sizeof(wmac_data->eeprom_data),
- hardconfig + RB751_CALDATA_OFFSET);
- if (dec_size != sizeof(wmac_data->eeprom_data)) {
+ err = rle_decode(hardconfig + RB751_CALDATA_OFFSET,
+ RB751_CALDATA_SIZE,
+ (unsigned char *) wmac_data->eeprom_data,
+ sizeof(wmac_data->eeprom_data),
+ NULL, NULL);
+ if (err) {