return kobject_uevent(®_pdev->dev.kobj, KOBJ_CHANGE);
}
+static enum reg_request_treatment
+reg_call_crda(struct regulatory_request *request)
+{
+ if (call_crda(request->alpha2))
+ return REG_REQ_IGNORE;
+ return REG_REQ_OK;
+}
+
bool reg_is_valid_request(const char *alpha2)
{
struct regulatory_request *lr = get_last_request();
reg_update_last_request(core_request);
- if (call_crda(core_request->alpha2))
- return REG_REQ_IGNORE;
- return REG_REQ_OK;
+ return reg_call_crda(core_request);
}
static enum reg_request_treatment
user_alpha2[0] = user_request->alpha2[0];
user_alpha2[1] = user_request->alpha2[1];
- if (call_crda(user_request->alpha2))
- return REG_REQ_IGNORE;
- return REG_REQ_OK;
+ return reg_call_crda(user_request);
}
static enum reg_request_treatment
return treatment;
}
- if (call_crda(driver_request->alpha2))
- return REG_REQ_IGNORE;
- return REG_REQ_OK;
+ return reg_call_crda(driver_request);
}
static enum reg_request_treatment
reg_update_last_request(country_ie_request);
- if (call_crda(country_ie_request->alpha2))
- return REG_REQ_IGNORE;
- return REG_REQ_OK;
+ return reg_call_crda(country_ie_request);
}
/* This processes *all* regulatory hints */