- 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].vendor))
+ continue;
+ model_re = g_regex_new(pps_profiles[i].model, 0, 0, NULL);
+ if (g_regex_match(model_re, hw_info->model, 0, &model_mi))