- if (!strcasecmp(hw_info->manufacturer, pps_profiles[i].idn_vendor) &&
- !strcmp(hw_info->model, pps_profiles[i].idn_model)) {
+ vendor = get_vendor(hw_info->manufacturer);
+ if (strcasecmp(vendor, pps_profiles[i].idn_vendor))
+ continue;
+ if (!strcmp(hw_info->model, pps_profiles[i].idn_model)) {